Skip to content

Commit 83b1104

Browse files
authored
Merge pull request #15485 from ethereum/removeFindWalletHero
fix hero regression on find wallet
2 parents 2e68bcb + feb8949 commit 83b1104

File tree

1 file changed

+6
-41
lines changed

1 file changed

+6
-41
lines changed

app/[locale]/wallets/find-wallet/_components/find-wallet.tsx

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
22

33
import type { ChildOnlyProp, Wallet } from "@/lib/types"
44

5-
import BannerNotification from "@/components/Banners/BannerNotification"
65
import Breadcrumbs from "@/components/Breadcrumbs"
76
import FindWalletProductTable from "@/components/FindWalletProductTable"
8-
import { Image } from "@/components/Image"
97
import MainArticle from "@/components/MainArticle"
10-
import InlineLink from "@/components/ui/Link"
11-
12-
import { cn } from "@/lib/utils/cn"
138

149
import { useTranslation } from "@/hooks/useTranslation"
1510
import { usePathname } from "@/i18n/routing"
16-
import HeroImage from "@/public/images/wallets/wallet-hero.png"
1711

1812
const Subtitle = ({ children }: ChildOnlyProp) => (
1913
<p className="mb-6 text-xl leading-[1.4] text-body-medium last:mb-8">
@@ -31,41 +25,12 @@ const FindWalletPage = ({ wallets }: Props) => {
3125

3226
return (
3327
<MainArticle className="relative flex flex-col">
34-
<BannerNotification shouldShow={true}>
35-
{t("page-find-wallet-footnote-1")}
36-
</BannerNotification>
37-
38-
<div
39-
className={cn(
40-
"relative mb-[44px] flex w-full flex-col p-12 md:flex-row",
41-
"bg-gradient-to-r from-accent-a/10 to-accent-c/10 dark:from-accent-a/20 dark:to-accent-c-hover/20"
42-
)}
43-
>
44-
<div className="mt-8 w-full sm:mt-0 md:w-1/2">
45-
<Breadcrumbs slug={pathname} />
46-
<h1 className="mb-8 mt-8 text-[2.5rem] leading-[1.4] md:text-5xl">
47-
{t("page-find-wallet-title")}
48-
</h1>
49-
<Subtitle>{t("page-find-wallet-description")}</Subtitle>
50-
<Subtitle>
51-
{t("page-find-wallet-desc-2")}{" "}
52-
<InlineLink href="/wallets">
53-
{t("page-find-wallet-desc-2-wallets-link")}
54-
</InlineLink>
55-
</Subtitle>
56-
</div>
57-
<div className="flex w-full items-center justify-center md:w-1/2">
58-
<Image
59-
src={HeroImage}
60-
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
61-
sizes="(max-width: 480px) 100vw, 500px"
62-
alt=""
63-
priority
64-
style={{
65-
objectFit: "contain",
66-
}}
67-
/>
68-
</div>
28+
<div className="flex w-full flex-col gap-8 px-4 pb-4 pt-11 md:w-1/2">
29+
<Breadcrumbs slug={pathname} />
30+
<h1 className="text-[2.5rem] leading-[1.4] md:text-5xl">
31+
{t("page-find-wallet-title")}
32+
</h1>
33+
<Subtitle>{t("page-find-wallet-description")}</Subtitle>
6934
</div>
7035

7136
<FindWalletProductTable wallets={wallets} />

0 commit comments

Comments
 (0)