Novo layout
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
// components/layout/Layout.tsx
|
||||
import Footer from './Footer';
|
||||
import Header from './Header';
|
||||
import { useTheme } from "../context/ThemeContext"; // caminho conforme a tua estrutura
|
||||
|
||||
export const Layout = ({ children }: { children: React.ReactNode }) => {
|
||||
|
||||
return (
|
||||
<div className="flex flex-col min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100">
|
||||
<Header />
|
||||
<main className="flex-grow">
|
||||
<div className="flex flex-col min-h-screen bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 transition-colors duration-300">
|
||||
<Header />
|
||||
<main className="flex-grow mx-auto w-full">
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
|
||||
Reference in New Issue
Block a user