diff --git a/app/frontend/pages/landing/index.tsx b/app/frontend/pages/landing/index.tsx index b4dea3434..7451440c1 100644 --- a/app/frontend/pages/landing/index.tsx +++ b/app/frontend/pages/landing/index.tsx @@ -20,6 +20,7 @@ export default function LandingIndex() { const card3Ref = useRef(null) const hoveredCardRef = useRef(null) const howSectionRef = useRef(null) + const navRef = useRef(null) useEffect(() => { gsap.registerPlugin(ScrollTrigger) @@ -33,6 +34,7 @@ export default function LandingIndex() { scrollTrigger: { trigger: hero, start: 'top top', end: 'bottom top', scrub: true }, }) + const el = falloutRef.current const container = containerRef.current gsap @@ -79,12 +81,24 @@ export default function LandingIndex() { }) }) + const hero = document.getElementById('hero')! + gsap.set(navRef.current, { y: -80 }) + const navTrigger = ScrollTrigger.create({ + trigger: hero, + start: 'bottom top', + onEnter: () => gsap.to(navRef.current, { y: 0, duration: 0.5, ease: 'power2.out' }), + onLeaveBack: () => gsap.to(navRef.current, { y: -80, duration: 0.4, ease: 'power2.in' }), + }) + return () => { ctx.revert() + navTrigger.kill() stickerCleanups.forEach((fn) => fn()) } }, []) + const [videoOpen, setVideoOpen] = useState(true) + const iframeRef = useRef(null) const [email, setEmail] = useState('') const [submitting, setSubmitting] = useState(false) const [currentSection, setCurrentSection] = useState('overview') @@ -159,7 +173,9 @@ export default function LandingIndex() { ] return ( + <>
+ Fallout: Hardware Hackathon

For teenagers 13-18

- - Sign in with HCA - + Sign in with HCA
+ {/*
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sit amet tempus ex, vitae pretium lectus. Aliquam mau +

+ +
*/} + +
+ {/* + */} + +
animateHowCards(0, true)} onMouseLeave={() => animateHowCards(0, false)} className="relative w-full sm:w-[33%] bg-dark-brown min-h-60 aspect-5/6 rounded-lg p-4 bg-cover hover:border-8 border-green bg-center outline-2 outline-beige hover:shadow-sm group" style={{ backgroundImage: "url('/1.png')" }}> +
+ Design your project! +
+
+ 1 +
+
+ +
animateHowCards(1, true)} onMouseLeave={() => animateHowCards(1, false)} className="relative w-full sm:w-[33%] bg-dark-brown min-h-60 rounded-lg p-4 hover:border-8 border-green flex flex-col aspect-5/6 bg-cover bg-center outline-2 outline-beige hover:shadow-sm group" style={{ backgroundImage: "url('/2.png')" }}> + Buy the parts with your grant & Build your project! + +
+ 2 +
+
+ +
animateHowCards(2, true)} onMouseLeave={() => animateHowCards(2, false)} className="hover:shadow-sm group relative w-full sm:w-[33%] min-h-60 rounded-lg flex flex-col hover:border-8 border-green aspect-5/6 bg-cover bg-center text-dark-brown outline-2 outline-beige" style={{ backgroundImage: "url('/3.png')" }}> + {/*

Share

*/} +
+ 3 +
+ Post your project online and earn your ticket to Fallout! + +
+
+ +
@@ -424,6 +477,50 @@ export default function LandingIndex() {
+
+
{ + setVideoOpen((v) => { + const next = !v + const msg = next ? 'playVideo' : 'pauseVideo' + iframeRef.current?.contentWindow?.postMessage(`{"event":"command","func":"${msg}","args":""}`, '*') + return next + }) + }}> + {videoOpen ? 'Close Video' : 'Open Video'} + +
+
+ +
+
+ {/*
+
+
+ fallout +
+
+ +
+
+
+ +
*/} + ) } diff --git a/app/frontend/styles/application.css b/app/frontend/styles/application.css index 61accca48..2569c3217 100644 --- a/app/frontend/styles/application.css +++ b/app/frontend/styles/application.css @@ -13,7 +13,7 @@ --breakpoint-2xs: 320px; --breakpoint-xs: 480px; - --color-blue: #38c9ff; + --color-blue: #41D2FF; --color-light-blue:#C3EFFF; --color-dark-brown: #61453a; --color-brown: #9f715d; @@ -21,7 +21,7 @@ --color-beige: #FFFCF5; --color-light-green: #c8e6d8; - --color-green: #A8C866; + --color-green: #37B576; /* --color-light-blue: #c3efff; */ --color-yellow: #ffebad; --color-pink: #fc90d2; diff --git a/public/arrow.png b/public/arrow.png deleted file mode 100644 index 111a702cc..000000000 Binary files a/public/arrow.png and /dev/null differ diff --git a/public/arrow.svg b/public/arrow.svg new file mode 100644 index 000000000..9e59f2d41 --- /dev/null +++ b/public/arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/arrow2.png b/public/arrow2.png deleted file mode 100644 index 853409b79..000000000 Binary files a/public/arrow2.png and /dev/null differ