diff --git a/src/Components/Events/events.js b/src/Components/Events/events.js index ed8dcce..513ba40 100644 --- a/src/Components/Events/events.js +++ b/src/Components/Events/events.js @@ -19,11 +19,57 @@ import box from './boxclosed.png'; import box_animated from './boxopen.png'; // import seaweed from './seaweed.svg'; import trans from '../../assets/1024px-HD_transparent_picture.png'; +import Scroll from '../scroll/scroll'; function Events() { const [isHoveringSword, setIsHoveringSword] = useState(false); const [isHoveringBox, setIsHoveringBox] = useState(false); const [isHoveringHelmet, setIsHoveringHelmet] = useState(false); + const [showScroll, setShowScroll] = useState(false); + const [scrollHead, setScrollHead] = useState(''); + const florenceEvents = [ + 'Natyanjali', + 'Sizzle', + 'Dancing Duo', + 'Nritya Kala', + 'Rangmanch', + 'Nukkad Natak', + 'Hear Me Out!', + 'Rapsody', + 'Jukebox', + 'Solonote', + 'Silence of the Amps', + 'Indian Rock', + ]; + const beauVistaEvents = [ + "Let's Not Get Wasted", + 'Kick StART', + 'Moteef', + 'Artathon', + 'Blind Art', + 'Glam Up!', + 'La Croquis Marquee', + 'Pixel Vista', + ]; + const carpeDictumEvents = [ + 'InVerse', + 'Cultural Gauntlet', + 'The Lit Quiz', + 'Word Games', + 'Melas', + 'Querencia', + ]; + const fNPhotoEvents = ['SHo(r)t', 'Oh Snap!']; + const quizFestEvents = ['Waves Open', 'Mythomagic', 'Vices Quiz']; + const specialsEvents = [ + 'Fashion Parade', + 'Mr and Miss Waves', + 'Show me the Funny', + 'Strangely Familiar', + 'Comic Kriya', + 'Irshaad', + ]; + const [eventsList, setEventsList] = useState(['']); const zoomInOnHover = { transform: 'scale(1)', transition: 'transform 0.5s', @@ -38,6 +84,12 @@ function Events() { const [jellyfishStyle, setJellyfishStyle] = useState(zoomInOnHover); return ( + <>} - +
- + Jellyfish { + setScrollHead('FLORENCE'); + setEventsList(florenceEvents); + setShowScroll(!showScroll); + }} onMouseEnter={() => { setJellyfishStyle(zoomOutOnHover); }} @@ -105,13 +163,19 @@ function Events() { - + Horsewheel { + setScrollHead('EXTRAS'); + setEventsList(specialsEvents); + setShowScroll(!showScroll); + }} /> - + Spartan { + setScrollHead('FILM & PHOTOGRAPHY'); + setEventsList(fNPhotoEvents); + setShowScroll(!showScroll); + }} onMouseEnter={() => setIsHoveringHelmet(true)} onMouseLeave={() => setIsHoveringHelmet(false)} style={{ transition: '0.5s', }} - marginBottom='-4rem' /> - + setIsHoveringSword(true)} onMouseLeave={() => setIsHoveringSword(false)} style={{ @@ -177,7 +246,12 @@ function Events() { pos='absolute' bottom='60%' left='-10%' - marginBottom='-4rem' + cursor='pointer' + onClick={() => { + setScrollHead('THE QUIZ FEST'); + setEventsList(quizFestEvents); + setShowScroll(!showScroll); + }} onMouseEnter={() => setIsHoveringSword(true)} onMouseLeave={() => setIsHoveringSword(false)} style={{ @@ -185,13 +259,11 @@ function Events() { }} /> {' '} THE QUIZ FEST{' '} @@ -199,7 +271,7 @@ function Events() { - + Box setIsHoveringBox(true)} onMouseLeave={() => setIsHoveringBox(false)} @@ -225,7 +298,13 @@ function Events() { pos='absolute' bottom='100%' left='-10%' + cursor='pointer' opacity={isHoveringBox ? 1 : 0} + onClick={() => { + setScrollHead('BEAU VISTA'); + setEventsList(beauVistaEvents); + setShowScroll(!showScroll); + }} onMouseEnter={() => setIsHoveringBox(true)} onMouseLeave={() => setIsHoveringBox(false)} style={{ diff --git a/src/Components/scroll/scroll.js b/src/Components/scroll/scroll.js index 19c5edc..cd7daa6 100644 --- a/src/Components/scroll/scroll.js +++ b/src/Components/scroll/scroll.js @@ -12,10 +12,13 @@ import { motion, AnimatePresence } from 'framer-motion'; import scrollimg from './scroll.png'; import scrollLeft from './scrollLeft.png'; import scrollRight from './scrollRight.png'; +import teer from './teer.png'; const Scroll = props => { + const [index, setIndex] = useState(0); const clickHandler = () => { props.setShowScroll(!props.showScroll); + setIndex(0); }; return ( @@ -74,21 +77,61 @@ const Scroll = props => { animate={{ height: '69vh', width: '99vh' }} exit={{ height: '69vh', width: '0vh', transitionDuration: '0.5s' }} > - - -

{props.scrollHead}

-

{props.scrollContent}

+ + + +

{props.scrollHead}

+
+ + × +
- - × + + + {props.eventsList.map(e => { + return ( + + { + setIndex(props.eventsList.indexOf(e)); + }} + > + {e} + + arrow + + ); + })} + + + {props.eventsList[index]} + + diff --git a/src/Components/scroll/teer.png b/src/Components/scroll/teer.png new file mode 100644 index 0000000..9d315a4 Binary files /dev/null and b/src/Components/scroll/teer.png differ