@@ -20,6 +20,7 @@ import Emoji from "@/components/Emoji"
20
20
import FeedbackCard from "@/components/FeedbackCard"
21
21
import { TwImage } from "@/components/Image"
22
22
import InfoBanner from "@/components/InfoBanner"
23
+ import MainArticle from "@/components/MainArticle"
23
24
import PageMetadata from "@/components/PageMetadata"
24
25
import Tooltip from "@/components/Tooltip"
25
26
import Translation from "@/components/Translation"
@@ -44,7 +45,7 @@ import etherscan from "@/public/images/projects/etherscan-logo-circle.png"
44
45
import ef from "@/public/images/staking/ef-blog-logo.png"
45
46
46
47
const FlexBox = ( props : ChildOnlyProp ) => (
47
- < Flex className = "flex-col border-b-[1px] lg:flex-row" { ...props } />
48
+ < Flex className = "flex-col border-b lg:flex-row" { ...props } />
48
49
)
49
50
50
51
const LeftColumn = ( props : ChildOnlyProp ) => (
@@ -53,20 +54,17 @@ const LeftColumn = (props: ChildOnlyProp) => (
53
54
54
55
const RightColumn = ( props : ChildOnlyProp ) => (
55
56
< Flex
56
- className = "flex-shrink flex-grow basis-1/2 flex-col items-center p-8 pt-4 lg:pt-[8.5rem] "
57
+ className = "flex-shrink flex-grow basis-1/2 flex-col items-center p-8 pt-4"
57
58
{ ...props }
58
59
/>
59
60
)
60
61
61
62
const Title = ( props : ChildOnlyProp ) => (
62
- < h1 className = "py-8 text-[2rem] font-bold leading-xs" { ...props } />
63
+ < h1 className = "py-8 leading-xs" { ...props } />
63
64
)
64
65
65
66
const Subtitle = ( props : ChildOnlyProp ) => (
66
- < p
67
- className = "mb-14 text-xl leading-xs text-[#666666] dark:text-[#b2b2b2]"
68
- { ...props }
69
- />
67
+ < p className = "mb-14 leading-xs text-body-medium" { ...props } />
70
68
)
71
69
72
70
const ButtonRow = ( props : ChildOnlyProp ) => (
@@ -80,10 +78,6 @@ const H2 = (props: ChildOnlyProp) => (
80
78
< h2 className = "mb-8 mt-12 leading-xs" { ...props } />
81
79
)
82
80
83
- const Text = ( props : ChildOnlyProp ) => (
84
- < p className = "mb-[1.45rem] leading-[1.6rem]" { ...props } />
85
- )
86
-
87
81
const StyledButton = ( {
88
82
href,
89
83
children,
@@ -95,15 +89,15 @@ const StyledButton = ({
95
89
96
90
const CardTag = ( props : ChildOnlyProp ) => (
97
91
< Flex
98
- className = "items-center justify-center rounded-t-[3px] border-b-white bg-[#6c24df] p-2 text-sm uppercase text-white dark:bg-[#B38DF0] dark: text-[#333] "
92
+ className = "items-center justify-center rounded-t-sm border-b-white bg-primary p-2 text-sm uppercase text-white dark:text-background-medium "
99
93
{ ...props }
100
94
/>
101
95
)
102
96
103
97
const AddressCard = ( props : ChildOnlyProp ) => {
104
98
return (
105
99
< div
106
- className = "mb-8 max-w-full rounded-[4px] border-[1px] border-solid border-[#e5e5e5] shadow-table lg:sticky lg:top-[7.25rem] lg:max-w-[560px] dark:border-[#333 ]"
100
+ className = "mb-8 max-w-full rounded-sm border border-border shadow-table lg:sticky lg:top-28 lg:max-w-[560px]"
107
101
{ ...props }
108
102
/>
109
103
)
@@ -136,15 +130,12 @@ const CardTitle = (props: ChildOnlyProp) => (
136
130
)
137
131
138
132
const Caption = ( props : ChildOnlyProp ) => (
139
- < p
140
- className = "mb-8 text-sm font-normal text-[#666666] md:mb-8 lg:mb-0 dark:text-[#b2b2b2]"
141
- { ...props }
142
- />
133
+ < p className = "mb-8 text-body-medium md:mb-8 lg:mb-0" { ...props } />
143
134
)
144
135
145
136
const Blockie = ( props : { src : string } ) => (
146
137
< TwImage
147
- className = "rounded-[0.25rem] "
138
+ className = "rounded-sm "
148
139
src = { props . src }
149
140
alt = { "" }
150
141
height = { 64 }
@@ -154,7 +145,7 @@ const Blockie = (props: { src: string }) => (
154
145
155
146
const StyledFakeLink = ( props : ButtonProps ) => (
156
147
< Button
157
- className = "me-2 cursor-pointer px-0 text-[#6c24df] hover:!text-[#6c24df] dark:text-[#B38DF0] dark:hover:!text-[#B38DF0] "
148
+ className = "me-2 cursor-pointer px-0 text-primary "
158
149
variant = "ghost"
159
150
{ ...props }
160
151
/>
@@ -297,7 +288,7 @@ const DepositContractPage = () => {
297
288
? ":speaker_high_volume:"
298
289
: ":speaker:"
299
290
return (
300
- < div className = "w-full" >
291
+ < MainArticle className = "w-full" >
301
292
< FlexBox >
302
293
< PageMetadata
303
294
title = { t ( "page-staking-deposit-contract-meta-title" ) }
@@ -308,17 +299,17 @@ const DepositContractPage = () => {
308
299
< Title > { t ( "page-staking-deposit-contract-title" ) } </ Title >
309
300
< Subtitle > { t ( "page-staking-deposit-contract-subtitle" ) } </ Subtitle >
310
301
< H2 > { t ( "page-staking-deposit-contract-h2" ) } </ H2 >
311
- < Text >
302
+ < p >
312
303
{ t ( "page-staking-deposit-contract-staking" ) } { " " }
313
304
< InlineLink href = "/staking/" >
314
305
{ t ( "page-staking-deposit-contract-staking-more-link" ) }
315
306
</ InlineLink >
316
- </ Text >
307
+ </ p >
317
308
< StyledButton href = "https://launchpad.ethereum.org" >
318
309
{ t ( "page-staking-deposit-contract-launchpad" ) }
319
310
</ StyledButton >
320
311
< H2 > { t ( "page-staking-deposit-contract-staking-check" ) } </ H2 >
321
- < Text > { t ( "page-staking-deposit-contract-staking-check-desc" ) } </ Text >
312
+ < p > { t ( "page-staking-deposit-contract-staking-check-desc" ) } </ p >
322
313
< CardList items = { addressSources } />
323
314
</ LeftColumn >
324
315
< RightColumn >
@@ -439,7 +430,7 @@ const DepositContractPage = () => {
439
430
< div >
440
431
{ t ( "page-staking-deposit-contract-warning-2" ) } { " " }
441
432
< InlineLink
442
- className = "text-[#6c24df] hover:text-[#945af4] "
433
+ className = "text-primary "
443
434
href = "https://launchpad.ethereum.org"
444
435
>
445
436
{ t ( "page-staking-deposit-contract-launchpad-2" ) }
@@ -451,7 +442,7 @@ const DepositContractPage = () => {
451
442
</ RightColumn >
452
443
</ FlexBox >
453
444
< FeedbackCard />
454
- </ div >
445
+ </ MainArticle >
455
446
)
456
447
}
457
448
0 commit comments