Skip to content

Commit acc20cb

Browse files
committed
feat: add/update page og images
1 parent 7438ac3 commit acc20cb

File tree

13 files changed

+17
-7
lines changed

13 files changed

+17
-7
lines changed

src/lib/utils/metadata.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import { DEFAULT_OG_IMAGE } from "@/lib/constants"
44
* List of default og images for different sections
55
*/
66
const imageForSlug = [
7-
{ section: "developers", image: "/enterprise-eth.png" },
8-
{ section: "dapps", image: "/doge-computer.png" },
9-
{ section: "roadmap", image: "/upgrades/upgrade_doge.png" },
7+
{ section: "developers", image: "/heroes/developers-hub-hero.jpg" },
8+
{ section: "roadmap", image: "/heroes/roadmap-hub-hero.jpg" },
9+
{ section: "guides", image: "/heroes/guides-hub-hero.jpg" },
10+
{ section: "community", image: "/heroes/community-hero.png" },
11+
{ section: "staking", image: "/upgrades/upgrade_rhino.png" },
1012
] as const
1113

1214
/**

src/pages/community.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ const CommunityPage = () => {
226226
<PageMetadata
227227
title={t("page-community-meta-title")}
228228
description={t("page-community-meta-description")}
229+
image="/heroes/community-hero.png"
229230
/>
230231
<HubHero {...heroContent} />
231232
<Divider />

src/pages/dapps.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ import zapper from "@/public/dapps/zapper.png"
115115
import zerion from "@/public/dapps/zerion.png"
116116
import developers from "@/public/developers-eth-blocks.png" // Handled inside Callout => height=200
117117
import doge from "@/public/doge-computer.png" // HERO, full? 624px
118-
import ogImage from "@/public/doge-computer.png" // PageMetadata, src only
119118
import oneinch from "@/public/exchanges/1inch.png"
120119
import magicians from "@/public/magicians.png"
121120
import wallet from "@/public/wallet.png" // width=300
@@ -1335,7 +1334,7 @@ const DappsPage = () => {
13351334
<PageMetadata
13361335
title={t("common:decentralized-applications-dapps")}
13371336
description={t("common:page-dapps-desc")}
1338-
image={ogImage.src}
1337+
image="/doge-computer.png"
13391338
/>
13401339
<PageHero content={heroContent} />
13411340
<Divider />

src/pages/developers/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ const DevelopersPage = () => {
217217
<PageMetadata
218218
title={t("page-developers-index:page-developer-meta-title")}
219219
description={t("page-developers-index:page-developers-meta-desc")}
220+
image="/heroes/developers-hub-hero.jpg"
220221
/>
221222
<HubHero
222223
heroImg={HeroImage}

src/pages/eth.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
3737
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
3838

3939
import eth from "@/public/eth.png"
40-
import ogImage from "@/public/eth.png"
4140
import ethCat from "@/public/eth-gif-cat.png"
4241
import defi from "@/public/finance_transparent.png"
4342
import ethereum from "@/public/what-is-ethereum.png"
@@ -385,7 +384,7 @@ const EthPage = () => {
385384
<PageMetadata
386385
title={t("page-eth-whats-eth-meta-title")}
387386
description={t("page-eth-whats-eth-meta-desc")}
388-
image={ogImage.src}
387+
image="/eth.png"
389388
/>
390389
<Content>
391390
<HeroContainer>

src/pages/layer-2.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ const Layer2Page = () => {
253253
<PageMetadata
254254
title={t("layer-2-hero-title")}
255255
description={t("layer-2-metadata-description")}
256+
image="/heroes/layer-2-hub-hero.jpg"
256257
/>
257258
{/* Hero Section */}
258259
<HubHero {...heroContent} />

src/pages/learn.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const LearnPage = () => {
213213
<PageMetadata
214214
title={t("common:learn-hub")}
215215
description={t("hero-subtitle")}
216+
image="/heroes/learn-hub-hero.png"
216217
/>
217218

218219
<HubHero {...heroContent} />

src/pages/quizzes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const QuizzesHubPage: NextPage<
7777
<PageMetadata
7878
title={t("quizzes-title")}
7979
description={t("quizzes-subtitle")}
80+
image="/heroes/quizzes-hub-hero.png"
8081
/>
8182
<HubHero
8283
title={t("quizzes-title")}

src/pages/run-a-node.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ const RunANodePage = () => {
446446
<PageMetadata
447447
title={t("page-run-a-node-title")}
448448
description={t("page-run-a-node-meta-description")}
449+
image="/run-a-node/ethereum-inside.png"
449450
/>
450451
<HeroContainer>
451452
<Box pb="8">

src/pages/stablecoins.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ const StablecoinsPage = ({ markets, marketsHasError }) => {
403403
<PageMetadata
404404
title={t("page-stablecoins-title")}
405405
description={t("page-stablecoins-meta-description")}
406+
image="/stablecoins/hero.png"
406407
/>
407408
<PageHero isReverse content={heroContent} />
408409
<Divider />

0 commit comments

Comments
 (0)