@@ -10,7 +10,6 @@ import {
10
10
Heading ,
11
11
HeadingProps ,
12
12
Icon ,
13
- Img ,
14
13
SimpleGridProps ,
15
14
Stack ,
16
15
useToken ,
@@ -25,14 +24,13 @@ import CalloutBanner from "../components/CalloutBanner"
25
24
import CodeModal from "../components/CodeModal"
26
25
import Codeblock from "../components/Codeblock"
27
26
import CommunityEvents from "../components/CommunityEvents"
28
- import Morpher from "../components/Morpher"
29
27
import PageMetadata from "../components/PageMetadata"
30
28
import StatsBoxGrid from "../components/StatsBoxGrid"
31
29
import Translation from "../components/Translation"
32
30
import TitleCardList , { ITitleCardItem } from "../components/TitleCardList"
33
- import Text from "../components/OldText"
34
31
import GatsbyImage from "../components/GatsbyImage"
35
32
import WritersCohortBanner from "../components/Banners/Implementations/WritersCohortBanner"
33
+ import { HomeHero } from "../components/Hero"
36
34
37
35
import { isLangRightToLeft } from "../utils/translations"
38
36
import { getImage } from "../utils/image"
@@ -153,30 +151,6 @@ const ButtonLinkRow = (props: ChildOnlyProp) => (
153
151
/>
154
152
)
155
153
156
- const PageHeader = ( ) => (
157
- < Flex
158
- as = "header"
159
- flexDirection = "column"
160
- alignItems = "center"
161
- textAlign = "center"
162
- mt = { 4 }
163
- mb = { 8 }
164
- px = { 8 }
165
- >
166
- < Heading as = "h1" fontSize = { { base : "2rem" , sm : "2.5rem" } } >
167
- < Translation id = "page-index-title" />
168
- </ Heading >
169
- < Text color = "text200" maxW = "55ch" fontSize = "xl" mt = { 4 } >
170
- < Translation id = "page-index-description" />
171
- </ Text >
172
- < ButtonLinkRow >
173
- < ButtonLink to = "/learn/" >
174
- < Translation id = "page-index-title-button" />
175
- </ ButtonLink >
176
- </ ButtonLinkRow >
177
- </ Flex >
178
- )
179
-
180
154
const HomePage = ( {
181
155
data,
182
156
pageContext : { language = "en" } ,
@@ -288,19 +262,9 @@ const HomePage = ({
288
262
title = { t ( "page-index-meta-title" ) }
289
263
description = { t ( "page-index-meta-description" ) }
290
264
/>
291
- < GatsbyImage
292
- image = { getImage ( data . hero ) ! }
293
- alt = { t ( "page-index-hero-image-alt" ) }
294
- loading = "eager"
295
- width = "full"
296
- minH = "380px"
297
- maxH = "440px"
298
- backgroundSize = "cover"
299
- background = "no-repeat 50px"
300
- mb = { 8 }
301
- />
302
- < Morpher />
303
- < PageHeader />
265
+ < Box w = "full" >
266
+ < HomeHero heroImgSrc = { getImage ( data . hero ) ! } />
267
+ </ Box >
304
268
{ /* Getting Started Section */ }
305
269
< GrayContainer >
306
270
< ContentBox >
0 commit comments