Files
TheGame/packages/web/components/Landing/Build.tsx
dan13ram 7bc99d4b45 Fix Onboarding + A Bunch of Other Issues (#1181)
* feat: metamask switch network support + fixed dependancy cycle

* feat: moved landing to index

* feat: updated favicon

* fix: fixed landing page issues + scrollSnap

* feat: join button

* fix: fixed seed script with new prod schema

* feat: join button redirects based on user creation date

* fix: minor ui bug fixes

* feat: connect to mainnet to continue with switch network on metamask

* fix: uniform setup screens

* fix: fixed XP on dashboard

* feat: added start page

* fix: fixed issues on landing page

* fix: fixed minor issues on dashboard

* fix: update idx profile in auth webhook for new players

* fix: minor fixes in seed page

* fix: player avatar & type

* fix: incorporated review comments from @dysbulic & @vidvidvid

* fix: more review comments
2022-03-07 10:20:26 -05:00

48 lines
1.4 KiB
TypeScript

import { Flex, Text } from '@metafam/ds';
import BackgroundImage from 'assets/landing/build-background.png';
import { FullPageContainer } from 'components/Container';
import { useOnScreen } from 'lib/hooks/useOnScreen';
import { useRef } from 'react';
import { LandingNextButton } from './LandingNextButton';
export const Build: React.FC = () => {
const ref = useRef<HTMLDivElement>(null);
const onScreen = useOnScreen(ref);
const section = 'build-the-future';
return (
<FullPageContainer
bgImageUrl={BackgroundImage}
id={section}
position="relative"
color="white"
>
<Flex
ref={ref}
direction="column"
justify="center"
fontSize={{ base: '1.5rem', lg: '2.375rem' }}
lineHeight={{ base: '2.35rem', lg: '3.5rem' }}
maxWidth={{ base: 'unset', md: 'md', lg: 'lg' }}
pl={0}
zIndex={100}
transform={`translate3d(0, ${onScreen ? 0 : '50px'}, 0)`}
opacity={onScreen ? 1 : 0}
transition="transform 0.3s 0.1s ease-in-out, opacity 0.5s 0.2s ease-in"
>
<Text>
Many have already woken up to the world-shaping potential of Web3
technologies.
</Text>
<Text pt={{ base: 4, md: 8 }}>
Some are grabbing the opportunity to build the future they want to
live in.
</Text>
</Flex>
<LandingNextButton section="a-revolution" />
</FullPageContainer>
);
};