Skip to content

Commit af30452

Browse files
committed
feat: Create the home page of SkateHub
1 parent 444ffe2 commit af30452

File tree

3 files changed

+164
-2
lines changed

3 files changed

+164
-2
lines changed
790 KB
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
interface LogoSkateHubProps {
2+
showLogoData?: boolean;
3+
}
4+
5+
export function LogoSkateHub({ showLogoData = true }: LogoSkateHubProps) {
6+
return (
7+
<svg
8+
height="56.205"
9+
width="200"
10+
xmlns="http://www.w3.org/2000/svg"
11+
viewBox="0 0 200 56.205"
12+
version="1.1"
13+
>
14+
<g transform="scale(2.34375)" fill="#fff">
15+
<path
16+
cx="25"
17+
cy="25"
18+
r="25"
19+
d="M23.981 11.99A11.99 11.99 0 0 1 11.99 23.981A11.99 11.99 0 0 1 0 11.99A11.99 11.99 0 0 1 23.981 11.99z"
20+
></path>
21+
</g>
22+
<g transform="matrix(1.16667 0 0 1.16667 .667 0)">
23+
<path d="M15.348 27.818h-2.398a3.357 3.357 0 0 0 -3.357 3.357v4.796a3.357 3.357 0 0 0 3.357 3.357h2.398a3.357 3.357 0 0 0 3.357 -3.357v-1.439h10.552v1.439a3.357 3.357 0 0 0 3.357 3.357h2.398a3.357 3.357 0 0 0 3.357 -3.357V31.175a3.357 3.357 0 0 0 -3.357 -3.357h-2.398a3.357 3.357 0 0 0 -3.357 3.357v0.48h-3.837V16.307h3.837v0.48a3.357 3.357 0 0 0 3.357 3.357h2.398a3.357 3.357 0 0 0 3.357 -3.357V11.99a3.357 3.357 0 0 0 -3.357 -3.357h-2.398a3.357 3.357 0 0 0 -3.357 3.357v1.439H18.705v-1.439a3.357 3.357 0 0 0 -3.357 -3.357h-2.398a3.357 3.357 0 0 0 -3.357 3.357v4.796a3.357 3.357 0 0 0 3.357 3.357h2.398a3.357 3.357 0 0 0 3.357 -3.357v-0.48h3.837v15.348h-3.837v-0.48a3.357 3.357 0 0 0 -3.357 -3.357m0.48 8.153a0.48 0.48 0 0 1 -0.48 0.48h-2.398a0.48 0.48 0 0 1 -0.48 -0.48V31.175a0.48 0.48 0 0 1 0.48 -0.48h2.398a0.48 0.48 0 0 1 0.48 0.48Zm16.307 -4.796a0.48 0.48 0 0 1 0.48 -0.48h2.398a0.48 0.48 0 0 1 0.48 0.48v4.796a0.48 0.48 0 0 1 -0.48 0.48h-2.398a0.48 0.48 0 0 1 -0.48 -0.48Zm0 -19.185a0.48 0.48 0 0 1 0.48 -0.48h2.398a0.48 0.48 0 0 1 0.48 0.48v4.796a0.48 0.48 0 0 1 -0.48 0.48h-2.398a0.48 0.48 0 0 1 -0.48 -0.48ZM15.827 16.787a0.48 0.48 0 0 1 -0.48 0.48h-2.398a0.48 0.48 0 0 1 -0.48 -0.48V11.99a0.48 0.48 0 0 1 0.48 -0.48h2.398a0.48 0.48 0 0 1 0.48 0.48Z"></path>
24+
</g>
25+
<g transform="translate(66 8.89)scale(1.58192)" fill="#fff">
26+
<path d="M5.583 19.434C2.264 19.434 0.441 17.784 0.269 15.079h2.974c0.058 0.998 0.633 1.995 2.417 1.995 1.496 0 2.264 -0.595 2.264 -1.42 0 -1.017 -1.285 -1.285 -2.782 -1.612 -2.091 -0.499 -4.643 -1.113 -4.643 -4.24 0 -2.302 1.784 -4.01 4.93 -4.01 3.204 0 4.969 1.746 5.161 4.317h-2.993c-0.058 -1.055 -0.633 -1.899 -2.245 -1.899 -1.189 0 -1.976 0.48 -1.976 1.343 0 1.113 1.305 1.42 2.801 1.765 2.149 0.48 4.719 1.017 4.719 3.971 0 2.398 -1.88 4.144 -5.314 4.144m8.921 -5.679 3.261 -4.412h3.031l-3.779 4.892L20.95 19.185h-3.319l-3.127 -4.048V19.185h-2.686V6.043h2.686zm11.99 -2.091c-1.458 0 -2.59 1.189 -2.59 2.647 0 1.477 1.132 2.647 2.59 2.647 1.535 0 2.686 -1.17 2.686 -2.647 0 -1.458 -1.189 -2.647 -2.686 -2.647M29.141 19.185v-0.729c-0.691 0.537 -1.765 0.863 -2.878 0.863 -2.686 0 -4.969 -2.168 -4.969 -5.007s2.283 -5.065 4.969 -5.065c1.113 0 2.187 0.345 2.878 0.882v-0.787h2.667V19.185zm7.674 -9.842h2.417v2.379h-2.417v3.952c0 0.882 0.403 1.228 1.305 1.228h1.113V19.185h-1.305c-2.609 0 -3.779 -1.17 -3.779 -3.376v-4.086h-1.42v-2.379h1.42V6.811h2.667zm13.084 7.731c-0.959 1.439 -2.475 2.341 -4.662 2.341 -3.146 0 -5.18 -2.206 -5.18 -5.122 0 -2.839 2.11 -5.141 5.199 -5.141 3.108 0 4.988 2.149 4.988 5.007 0 0.384 -0.038 0.882 -0.038 0.94H42.686c0.288 1.247 1.228 2.053 2.609 2.053 1.189 0 2.053 -0.518 2.609 -1.305zm-4.662 -5.736c-1.247 0 -2.11 0.671 -2.456 1.784h4.777c-0.288 -1.189 -1.247 -1.784 -2.321 -1.784M59.971 19.185V14.043h-5.564V19.185h-2.974V6.043h2.974v5.276h5.564v-5.276h2.974V19.185zm13.602 0h-2.628v-0.978c-0.671 0.71 -1.669 1.151 -2.859 1.151 -2.302 0 -3.799 -1.592 -3.799 -3.971v-6.043h2.647v5.583c0 1.17 0.671 1.976 1.823 1.976 1.285 0 2.168 -0.825 2.168 -2.187v-5.372h2.647zm6.619 0.134c-1.113 0 -2.187 -0.326 -2.878 -0.863V19.185h-2.667V6.043h2.667v4.086c0.691 -0.537 1.765 -0.882 2.878 -0.882 2.686 0 4.969 2.225 4.969 5.065s-2.283 5.007 -4.969 5.007m-0.23 -2.36c1.458 0 2.59 -1.17 2.59 -2.647 0 -1.458 -1.132 -2.647 -2.59 -2.647 -1.496 0 -2.686 1.189 -2.686 2.647 0 1.477 1.151 2.647 2.686 2.647"></path>
27+
</g>
28+
</svg>
29+
);
30+
}

src/pages/index.tsx

Lines changed: 134 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,137 @@
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'
24

35
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+
)
5137
}

0 commit comments

Comments
 (0)