-
+
+
+
+
+
+
+
+
{title}
+ {typeof description === "string" ? (
+
{description}
+ ) : (
+ description
+ )}
+ {buttons && (
+
+ {buttons.map((button, idx) => {
+ if (!button) return
+ return
+ })}
+
+ )}
-
-
-
- {title}
- {typeof description === "string" ? (
- {description}
- ) : (
- description
- )}
- {buttons && (
-
- {buttons.map((button, idx) => {
- if (!button) return
- return
- })}
-
- )}
-
- {/* TODO:
- * Add conditional Big Stat box here
- */}
-
)
diff --git a/src/layouts/Static.tsx b/src/layouts/Static.tsx
index 03ddac7948d..1ad0f0521a7 100644
--- a/src/layouts/Static.tsx
+++ b/src/layouts/Static.tsx
@@ -110,7 +110,6 @@ export const StaticLayout = ({
) : (
diff --git a/src/layouts/md/Roadmap.tsx b/src/layouts/md/Roadmap.tsx
index fac90dcac5b..18cb9eb0f88 100644
--- a/src/layouts/md/Roadmap.tsx
+++ b/src/layouts/md/Roadmap.tsx
@@ -94,7 +94,11 @@ export const RoadmapLayout = ({
const heroProps = {
...frontmatter,
breadcrumbs: { slug, startDepth: 1 },
- heroImg: frontmatter.image,
+ heroImg: {
+ src: frontmatter.image,
+ width: 1456,
+ height: 816,
+ },
}
return (
@@ -110,7 +114,6 @@ export const RoadmapLayout = ({
) : (
diff --git a/src/layouts/md/Staking.tsx b/src/layouts/md/Staking.tsx
index fc848dc9a95..0df3431c9d1 100644
--- a/src/layouts/md/Staking.tsx
+++ b/src/layouts/md/Staking.tsx
@@ -153,7 +153,7 @@ export const StakingLayout = ({
const heroProps = {
...frontmatter,
breadcrumbs: { slug, startDepth: 1 },
- heroImg: frontmatter.image,
+ heroImg: { src: frontmatter.image, width: 800, height: 605 },
description: (
<>
diff --git a/src/layouts/md/Translatathon.tsx b/src/layouts/md/Translatathon.tsx
index dd5a1811f27..4101b111933 100644
--- a/src/layouts/md/Translatathon.tsx
+++ b/src/layouts/md/Translatathon.tsx
@@ -16,6 +16,7 @@ import { Flex } from "@/components/ui/flex"
import { ContentLayout } from "../ContentLayout"
+import heroImg from "@/public/images/heroes/translatathon-hero.png"
import WhyWeDoItImage from "@/public/images/translatathon/man-baby-woman.png"
import HowDoesItWorkImage from "@/public/images/translatathon/round-table.png"
import robotImage from "@/public/images/wallet.png"
@@ -148,14 +149,13 @@ export const TranslatathonLayout = ({
const heroProps = {
...frontmatter,
breadcrumbs: { slug, startDepth: 1 },
- heroImg: "/images/heroes/translatathon-hero.svg",
- blurDataURL: "",
+ heroImg,
description: (
<>
Welcome to the ethereum.org Translatathon!
- The translatathon is a translation competition where you can
- compete for prizes by translating ethereum.org content into different
+ The translatathon is a translation competition where you can compete
+ for prizes by translating ethereum.org content into different
languages.
>
diff --git a/src/layouts/md/Upgrade.tsx b/src/layouts/md/Upgrade.tsx
index de874db2dc8..400a515eb86 100644
--- a/src/layouts/md/Upgrade.tsx
+++ b/src/layouts/md/Upgrade.tsx
@@ -73,7 +73,7 @@ export const UpgradeLayout = ({
const heroProps = {
...frontmatter,
breadcrumbs: { slug, startDepth: 1 },
- heroImg: frontmatter.image,
+ heroImg: { src: frontmatter.image, width: 5750, height: 4332 },
description: (
<>
diff --git a/src/layouts/md/UseCases.tsx b/src/layouts/md/UseCases.tsx
index 43701ce9d94..2666398d165 100644
--- a/src/layouts/md/UseCases.tsx
+++ b/src/layouts/md/UseCases.tsx
@@ -170,7 +170,7 @@ export const UseCasesLayout = ({
const heroProps = {
...frontmatter,
breadcrumbs: { slug, startDepth: 1 },
- heroImg: frontmatter.image,
+ heroImg: { src: frontmatter.image, width: 760, height: 450 },
description: (
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 868dfbc0e17..9b26cdf0c40 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -467,7 +467,7 @@ export type CommonHeroProps<
/**
* The primary title of the page
*/
- title: string
+ title?: string
/**
* A tag name for the page
*/