Skip to content

Commit b5df634

Browse files
committed
chore: general polishes and cleanup
1 parent 81ffc3c commit b5df634

File tree

9 files changed

+30
-25
lines changed

9 files changed

+30
-25
lines changed

src/components/BentoBox/BentoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const BentoCard = ({
3232
className
3333
)}
3434
>
35-
<div className="mb-6 grid place-items-center md:mb-auto">
35+
<div className="mb-6 grid place-items-center">
3636
<NextImage src={imgSrc} alt="" width={imgWidth} height={imgHeight} />
3737
</div>
3838
<div>

src/components/BentoBox/Title.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
import { useTranslation } from "next-i18next"
2+
13
import type { ClassNameProp } from "@/lib/types"
24

35
import { cn } from "@/lib/utils/cn"
46

5-
const Title = ({ className }: ClassNameProp) => (
6-
<div className={cn("flex flex-col", className)}>
7-
<div className="w-fit rounded-full bg-primary-low-contrast px-4 py-0 text-sm uppercase text-primary">
8-
Use Cases
7+
const Title = ({ className }: ClassNameProp) => {
8+
const { t } = useTranslation("page-index")
9+
10+
return (
11+
<div className={cn("flex flex-col", className)}>
12+
<div className="w-fit rounded-full bg-primary-low-contrast px-4 py-0 text-sm uppercase text-primary">
13+
{t("common:nav-use-cases-label")}
14+
</div>
15+
<h2 className="mb-4 me-4 mt-2 text-5xl font-black xl:mb-6 xl:text-7xl">
16+
{t("page-index-bento-header")}
17+
</h2>
918
</div>
10-
<h2 className="mb-4 me-4 mt-2 text-5xl font-black xl:mb-6 xl:text-7xl">
11-
A new way to use the internet
12-
</h2>
13-
</div>
14-
)
19+
)
20+
}
1521

1622
export default Title

src/components/BentoBox/useBentoBox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useState } from "react"
2-
import { useTranslation } from "react-i18next"
2+
import { useTranslation } from "next-i18next"
33

44
import { cn } from "@/lib/utils/cn"
55

@@ -63,7 +63,7 @@ export const useBentoBox = () => {
6363
action: t("page-index:page-index-bento-stablecoins-action"),
6464
href: "/stablecoins/",
6565
imgSrc: ImpactImage,
66-
imgWidth: 400, // TODO: Fix tablet size alignment (aligning top, should be center?)
66+
imgWidth: 400,
6767
className: cn(
6868
"border-primary/10",
6969
positions,

src/components/BigNumber/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ const BigNumber = ({
5555
<Link href={sourceUrl}>{sourceName}</Link>
5656
</p>
5757
{lastUpdated && (
58-
<p className="mt-2">Last updated: {lastUpdatedDisplay}</p>
58+
<p className="mt-2">
59+
{t("last-updated")}: {lastUpdatedDisplay}
60+
</p>
5961
)}
6062
</>
6163
}

src/components/FeedbackCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { useTranslation } from "next-i18next"
55
import type { Lang } from "@/lib/types"
66

77
import { FeedbackThumbsUpIcon } from "@/components/icons"
8-
import { Button } from "@/components/ui/buttons/Button"
98

109
import { trackCustomEvent } from "@/lib/utils/matomo"
1110
import { isLangRightToLeft } from "@/lib/utils/translations"
1211

12+
import { Button } from "./ui/buttons/Button"
1313
import Translation from "./Translation"
1414

1515
import { useSurvey } from "@/hooks/useSurvey"

src/components/Hero/HomeHero/index.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,10 @@ const HomeHero = ({ heroImg, className }: HomeHeroProps) => {
2323
</div>
2424
<div className="flex flex-col items-center border-t-[3px] border-primary-low-contrast px-4 py-12 text-center">
2525
<Morpher />
26-
<div className="flex flex-col items-center space-y-5 lg:max-w-2xl">
26+
<div className="flex flex-col items-center gap-y-5 lg:max-w-2xl">
2727
<h1 className="font-black">{t("page-index:page-index-title")}</h1>
28-
<p
29-
className="max-w-96 text-body-medium"
30-
// TODO: Match paragraph color to design
31-
// TODO: Extract intl
32-
>
33-
The leading platform for innovative apps and Ethereum-backed
34-
blockchain networks
28+
<p className="max-w-96 text-body-medium">
29+
{t("page-index:page-index-description")}
3530
</p>
3631
</div>
3732
</div>

src/components/PostsSwiper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type PostsSwiperProps = ClassNameProp & {
1616
items: RSSItem[]
1717
}
1818
const PostsSwiper = ({ className, items }: PostsSwiperProps) => (
19-
<div className={cn("h-fit gap-8", className)}>
19+
<div className={cn("h-fit", className)}>
2020
<Swiper
2121
navigation={{
2222
nextEl: ".swiper-button-next",

src/intl/en/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@
198198
"languages": "Languages",
199199
"last-24-hrs": "Last 24 hours",
200200
"last-edit": "Last edit",
201+
"last-updated": "Last updated",
201202
"layer-2": "Layer 2",
202203
"learn": "Learn",
203204
"learn-by-coding": "Learn by coding",
@@ -431,4 +432,4 @@
431432
"wrapped-ether": "Wrapped Ether",
432433
"yes": "Yes",
433434
"zero-knowledge-proofs": "Zero-knowledge proofs"
434-
}
435+
}

src/intl/en/page-index.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"page-index-description": "Ethereum is the community-run technology powering the cryptocurrency ether (ETH) and thousands of decentralized applications.",
32
"page-index-title-button": "Explore Ethereum",
43
"page-index-touts-header": "Explore ethereum.org",
54
"page-index-contribution-banner-title": "Contribute to ethereum.org",
@@ -66,6 +65,7 @@
6665
"page-index-activity-description": "Activity from all Ethereum networks",
6766
"page-index-activity-tag": "Activity",
6867
"page-index-activity-title": "The strongest ecosystem",
68+
"page-index-bento-header": "A new way to use the internet",
6969
"page-index-bento-assets-action": "More on NFTs",
7070
"page-index-bento-assets-content": "Arts, certificates or even real estate can be tokenized. Anything can be a tradable token. Ownership is public and verifiable.",
7171
"page-index-bento-assets-title": "The internet of assets",
@@ -103,6 +103,7 @@
103103
"page-index-cta-networks-label": "Choose a network",
104104
"page-index-cta-wallet-description": "Create accounts, manage assets",
105105
"page-index-cta-wallet-label": "Pick a wallet",
106+
"page-index-description": "The leading platform for innovative apps and Ethereum-backed blockchain networks",
106107
"page-index-developers-code-example-description-0": "Build a bank powered by logic you've programmed",
107108
"page-index-developers-code-example-description-1": "Create tokens that you can transfer and use across applications",
108109
"page-index-developers-code-example-description-2": "Use existing languages to interact with Ethereum and other applications",

0 commit comments

Comments
 (0)