1
1
import { useTranslation } from "next-i18next"
2
- import { Box , Flex } from "@chakra-ui/react"
3
2
4
3
import { ChildOnlyProp } from "@/lib/types"
5
4
6
- import { ButtonLink } from "@/components/Buttons"
7
5
import Card from "@/components/Card"
8
6
import CardList , { type CardListItem } from "@/components/CardList"
9
- import OldHeading from "@/components/OldHeading"
10
7
import Translation from "@/components/Translation"
11
8
9
+ import { ButtonLink } from "./ui/buttons/Button"
10
+ import { Flex } from "./ui/flex"
11
+
12
12
import beaconchain from "@/public/images/upgrades/beaconchainemoji.png"
13
13
import beaconscan from "@/public/images/upgrades/etherscan.png"
14
14
15
15
const H3 = ( { children } : ChildOnlyProp ) => (
16
- < OldHeading
17
- as = "h3"
18
- fontSize = "2xl"
19
- fontWeight = "bold"
20
- mb = { 8 }
21
- sx = { { a : { display : "none" } } }
22
- >
23
- { children }
24
- </ OldHeading >
16
+ < h3 className = "mb-8 mt-10 text-2xl font-bold [&_a]:hidden" > { children } </ h3 >
25
17
)
26
18
27
19
const BeaconChainActions = ( ) => {
28
20
const { t } = useTranslation ( [ "page-upgrades-index" , "page-upgrades" ] )
29
21
30
22
const datapoints : CardListItem [ ] = [
31
23
{
32
- title : t ( "consensus-beaconscan-title" ) ,
24
+ title : t ( "page-upgrades: consensus-beaconscan-title" ) ,
33
25
image : beaconscan ,
34
26
alt : "" ,
35
27
link : "https://beaconscan.com" ,
36
- description : t ( "consensus-beaconscan-desc" ) ,
28
+ description : t ( "page-upgrades: consensus-beaconscan-desc" ) ,
37
29
} ,
38
30
{
39
- title : t ( "consensus-beaconscan-in-title" ) ,
31
+ title : t ( "page-upgrades: consensus-beaconscan-in-title" ) ,
40
32
image : beaconchain ,
41
33
alt : "" ,
42
34
link : "https://beaconcha.in" ,
43
- description : t ( "consensus-beaconcha-in-desc" ) ,
35
+ description : t ( "page-upgrades: consensus-beaconcha-in-desc" ) ,
44
36
} ,
45
37
]
46
38
@@ -64,35 +56,35 @@ const BeaconChainActions = () => {
64
56
]
65
57
66
58
return (
67
- < Box mb = { 16 } >
68
- < Flex flexDir = { { base : "column" , md : " row" } } pt = { 4 } >
59
+ < div className = "mb-16" >
60
+ < Flex className = "flex-col pt-4 md:flex- row">
69
61
< Card
70
62
w = "full"
71
63
ms = { 0 }
72
64
me = { { base : 0 , md : 4 } }
73
65
mb = { { base : 8 , md : 0 } }
74
66
emoji = ":money_with_wings:"
75
- title = { t ( "consensus-become-staker" ) }
76
- description = { t ( "consensus-become-staker-desc" ) }
67
+ title = { t ( "page-upgrades: consensus-become-staker" ) }
68
+ description = { t ( "page-upgrades: consensus-become-staker-desc" ) }
77
69
>
78
- < ButtonLink mb = { 3 } href = "https://launchpad.ethereum.org" >
70
+ < ButtonLink className = "mb-3" href = "https://launchpad.ethereum.org" >
79
71
< Translation id = "get-started" />
80
72
</ ButtonLink >
81
73
< ButtonLink variant = "outline" href = "/staking/" >
82
- < Translation id = "page-upgrades-index-staking-learn" />
74
+ < Translation id = "page-upgrades-index:page-upgrades-index -staking-learn" />
83
75
</ ButtonLink >
84
76
</ Card >
85
77
</ Flex >
86
78
< H3 >
87
- < Translation id = "consensus-explore" />
79
+ < Translation id = "page-upgrades: consensus-explore" />
88
80
</ H3 >
89
81
90
82
< CardList items = { datapoints } />
91
83
< H3 >
92
- < Translation id = "read-more" />
84
+ < Translation id = "page-upgrades: read-more" />
93
85
</ H3 >
94
86
< CardList items = { reads } />
95
- </ Box >
87
+ </ div >
96
88
)
97
89
}
98
90
0 commit comments