6
6
FlexProps ,
7
7
Heading ,
8
8
HeadingProps ,
9
+ ListItem ,
9
10
Text ,
11
+ UnorderedList ,
10
12
} from "@chakra-ui/react"
11
13
import { GatsbyImage } from "gatsby-plugin-image"
12
14
import { useTranslation } from "gatsby-plugin-react-i18next"
@@ -178,7 +180,16 @@ const H2 = (prop: HeadingProps) => (
178
180
/>
179
181
)
180
182
181
- const H4 = ( props : ChildOnlyProp ) => (
183
+ const H3 = ( props : HeadingProps ) => (
184
+ < Heading
185
+ as = "h3"
186
+ fontSize = { { base : "xl" , m : "2xl" } }
187
+ lineHeight = { 1.4 }
188
+ { ...props }
189
+ />
190
+ )
191
+
192
+ const H4 = ( props : HeadingProps ) => (
182
193
< Heading
183
194
as = "h4"
184
195
fontSize = { { base : "md" , md : "xl" } }
@@ -382,9 +393,9 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
382
393
< GrayContainer >
383
394
< Content >
384
395
< Intro >
385
- < p >
396
+ < Text >
386
397
< Translation id = "page-eth-description" /> { " " }
387
- </ p >
398
+ </ Text >
388
399
</ Intro >
389
400
< CardContainer mb = { 8 } >
390
401
{ benefits . map ( ( benefits , idx ) => (
@@ -397,9 +408,9 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
397
408
) ) }
398
409
</ CardContainer >
399
410
< InfoBanner emoji = ":wave:" shouldCenter >
400
- < b >
411
+ < Text as = "b" >
401
412
< Translation id = "page-eth-buy-some" />
402
- </ b > { " " }
413
+ </ Text > { " " }
403
414
< Translation id = "page-eth-buy-some-desc" /> { " " }
404
415
< Link to = "/what-is-ethereum/" >
405
416
< Translation id = "page-eth-more-on-ethereum-link" />
@@ -413,96 +424,96 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
413
424
< H2 >
414
425
< Translation id = "page-eth-whats-unique" />
415
426
</ H2 >
416
- < p >
427
+ < Text >
417
428
< Translation id = "page-eth-whats-unique-desc" />
418
- </ p >
429
+ </ Text >
419
430
< EthVideo />
420
- < div >
431
+ < Box >
421
432
< H4 >
422
433
< Translation id = "page-eth-fuels" />
423
434
</ H4 >
424
- < p >
435
+ < Text >
425
436
< Translation id = "page-eth-fuels-desc" />
426
- </ p >
427
- < p >
437
+ </ Text >
438
+ < Text >
428
439
< Translation id = "page-eth-fuels-desc-2" />
429
- </ p >
430
- < p >
440
+ </ Text >
441
+ < Text >
431
442
< Translation id = "page-eth-fuels-desc-3" /> { " " }
432
- < strong >
443
+ < Text as = " strong" >
433
444
< Translation id = "page-eth-powers-ethereum" />
434
- </ strong >
445
+ </ Text >
435
446
< Translation id = "page-eth-period" />
436
- </ p >
437
- < p >
447
+ </ Text >
448
+ < Text >
438
449
< Translation id = "page-eth-fuels-staking" /> { " " }
439
450
< Link to = "/staking/" >
440
451
< Translation id = "page-eth-fuels-more-staking" />
441
452
</ Link >
442
- </ p >
443
- </ div >
453
+ </ Text >
454
+ </ Box >
444
455
< CentralActionCard
445
456
to = "/what-is-ethereum/"
446
457
title = { t ( "page-eth-whats-ethereum" ) }
447
458
description = { t ( "page-eth-whats-ethereum-desc" ) }
448
459
image = { getImage ( data . ethereum ) ! }
449
460
/>
450
461
< TextDivider />
451
- < div >
462
+ < Box >
452
463
< H4 >
453
464
< Translation id = "page-eth-underpins" />
454
465
</ H4 >
455
- < p >
466
+ < Text >
456
467
< Translation id = "page-eth-underpins-desc" />
457
- </ p >
458
- < p >
468
+ </ Text >
469
+ < Text >
459
470
< Translation id = "page-eth-underpins-desc-2" />
460
- </ p >
471
+ </ Text >
461
472
< CentralActionCard
462
473
to = "/defi/"
463
474
title = { t ( "page-eth-whats-defi" ) }
464
475
description = { t ( "page-eth-whats-defi-description" ) }
465
476
image = { getImage ( data . defi ) ! }
466
477
/>
467
- </ div >
478
+ </ Box >
468
479
< TextDivider />
469
- < div >
480
+ < Box >
470
481
< H4 >
471
482
< Translation id = "page-eth-uses" />
472
483
</ H4 >
473
- < p >
484
+ < Text >
474
485
< Translation id = "page-eth-uses-desc" />
475
- </ p >
476
- < p >
486
+ </ Text >
487
+ < Text >
477
488
< Translation id = "page-eth-uses-desc-2" /> { " " }
478
- </ p >
479
- < ul >
480
- < li >
489
+ </ Text >
490
+ < UnorderedList >
491
+ < ListItem >
481
492
< Link to = "https://sablier.finance" >
482
493
< Translation id = "page-eth-stream-link" />
483
494
</ Link > { " " }
484
495
– < Translation id = "page-eth-uses-desc-3" />
485
- </ li >
486
- < li >
496
+ </ ListItem >
497
+ < ListItem >
487
498
< Link to = "/get-eth/#dex" >
488
499
< Translation id = "page-eth-trade-link-2" />
489
500
</ Link > { " " }
490
501
– < Translation id = "page-eth-uses-desc-4" />
491
- </ li >
492
- < li >
502
+ </ ListItem >
503
+ < ListItem >
493
504
< Link to = "https://app.compound.finance/" >
494
505
< Translation id = "page-eth-earn-interest-link" />
495
506
</ Link > { " " }
496
507
– < Translation id = "page-eth-uses-desc-5" />
497
- </ li >
498
- < li >
508
+ </ ListItem >
509
+ < ListItem >
499
510
< Link to = "/stablecoins/" >
500
511
< Translation id = "page-eth-stablecoins-link" />
501
512
</ Link > { " " }
502
513
– < Translation id = "page-eth-uses-desc-6" />
503
- </ li >
504
- </ ul >
505
- </ div >
514
+ </ ListItem >
515
+ </ UnorderedList >
516
+ </ Box >
506
517
< Divider />
507
518
</ CentralColumn >
508
519
< CalloutBanner
@@ -514,59 +525,59 @@ const EthPage = (props: PageProps<Queries.EthPageQuery, Context>) => {
514
525
alt = { t ( "page-eth-cat-img-alt" ) }
515
526
maxImageWidth = { 300 }
516
527
>
517
- < div >
528
+ < Box >
518
529
< ButtonLink to = "/get-eth/" >
519
530
< Translation id = "page-eth-get-eth-btn" />
520
531
</ ButtonLink >
521
- </ div >
532
+ </ Box >
522
533
</ CalloutBanner >
523
534
</ Content >
524
535
525
536
< TwoColumnContent >
526
537
< LeftColumn >
527
- < h3 >
538
+ < H3 >
528
539
< Translation id = "page-eth-has-value" />
529
- </ h3 >
530
- < p >
540
+ </ H3 >
541
+ < Text >
531
542
< Translation id = "page-eth-has-value-desc" />
532
- </ p >
533
- < p >
543
+ </ Text >
544
+ < Text >
534
545
< Translation id = "page-eth-has-value-desc-2" />
535
- </ p >
536
- < p >
546
+ </ Text >
547
+ < Text >
537
548
< Translation id = "page-eth-has-value-desc-3" />
538
- </ p >
539
- < p >
549
+ </ Text >
550
+ < Text >
540
551
< Translation id = "page-eth-has-value-desc-4" />
541
- </ p >
542
- < p >
552
+ </ Text >
553
+ < Text >
543
554
< Translation id = "page-eth-has-value-desc-5" />
544
- </ p >
555
+ </ Text >
545
556
</ LeftColumn >
546
557
< RightColumn >
547
558
< CardList content = { cardListContent } />
548
559
</ RightColumn >
549
560
</ TwoColumnContent >
550
561
< TwoColumnContent id = "tokens" align = "flex-start" >
551
562
< LeftColumn >
552
- < h3 >
563
+ < H3 >
553
564
< Translation id = "page-eth-not-only-crypto" />
554
- </ h3 >
555
- < p >
565
+ </ H3 >
566
+ < Text >
556
567
< Translation id = "page-eth-not-only-crypto-desc" /> { " " }
557
- </ p >
558
- < p >
568
+ </ Text >
569
+ < Text >
559
570
< Translation id = "page-eth-not-only-crypto-desc-2" />
560
- </ p >
561
- < h4 >
571
+ </ Text >
572
+ < H4 fontWeight = "normal" >
562
573
< Translation id = "page-eth-more-on-tokens" />
563
- </ h4 >
574
+ </ H4 >
564
575
< CardList content = { tokenLinks } />
565
576
</ LeftColumn >
566
577
< RightColumn >
567
- < h3 >
578
+ < H3 >
568
579
< Translation id = "page-eth-popular-tokens" />
569
- </ h3 >
580
+ </ H3 >
570
581
{ tokens . map ( ( token , idx ) => (
571
582
< TokenCard
572
583
key = { idx }
0 commit comments