Skip to content

Commit 80a22ff

Browse files
committed
[TOOL-3173] Portal: Update hero iamge, OG image on landing page (#6017)
1 parent eefa2ab commit 80a22ff

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed
169 KB
Loading
169 KB
Loading
-104 KB
Binary file not shown.

apps/portal/src/app/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ html {
9393
}
9494
}
9595

96+
/* If no data-theme is added in body, its in dark theme */
97+
body:not([data-theme="light"]) .light-only {
98+
display: none;
99+
}
100+
101+
[data-theme="light"] .dark-only {
102+
display: none;
103+
}
104+
96105
code span {
97106
color: var(--code-dark-color);
98107
}

apps/portal/src/app/layout.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ const monoFont = Fira_Code({
2626
export const metadata = createMetadata({
2727
title: "thirdweb docs",
2828
description: "thirdweb developer portal",
29-
image: {
30-
title: "Build apps and games on any EVM chain",
31-
icon: "thirdweb",
32-
},
3329
});
3430

3531
export default function RootLayout({
330 KB
Loading

apps/portal/src/app/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Heading } from "@/components/Document";
22
import Image from "next/image";
33
import Link from "next/link";
4-
import DocsHero from "./_images/docs-hero.png";
4+
import DocsHeroDark from "./_images/docs-hero-dark.png";
5+
import DocsHeroLight from "./_images/docs-hero-light.png";
56

67
export default function Page() {
78
return (
@@ -34,7 +35,8 @@ function Hero() {
3435

3536
{/* right */}
3637
<div className="hidden justify-center lg:flex">
37-
<Image src={DocsHero} alt="" className="w-full" />
38+
<Image src={DocsHeroDark} alt="" className="dark-only w-full" />
39+
<Image src={DocsHeroLight} alt="" className="light-only w-full" />
3840
</div>
3941
</section>
4042
);

0 commit comments

Comments
 (0)