black theme complete

This commit is contained in:
Emre
2025-10-11 06:18:46 +03:00
parent 16c1a09bc4
commit 31fe89eabb
16 changed files with 276 additions and 293 deletions

View File

@@ -12,9 +12,17 @@ type LayoutProps = {
export const Layout = ({ children }: LayoutProps) => {
const { pathname } = useLocation();
const isHome = pathname === '/';
const darkRoutes = ['/about', '/technology', '/usecases'];
const isDarkPage = darkRoutes.some((route) => pathname.startsWith(route));
return (
<div className={cn('relative min-h-screen bg-mist text-ink', !isHome && 'overflow-hidden')}>
<div
className={cn(
'relative min-h-screen',
isDarkPage ? 'bg-black text-slate-100' : 'bg-mist text-ink',
!isHome && 'overflow-hidden',
)}
>
<ScrollToTop />
<Header />
<main