Skip to content

Commit b6c19be

Browse files
committed
modes
1 parent dd9f526 commit b6c19be

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

public/logo.png

333 KB
Loading

src/app/globals.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,29 @@ body {
346346
@apply bg-background text-foreground;
347347
}
348348
}
349+
350+
/* Dark mode image switching */
351+
[data-theme='dark'] .light-mode-image {
352+
display: none !important;
353+
}
354+
355+
[data-theme='dark'] .dark-mode-image {
356+
display: block !important;
357+
}
358+
359+
[data-theme='light'] .light-mode-image {
360+
display: block !important;
361+
}
362+
363+
[data-theme='light'] .dark-mode-image {
364+
display: none !important;
365+
}
366+
367+
/* Gradient overlay for different themes */
368+
[data-theme='dark'] .theme-gradient {
369+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
370+
}
371+
372+
[data-theme='light'] .theme-gradient {
373+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 255, 255, 0.3), transparent);
374+
}

src/app/page.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ export default function Landing() {
1111
<div className="absolute inset-0 z-0 select-none">
1212
<Image
1313
alt="Earth from space - light mode"
14-
className="z-0 w-full h-full object-cover block dark:hidden pointer-events-none"
15-
src="/place_holder.jpg"
14+
className="z-0 w-full h-full object-cover light-mode-image pointer-events-none"
15+
src="/place_holder_white.jpg"
1616
fill
1717
quality={100}
1818
priority
1919
/>
2020
<Image
2121
alt="Earth from space - dark mode"
22-
className="z-0 w-full h-full object-cover hidden dark:block pointer-events-none"
23-
src="/place_holder_white.jpg"
22+
className="z-0 w-full h-full object-cover dark-mode-image pointer-events-none"
23+
src="/place_holder.jpg"
2424
fill
2525
quality={100}
2626
priority
2727
/>
28-
<div className="absolute inset-0 bg-gradient-to-t from-black via-black/70 to-transparent" />
28+
<div className="absolute inset-0 theme-gradient" />
2929
</div>
3030

3131
{/* Hero Content */}

0 commit comments

Comments
 (0)