Skip to content

Commit 63af3cf

Browse files
committed
feat: improve light theme landing
1 parent adf5cb1 commit 63af3cf

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

public/brand-mark-dark.png

285 KB
Loading

public/brand-mark-light.png

292 KB
Loading

src/sections/Hero.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import { Link } from 'react-router-dom';
33
import { ArrowRight, Terminal } from 'lucide-react';
4+
import { useTheme } from 'next-themes';
45
import { Button } from '@/components/ui/button';
56
import { SITE_CONFIG } from '@/config/site';
67
import { fetchDocContent } from '@/lib/docs';
@@ -16,6 +17,7 @@ const preloadDocsRoute = () => {
1617
};
1718

1819
export function Hero() {
20+
const { resolvedTheme } = useTheme();
1921
return (
2022
<section className="relative pt-28 pb-24 lg:pt-36 lg:pb-32 overflow-hidden min-h-[85vh] flex items-center">
2123

@@ -28,7 +30,7 @@ export function Hero() {
2830
<FadeInUp delay={0.2}>
2931
<h1 className="text-left mb-4">
3032
<img
31-
src="/brand-mark.png"
33+
src={resolvedTheme === 'dark' ? '/brand-mark-light.png' : '/brand-mark-dark.png'}
3234
alt="Mevera Studios"
3335
width="2749"
3436
height="858"

0 commit comments

Comments
 (0)