Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,29 @@ body {
@apply bg-background text-foreground;
}
}

/* Dark mode image switching */
[data-theme='dark'] .light-mode-image {
display: none !important;
}

[data-theme='dark'] .dark-mode-image {
display: block !important;
}

[data-theme='light'] .light-mode-image {
display: block !important;
}

[data-theme='light'] .dark-mode-image {
display: none !important;
}

/* Gradient overlay for different themes */
[data-theme='dark'] .theme-gradient {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
}

[data-theme='light'] .theme-gradient {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 255, 255, 0.3), transparent);
}
10 changes: 5 additions & 5 deletions src/app/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ export default function Landing() {
<div className="absolute inset-0 z-0 select-none">
<Image
alt="Earth from space - light mode"
className="z-0 w-full h-full object-cover block dark:hidden pointer-events-none"
src="/place_holder.jpg"
className="z-0 w-full h-full object-cover light-mode-image pointer-events-none"
src="/place_holder_white.jpg"
fill
quality={100}
priority
/>
<Image
alt="Earth from space - dark mode"
className="z-0 w-full h-full object-cover hidden dark:block pointer-events-none"
src="/place_holder_white.jpg"
className="z-0 w-full h-full object-cover dark-mode-image pointer-events-none"
src="/place_holder.jpg"
fill
quality={100}
priority
/>
<div className="absolute inset-0 bg-gradient-to-t from-black via-black/70 to-transparent" />
<div className="absolute inset-0 theme-gradient" />
</div>

{/* Hero Content */}
Expand Down
Loading