1
1
import React from 'react' ;
2
- import { GetStaticProps } from 'next' ;
3
- import Typed from 'react-typed' ;
2
+ import styled from '@emotion/styled' ;
4
3
import {
5
4
Flex ,
6
5
Image ,
@@ -9,37 +8,47 @@ import {
9
8
Link ,
10
9
useColorMode ,
11
10
} from '@chakra-ui/core' ;
12
- import { getRoadmaps , GetRoadmapsResponse } from '../api/roadmaps' ;
11
+ import { GetRoadmapsResponse } from '../api/roadmaps' ;
13
12
import { Text } from '../components' ;
14
13
import CardHowDoesItWork from '../components/CardHowDoesItWork' ;
15
14
import DiscordConnect from '../components/DiscordConnect' ;
16
- import { useBreakpointValue } from '@chakra-ui/media-query' ;
17
15
18
16
interface Props {
19
17
roadmaps : GetRoadmapsResponse ;
20
18
}
21
19
20
+ const CardRoadmap = styled . div `
21
+ padding: 1.5rem;
22
+ display: flex;
23
+ flex-direction: column;
24
+ justify-content: flex-start;
25
+ text-align: start;
26
+ border-color: #f26840;
27
+ border-width: 0.08rem;
28
+ border-radius: 0.2rem;
29
+ ` ;
30
+
22
31
const Home : React . FC < Props > = ( { roadmaps } ) => {
23
32
const { colorMode, toggleColorMode } = useColorMode ( ) ;
24
33
const HowDoesItWork = [
25
34
{
26
- image : 'indexone .svg' ,
35
+ image : 'learn .svg' ,
27
36
title : 'Un lugar para aprender y enseñar.' ,
28
37
description :
29
38
'En Coderhood Academy es y siempre será un lugar donde no sólo podés estudiar programacion sino también compartir tu conocimiento con otras personas que sienten lo mismo que vos, un lugar donde vas a poder tanto estudiar como enseñar.' ,
30
39
imageSide : 'left' ,
31
40
} ,
32
41
33
42
{
34
- image : 'indextwo .svg' ,
43
+ image : 'study .svg' ,
35
44
title : 'Acompañamiento continuo.' ,
36
45
description :
37
46
'Desde la dirección y los profesores hasta nuestro CEO, todos nos encontramos a tu disposición día a día para brindarte la mejor calidad de servicio.' ,
38
47
imageSide : 'right' ,
39
48
} ,
40
49
41
50
{
42
- image : 'indexthree .svg' ,
51
+ image : 'game .svg' ,
43
52
title : 'Valores.' ,
44
53
description :
45
54
'Sabemos la importancia de acompañar tus estudios que te representen y los esgrimimos con orgullo: honestidad, transparencia, accesibilidad, buena voluntad, inclusión, proactividad y mejora continua. ¡Estudiar en Coderhood Academy es invertir en tu futuro con garantía certera de satisfacción y sin fecha de expiración!' ,
@@ -53,7 +62,7 @@ const Home: React.FC<Props> = ({ roadmaps }) => {
53
62
< Flex w = "100%" h = "60vh" alignItems = "center" justifyContent = "center" >
54
63
< Flex direction = "column" justifyContent = "flex-start" width = "80%" >
55
64
< Text
56
- color = { colorMode === 'light' ? 'gray.800' : 'white ' }
65
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300 ' }
57
66
fontFamily = "Poppins"
58
67
fontSize = { [ '2rem' , '2rem' , '3.5rem' , '3.2rem' , '4.1rem' ] }
59
68
width = "50%"
@@ -70,7 +79,7 @@ const Home: React.FC<Props> = ({ roadmaps }) => {
70
79
Bienvenido a tu comunidad.
71
80
</ Text >
72
81
< Text
73
- color = { colorMode === 'light' ? 'gray.800' : 'white ' }
82
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300 ' }
74
83
fontFamily = "Public Sans"
75
84
fontSize = { [ '1rem' , '1rem' , '1.1rem' , '1.1rem' , '1.3rem' ] }
76
85
mt = { [ '0.3rem' , '0.3rem' , '0.5rem' ] }
@@ -81,14 +90,14 @@ const Home: React.FC<Props> = ({ roadmaps }) => {
81
90
< Link
82
91
width = { [ '4rem' , '6rem' , '7rem' , '8rem' ] }
83
92
href = "https://discord.gg/xw2dbyv"
84
- _hover = { { color : 'white ' } }
93
+ _hover = { { color : 'gray.300 ' } }
85
94
target = "_blank"
86
95
>
87
96
< Button
88
97
_hover = { { bg : '#f26840' } }
89
98
bg = "#f26840"
90
99
borderRadius = "0.2rem"
91
- color = "white "
100
+ color = "gray.300 "
92
101
size = "md"
93
102
fontSize = "0.9rem"
94
103
width = { [ '4rem' , '6rem' , '7rem' , '8rem' ] }
@@ -108,6 +117,95 @@ const Home: React.FC<Props> = ({ roadmaps }) => {
108
117
/>
109
118
) ) }
110
119
120
+ < Flex w = "100%" h = "100vh" alignItems = "center" >
121
+ < Flex w = "100%" h = "60vh" alignItems = "center" justifyContent = "center" >
122
+ < Flex
123
+ direction = "column"
124
+ justifyContent = "center"
125
+ alignItems = "center"
126
+ textAlign = "center"
127
+ width = "80%"
128
+ >
129
+ < Image
130
+ src = "rocket.svg"
131
+ alt = "rocket image"
132
+ justifyContent = "flex-end"
133
+ w = { [ '14rem' , '20rem' , '30rem' , '30rem' , '30rem' ] }
134
+ mb = { [ '-3.2rem' , '-7rem' , '-7rem' , '-7rem' , '-7rem' ] }
135
+ />
136
+ < Text
137
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300' }
138
+ fontFamily = "Poppins"
139
+ fontWeight = "700"
140
+ fontSize = { [ '1.2rem' , '1.2rem' , '2rem' , '2.4rem' , '2.8rem' ] }
141
+ mb = { [ '5px' , '5px' , '7px' , '7px' , '7px' ] }
142
+ >
143
+ Empeza a aprender hoy.
144
+ </ Text >
145
+ < Text
146
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300' }
147
+ fontFamily = "Public Sans"
148
+ fontSize = { [ '0.9rem' , '0.9rem' , '1rem' , '1rem' , '1.4rem' ] }
149
+ mt = { [ '5px' , '5px' , '7px' ] }
150
+ mb = { [ '10px' , '10px' , '20px' , '30px' ] }
151
+ >
152
+ Elegi una de nuestras guias de aprendizaje y comenza a aprender
153
+ nuevas tecnologias que potenciaran tu futuro.
154
+ </ Text >
155
+ < SimpleGrid
156
+ justifyContent = "space-around"
157
+ w = "90%"
158
+ mt = { [ '1.3rem' , '1.3rem' , '1.4rem' , '1.5rem' ] }
159
+ columns = { [ 1 , 2 , 2 , 2 , 2 ] }
160
+ spacing = { [ '0.5rem' , '2rem' , '3rem' , '4rem' , '5rem' ] }
161
+ >
162
+ < Link href = "/" _hover = { { color : 'gray.300' } } target = "_blank" >
163
+ < CardRoadmap >
164
+ < Text
165
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300' }
166
+ fontFamily = "Poppins"
167
+ fontWeight = "500"
168
+ fontSize = { [ '1.2rem' , '1.2rem' , '2rem' , '2.3rem' , '2.6rem' ] }
169
+ >
170
+ Frontend
171
+ </ Text >
172
+ < Text
173
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300' }
174
+ fontFamily = "Public Sans"
175
+ fontSize = { [ '0.9rem' , '0.9rem' , '1rem' , '1rem' , '1.4rem' ] }
176
+ mt = { [ '0.3rem' , '0.3rem' , '0.4rem' , '0.5rem' ] }
177
+ >
178
+ Guia paso a paso para convertirte en un desarrollador
179
+ frontend moderno.
180
+ </ Text >
181
+ </ CardRoadmap >
182
+ </ Link >
183
+ < Link href = "/" _hover = { { color : 'gray.300' } } target = "_blank" >
184
+ < CardRoadmap >
185
+ < Text
186
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300' }
187
+ fontFamily = "Poppins"
188
+ fontWeight = "500"
189
+ fontSize = { [ '1.2rem' , '1.2rem' , '2rem' , '2.3rem' , '2.6rem' ] }
190
+ >
191
+ Backend
192
+ </ Text >
193
+ < Text
194
+ color = { colorMode === 'light' ? 'gray.800' : 'gray.300' }
195
+ fontFamily = "Public Sans"
196
+ fontSize = { [ '0.9rem' , '0.9rem' , '1rem' , '1rem' , '1.4rem' ] }
197
+ mt = { [ '0.3rem' , '0.3rem' , '0.4rem' , '0.5rem' ] }
198
+ >
199
+ Guia paso a paso para convertirte en un desarrollador
200
+ backend moderno.
201
+ </ Text >
202
+ </ CardRoadmap >
203
+ </ Link >
204
+ </ SimpleGrid >
205
+ </ Flex >
206
+ </ Flex >
207
+ </ Flex >
208
+
111
209
< DiscordConnect />
112
210
</ >
113
211
) ;
0 commit comments