6
6
FlexProps ,
7
7
Heading ,
8
8
HeadingProps ,
9
- SimpleGrid ,
10
9
Text ,
11
10
} from "@chakra-ui/react"
12
11
import { GatsbyImage } from "gatsby-plugin-image"
@@ -91,7 +90,7 @@ const Title = (props: ChildOnlyProp) => (
91
90
as = "h1"
92
91
fontSize = "sm"
93
92
lineHeight = { 1.4 }
94
- letterSpacing = "wider "
93
+ letterSpacing = "0.04em "
95
94
fontWeight = "500"
96
95
mb = { 4 }
97
96
mt = { 0 }
@@ -108,15 +107,34 @@ const Subtitle = (props: ChildOnlyProp) => (
108
107
const TwoColumnContent = ( props : FlexProps ) => (
109
108
< Flex
110
109
w = "full"
111
- gap = { { base : 8 , lg : 0 } }
112
- align = { { base : "flex-start" , lg : "center" } }
113
110
direction = { { base : "column" , lg : "row" } }
111
+ justify = "space-between"
114
112
p = { 8 }
115
113
mb = { 12 }
116
114
{ ...props }
117
115
/>
118
116
)
119
117
118
+ export const LeftColumn = ( props : ChildOnlyProp ) => (
119
+ < Box
120
+ flex = "0 0 50%"
121
+ maxW = { { base : "full" , lg : "75%" } }
122
+ mr = { { lg : 16 } }
123
+ { ...props }
124
+ />
125
+ )
126
+
127
+ export const RightColumn = ( props : ChildOnlyProp ) => (
128
+ < Flex
129
+ flex = "0 1 50%"
130
+ direction = "column"
131
+ justify = "center"
132
+ maxW = { { base : "full" , lg : "75%" } }
133
+ mt = { { base : 12 , lg : 0 } }
134
+ { ...props }
135
+ />
136
+ )
137
+
120
138
const SubtitleTwo = ( props : ChildOnlyProp ) => (
121
139
< Text fontSize = "xl" lineHeight = { 1.4 } color = "text300" mb = { 8 } { ...props } />
122
140
)
@@ -184,7 +202,7 @@ const TextDivider = () => (
184
202
h = "1px"
185
203
bg = "searchResultBackground"
186
204
my = { 8 }
187
- alignSelf = { { base : "flex-start" } }
205
+ alignSelf = { { lg : "flex-start" } }
188
206
/>
189
207
)
190
208
@@ -207,6 +225,7 @@ const CentralActionCard = (props: ComponentProps<typeof ActionCard>) => (
207
225
mx = { 0 }
208
226
sx = { {
209
227
".action-card-image-wrapper" : {
228
+ p : 4 ,
210
229
minW : { sm : "260px" } ,
211
230
} ,
212
231
".action-card-content" : {
@@ -503,8 +522,8 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
503
522
</ CalloutBanner >
504
523
</ Content >
505
524
506
- < SimpleGrid columns = { { base : 1 , lg : 2 } } p = { 8 } spacing = { 8 } >
507
- < Box >
525
+ < TwoColumnContent >
526
+ < LeftColumn >
508
527
< h3 >
509
528
< Translation id = "page-eth-has-value" />
510
529
</ h3 >
@@ -523,13 +542,13 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
523
542
< p >
524
543
< Translation id = "page-eth-has-value-desc-5" />
525
544
</ p >
526
- </ Box >
527
- < Flex align = "center" >
545
+ </ LeftColumn >
546
+ < RightColumn >
528
547
< CardList content = { cardListContent } />
529
- </ Flex >
530
- </ SimpleGrid >
531
- < SimpleGrid id = "tokens" columns = { { base : 1 , lg : 2 } } p = { 8 } spacing = { 8 } >
532
- < Box >
548
+ </ RightColumn >
549
+ </ TwoColumnContent >
550
+ < TwoColumnContent id = "tokens" align = "flex-start" >
551
+ < LeftColumn >
533
552
< h3 >
534
553
< Translation id = "page-eth-not-only-crypto" />
535
554
</ h3 >
@@ -543,8 +562,8 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
543
562
< Translation id = "page-eth-more-on-tokens" />
544
563
</ h4 >
545
564
< CardList content = { tokenLinks } />
546
- </ Box >
547
- < Box >
565
+ </ LeftColumn >
566
+ < RightColumn >
548
567
< h3 >
549
568
< Translation id = "page-eth-popular-tokens" />
550
569
</ h3 >
@@ -557,8 +576,8 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
557
576
emojiSize = { 5 }
558
577
/>
559
578
) ) }
560
- </ Box >
561
- </ SimpleGrid >
579
+ </ RightColumn >
580
+ </ TwoColumnContent >
562
581
< Content >
563
582
< Center w = "100%" >
564
583
< QuizWidget quizKey = "what-is-ether" />
0 commit comments