@@ -2,19 +2,16 @@ import { GetStaticProps, InferGetStaticPropsType } from "next"
2
2
import { useRouter } from "next/router"
3
3
import { useTranslation } from "next-i18next"
4
4
import { serverSideTranslations } from "next-i18next/serverSideTranslations"
5
- import { Box , Center , Text } from "@chakra-ui/react"
6
5
7
6
import type { BasePageProps , ChildOnlyProp , Lang , Wallet } from "@/lib/types"
8
7
9
8
import BannerNotification from "@/components/Banners/BannerNotification"
10
9
import Breadcrumbs from "@/components/Breadcrumbs"
11
10
import FindWalletProductTable from "@/components/FindWalletProductTable"
12
- import { Image } from "@/components/Image"
13
- import InlineLink from "@/components/Link"
11
+ import { TwImage } from "@/components/Image"
14
12
import MainArticle from "@/components/MainArticle"
15
- import OldHeading from "@/components/OldHeading"
16
13
import PageMetadata from "@/components/PageMetadata"
17
- import { Flex } from "@/components/ui/flex "
14
+ import InlineLink from "@/components/ui/Link "
18
15
19
16
import { cn } from "@/lib/utils/cn"
20
17
import { existsNamespace } from "@/lib/utils/existsNamespace"
@@ -30,15 +27,9 @@ import {
30
27
import HeroImage from "@/public/images/wallets/wallet-hero.png"
31
28
32
29
const Subtitle = ( { children } : ChildOnlyProp ) => (
33
- < Text
34
- fontSize = "xl"
35
- lineHeight = { 1.4 }
36
- color = "body.medium"
37
- mb = { 6 }
38
- _last = { { mb : 8 } }
39
- >
30
+ < p className = "mb-6 text-xl leading-[1.4] text-body-medium last:mb-8" >
40
31
{ children }
41
- </ Text >
32
+ </ p >
42
33
)
43
34
44
35
type Props = BasePageProps & {
@@ -98,31 +89,27 @@ const FindWalletPage = ({
98
89
{ t ( "page-find-wallet-footnote-1" ) }
99
90
</ BannerNotification >
100
91
101
- < Flex
92
+ < div
102
93
className = { cn (
103
- "relative mb-[44px] w-full flex-col p-12 sm :flex-row" ,
94
+ "relative mb-[44px] flex w-full flex-col p-12 md :flex-row" ,
104
95
"bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20"
105
96
) }
106
97
>
107
- < Box w = { { base : "full" , sm : "50%" } } mt = { { base : 8 , sm : 0 } } >
98
+ < div className = "mt-8 w-full sm:mt-0 md:w-1/2" >
108
99
< Breadcrumbs slug = { pathname } />
109
- < OldHeading
110
- as = "h1"
111
- fontSize = { { base : "2.5rem" , md : "5xl" } }
112
- lineHeight = { 1.4 }
113
- >
100
+ < h1 className = "mb-8 mt-8 text-[2.5rem] leading-[1.4] md:text-5xl" >
114
101
{ t ( "page-find-wallet-title" ) }
115
- </ OldHeading >
102
+ </ h1 >
116
103
< Subtitle > { t ( "page-find-wallet-description" ) } </ Subtitle >
117
104
< Subtitle >
118
105
{ t ( "page-find-wallet-desc-2" ) } { " " }
119
106
< InlineLink href = "/wallets" >
120
107
{ t ( "page-find-wallet-desc-2-wallets-link" ) }
121
108
</ InlineLink >
122
109
</ Subtitle >
123
- </ Box >
124
- < Center w = { { base : " full" , sm : "50%" } } >
125
- < Image
110
+ </ div >
111
+ < div className = "flex w- full items-center justify-center md:w-1/2" >
112
+ < TwImage
126
113
src = { HeroImage }
127
114
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
128
115
sizes = "(max-width: 480px) 100vw, 500px"
@@ -132,8 +119,9 @@ const FindWalletPage = ({
132
119
objectFit : "contain" ,
133
120
} }
134
121
/>
135
- </ Center >
136
- </ Flex >
122
+ </ div >
123
+ </ div >
124
+
137
125
< FindWalletProductTable wallets = { wallets } />
138
126
</ MainArticle >
139
127
)
0 commit comments