Skip to content

Commit 9183c26

Browse files
committed
removed custom sizes
1 parent e1a0494 commit 9183c26

File tree

1 file changed

+16
-25
lines changed

1 file changed

+16
-25
lines changed

src/pages/staking/deposit-contract.tsx

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import Emoji from "@/components/Emoji"
2020
import FeedbackCard from "@/components/FeedbackCard"
2121
import { TwImage } from "@/components/Image"
2222
import InfoBanner from "@/components/InfoBanner"
23+
import MainArticle from "@/components/MainArticle"
2324
import PageMetadata from "@/components/PageMetadata"
2425
import Tooltip from "@/components/Tooltip"
2526
import Translation from "@/components/Translation"
@@ -44,7 +45,7 @@ import etherscan from "@/public/images/projects/etherscan-logo-circle.png"
4445
import ef from "@/public/images/staking/ef-blog-logo.png"
4546

4647
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} />
4849
)
4950

5051
const LeftColumn = (props: ChildOnlyProp) => (
@@ -53,20 +54,17 @@ const LeftColumn = (props: ChildOnlyProp) => (
5354

5455
const RightColumn = (props: ChildOnlyProp) => (
5556
<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"
5758
{...props}
5859
/>
5960
)
6061

6162
const Title = (props: ChildOnlyProp) => (
62-
<h1 className="py-8 text-[2rem] font-bold leading-xs" {...props} />
63+
<h1 className="py-8 leading-xs" {...props} />
6364
)
6465

6566
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} />
7068
)
7169

7270
const ButtonRow = (props: ChildOnlyProp) => (
@@ -80,10 +78,6 @@ const H2 = (props: ChildOnlyProp) => (
8078
<h2 className="mb-8 mt-12 leading-xs" {...props} />
8179
)
8280

83-
const Text = (props: ChildOnlyProp) => (
84-
<p className="mb-[1.45rem] leading-[1.6rem]" {...props} />
85-
)
86-
8781
const StyledButton = ({
8882
href,
8983
children,
@@ -95,15 +89,15 @@ const StyledButton = ({
9589

9690
const CardTag = (props: ChildOnlyProp) => (
9791
<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"
9993
{...props}
10094
/>
10195
)
10296

10397
const AddressCard = (props: ChildOnlyProp) => {
10498
return (
10599
<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]"
107101
{...props}
108102
/>
109103
)
@@ -136,15 +130,12 @@ const CardTitle = (props: ChildOnlyProp) => (
136130
)
137131

138132
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} />
143134
)
144135

145136
const Blockie = (props: { src: string }) => (
146137
<TwImage
147-
className="rounded-[0.25rem]"
138+
className="rounded-sm"
148139
src={props.src}
149140
alt={""}
150141
height={64}
@@ -154,7 +145,7 @@ const Blockie = (props: { src: string }) => (
154145

155146
const StyledFakeLink = (props: ButtonProps) => (
156147
<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"
158149
variant="ghost"
159150
{...props}
160151
/>
@@ -297,7 +288,7 @@ const DepositContractPage = () => {
297288
? ":speaker_high_volume:"
298289
: ":speaker:"
299290
return (
300-
<div className="w-full">
291+
<MainArticle className="w-full">
301292
<FlexBox>
302293
<PageMetadata
303294
title={t("page-staking-deposit-contract-meta-title")}
@@ -308,17 +299,17 @@ const DepositContractPage = () => {
308299
<Title>{t("page-staking-deposit-contract-title")}</Title>
309300
<Subtitle>{t("page-staking-deposit-contract-subtitle")}</Subtitle>
310301
<H2>{t("page-staking-deposit-contract-h2")}</H2>
311-
<Text>
302+
<p>
312303
{t("page-staking-deposit-contract-staking")}{" "}
313304
<InlineLink href="/staking/">
314305
{t("page-staking-deposit-contract-staking-more-link")}
315306
</InlineLink>
316-
</Text>
307+
</p>
317308
<StyledButton href="https://launchpad.ethereum.org">
318309
{t("page-staking-deposit-contract-launchpad")}
319310
</StyledButton>
320311
<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>
322313
<CardList items={addressSources} />
323314
</LeftColumn>
324315
<RightColumn>
@@ -439,7 +430,7 @@ const DepositContractPage = () => {
439430
<div>
440431
{t("page-staking-deposit-contract-warning-2")}{" "}
441432
<InlineLink
442-
className="text-[#6c24df] hover:text-[#945af4]"
433+
className="text-primary"
443434
href="https://launchpad.ethereum.org"
444435
>
445436
{t("page-staking-deposit-contract-launchpad-2")}
@@ -451,7 +442,7 @@ const DepositContractPage = () => {
451442
</RightColumn>
452443
</FlexBox>
453444
<FeedbackCard />
454-
</div>
445+
</MainArticle>
455446
)
456447
}
457448

0 commit comments

Comments
 (0)