File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22import { Link } from 'react-router-dom' ;
33import { ArrowRight , Terminal } from 'lucide-react' ;
4+ import { useTheme } from 'next-themes' ;
45import { Button } from '@/components/ui/button' ;
56import { SITE_CONFIG } from '@/config/site' ;
67import { fetchDocContent } from '@/lib/docs' ;
@@ -16,6 +17,7 @@ const preloadDocsRoute = () => {
1617} ;
1718
1819export 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"
You can’t perform that action at this time.
0 commit comments