Skip to content

Commit b825e31

Browse files
authored
Homepage image light mode (#469)
* Light and Dark platform overview images * note on image source
1 parent 513939a commit b825e31

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

app/en/home/landing-page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,19 @@ export function LandingPage() {
319319
</h2>
320320
</div>
321321
<div className="flex w-full justify-center">
322+
{/* The images come from https://whimsical.com/docs-overview-page-vMjufYdxnhfF6K9WjD8FL */}
322323
<Image
323324
alt={"arcade overview"}
324-
className="max-w-full"
325+
className="max-w-full dark:hidden"
325326
height={OVERVIEW_IMAGE_HEIGHT / IMAGE_SCALE_FACTOR}
326-
src={"/images/overview.png"}
327+
src={"/images/overview-light.png"}
328+
width={OVERVIEW_IMAGE_WIDTH / IMAGE_SCALE_FACTOR}
329+
/>
330+
<Image
331+
alt={"arcade overview"}
332+
className="hidden max-w-full dark:block"
333+
height={OVERVIEW_IMAGE_HEIGHT / IMAGE_SCALE_FACTOR}
334+
src={"/images/overview-dark.png"}
327335
width={OVERVIEW_IMAGE_WIDTH / IMAGE_SCALE_FACTOR}
328336
/>
329337
</div>

public/images/overview-dark.png

381 KB
Loading

public/images/overview-light.png

410 KB
Loading

public/images/overview.png

-380 KB
Binary file not shown.

0 commit comments

Comments
 (0)