|
1 |
| -import { Text } from '@chakra-ui/react' |
| 1 | +import { useRouter } from 'next/router' |
| 2 | +import { LogoSkateHub } from '@/components/LogoSkateHub' |
| 3 | +import { Button, Flex, Grid, GridItem, Stack, Text } from '@chakra-ui/react' |
2 | 4 |
|
3 | 5 | export default function Home() {
|
4 |
| - return <Text as="h1">Hello World</Text> |
| 6 | + const router = useRouter() |
| 7 | + |
| 8 | + return ( |
| 9 | + <> |
| 10 | + <Grid templateColumns={['1fr', 'repeat(5, 1fr)']} gap="0"> |
| 11 | + <GridItem |
| 12 | + hideBelow={'md'} |
| 13 | + colSpan={{ md: 2, lg: 2, xl: 3 }} |
| 14 | + h="100dvh" |
| 15 | + bg="gray.800" |
| 16 | + backgroundSize="cover" |
| 17 | + backgroundRepeat="no-repeat" |
| 18 | + backgroundBlendMode="luminosity" |
| 19 | + backgroundPosition="center bottom" |
| 20 | + backgroundImage="./alexander-londono-unsplash.jpeg" |
| 21 | + // backgroundPosition="center 15%" |
| 22 | + // backgroundImage="./tom-morbey-unsplash-2.jpeg" |
| 23 | + > |
| 24 | + <Flex marginLeft="8" marginTop="5"> |
| 25 | + <LogoSkateHub /> |
| 26 | + </Flex> |
| 27 | + </GridItem> |
| 28 | + <GridItem |
| 29 | + colStart={{ base: 1, md: 3, lg: 3, xl: 4 }} |
| 30 | + colEnd={6} |
| 31 | + h="100dvh" |
| 32 | + > |
| 33 | + <Stack spacing="4" py={['4', '8']} px={['4', '12']} h="100dvh"> |
| 34 | + <Flex |
| 35 | + flexDir="column" |
| 36 | + flexGrow="1" |
| 37 | + alignItems="center" |
| 38 | + justifyContent="center" |
| 39 | + > |
| 40 | + <Flex flexDir="column" w="100%" alignItems="center"> |
| 41 | + <Text |
| 42 | + fontSize="3xl" |
| 43 | + fontWeight="bold" |
| 44 | + letterSpacing="tighter" |
| 45 | + align="center" |
| 46 | + display="flex" |
| 47 | + > |
| 48 | + Seja bem-vindo ao SkateHub |
| 49 | + </Text> |
| 50 | + <Text |
| 51 | + as="span" |
| 52 | + fontWeight="normal" |
| 53 | + align="center" |
| 54 | + color="gray.300" |
| 55 | + > |
| 56 | + Junte-se à comunidade e faça parte da evolução do esporte. |
| 57 | + </Text> |
| 58 | + <Text |
| 59 | + as="small" |
| 60 | + fontWeight="normal" |
| 61 | + align="center" |
| 62 | + color="gray.500" |
| 63 | + > |
| 64 | + Faça login ou cadastre-se para começar a explorar todas as |
| 65 | + funcionalidades! |
| 66 | + </Text> |
| 67 | + </Flex> |
| 68 | + <Flex |
| 69 | + alignItems="center" |
| 70 | + justifyContent="center" |
| 71 | + flexDirection="row" |
| 72 | + gap="3" |
| 73 | + w="100%" |
| 74 | + > |
| 75 | + <Button |
| 76 | + type="button" |
| 77 | + mt="3" |
| 78 | + colorScheme="green" |
| 79 | + size="lg" |
| 80 | + w="100%" |
| 81 | + onClick={() => router.push('/auth/signin')} |
| 82 | + > |
| 83 | + Entrar |
| 84 | + </Button> |
| 85 | + <Button |
| 86 | + type="button" |
| 87 | + mt="3" |
| 88 | + colorScheme="pink" |
| 89 | + size="lg" |
| 90 | + w="100%" |
| 91 | + onClick={() => router.push('/auth/signup')} |
| 92 | + > |
| 93 | + Cadastro |
| 94 | + </Button> |
| 95 | + </Flex> |
| 96 | + </Flex> |
| 97 | + <Flex |
| 98 | + alignItems="center" |
| 99 | + justifyContent="center" |
| 100 | + flexDirection="row" |
| 101 | + > |
| 102 | + <Text |
| 103 | + as="a" |
| 104 | + href="#" |
| 105 | + color="gray.600" |
| 106 | + align="center" |
| 107 | + textDecoration="underline" |
| 108 | + fontSize="smaller" |
| 109 | + > |
| 110 | + Termos de uso |
| 111 | + </Text> |
| 112 | + <Text |
| 113 | + as="span" |
| 114 | + color="gray.600" |
| 115 | + paddingLeft="4" |
| 116 | + paddingRight="4" |
| 117 | + fontSize="smaller" |
| 118 | + > |
| 119 | + | |
| 120 | + </Text> |
| 121 | + <Text |
| 122 | + as="a" |
| 123 | + href="#" |
| 124 | + color="gray.600" |
| 125 | + align={'center'} |
| 126 | + textDecoration="underline" |
| 127 | + fontSize="smaller" |
| 128 | + > |
| 129 | + Política de privacidade |
| 130 | + </Text> |
| 131 | + </Flex> |
| 132 | + </Stack> |
| 133 | + </GridItem> |
| 134 | + </Grid> |
| 135 | + </> |
| 136 | + ) |
5 | 137 | }
|
0 commit comments