diff options
| author | Tomas Bankauskas <tbdizainas@gmail.com> | 2024-04-04 15:23:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 15:23:09 +0300 |
| commit | 4df0e4a754ea5e1fb0d05a4e08a53cd49e9fce16 (patch) | |
| tree | d695b3f987ccf7113ba73b467a94082457be63ea /src/layouts/Layout.astro | |
| parent | 5c66b0550a6e3bd6b558da4229bcb6be2d9244f6 (diff) | |
Added Daisy UI and basic components (#3)
* added daisyui
* added Footer.astro
* updated Header.astro, added Card.astro, etc
* small adjustments
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 5c9eaae..4ecbd8b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,8 @@ --- +import '../../src/styles/globals.css'; +import Header from "../components/Header.astro"; +import Footer from "../components/Footer.astro"; + interface Props { title: string; } @@ -10,13 +14,18 @@ const { title } = Astro.props; <html lang="en"> <head> <meta charset="UTF-8" /> - <meta name="description" content="Astro description" /> + <title>{title}</title> <meta name="viewport" content="width=device-width" /> - <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <meta name="generator" content={Astro.generator} /> - <title>{title}</title> + <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> </head> - <body> - <slot /> + <body class="antialiased text-white bg-blue-900"> + <div class="flex flex-col min-h-screen px-6 bg-grid-pattern sm:px-12"> + <div class="flex flex-col w-full max-w-5xl mx-auto grow"> + <Header /> + <div class="grow"><slot /></div> + <Footer /> + </div> + </div> </body> </html>
\ No newline at end of file |
