import { Box, Button, ChevronDownIcon, Container, Flex, Heading, Image, MetaButton, Stack, Text, useBreakpointValue, } from '@metafam/ds'; import React, { useEffect, useState } from 'react'; import BubbleLg from '#assets/landing/pretty/bubble-large.svg'; import BubbleSm from '#assets/landing/pretty/bubble-small.svg'; import BackgroundImage5xl from '#assets/landing/sections/section-1.jpg'; import BackgroundImageMobile from '#assets/landing/sections/section-1.sm.jpg'; import BackgroundImage2xl from '#assets/landing/sections/section-1-2xl.jpg'; import BackgroundImage4xl from '#assets/landing/sections/section-1-4xl.jpg'; import BackgroundImageLg from '#assets/landing/sections/section-1-lg.jpg'; import { FullPageContainer } from '#components/Container'; import { useMotionDetector } from '#lib/hooks/useMotionDetector'; import { upDownAnimation, upDownAnimationLong } from './animations'; import { LandingPageSectionProps } from './landingSection'; const Intro: React.FC = ({ section, activeSectionIndex, }) => { const [onScreen, setOnScreen] = useState(false); const root = typeof window !== 'undefined' ? document.body : null; const noMotion = useMotionDetector(root); const displayElement = noMotion ? true : !!onScreen; const responsiveBg = useBreakpointValue({ base: BackgroundImageMobile, xl: BackgroundImageLg, '2xl': BackgroundImage2xl, '3xl': BackgroundImage4xl, '5xl': BackgroundImage5xl, }); useEffect(() => { setTimeout(() => setOnScreen(activeSectionIndex === 0), 500); }, [activeSectionIndex]); return ( A Massive{' '} Online Coordination Game Learn, Connect, Create MetaGame is a decentralized factory for builders of the future,{' '}
a DAO incubation & growth platform.
connect
); }; export default Intro; export const ScrollLink = ({ showQuote, toggleQuote, }: { showQuote: boolean; toggleQuote: () => null; }) => ( {`Scroll, not click 😄. But as you're here, 🐙...here's a word or two from a great man 👇`} {'Scroll down'} ); export const QuoteLayer = ({ quote, attr, showQuote, toggleQuote, }: { quote: string; attr: string; showQuote: boolean; toggleQuote: () => null; }) => ( {quote} — {attr} );