Skip to content

Commit d9d023e

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

File tree

7 files changed

+12
-6
lines changed

7 files changed

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

apps/portal/src/app/globals.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ html {
9191
--input: 0 0% 85%;
9292
--ring: 0 0% 80%;
9393
}
94+
95+
[data-theme="light"] .dark-only {
96+
display: none;
97+
}
98+
99+
[data-theme="dark"] .light-only {
100+
display: none;
101+
}
94102
}
95103

96104
code span {

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)