Commit 9ca8653e01

9ca8653e0110a7d40f52c4f58888e2327dca8a62

parent: d280beeee8

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-02-17 16:45 UTC

Updates layout to remove some global un-neededness

Layout: unified · split

web/src/layouts/Layout.astro +19 −1
@@ -1,10 +1,14 @@
11---
22
3import NavBar from '@components/scafold/NavBar.astro';
4import Footer from '@components/scafold/Footer.astro';
5
36interface Props {
47 title: string;
8 hideNav?: boolean;
59}
610
7const { title } = Astro.props;
11const { title, hideNav } = Astro.props;
812
913---
1014
@@ -19,7 +23,9 @@ const { title } = Astro.props;
1923 <title>{title}</title>
2024 </head>
2125 <body>
26 {!hideNav && <NavBar /> }
2227 <slot />
28 <Footer />
2329 </body>
2430</html>
2531
@@ -44,5 +50,17 @@ const { title } = Astro.props;
4450 html {
4551 background: var(--background);
4652 background-size: 224px;
53 ::selection {
54 background: var(--accent);
55 color: var(--accent-fg);
56 }
57 scroll-behavior: smooth;
58 }
59 body {
60 margin: 0;
61 min-height: 100vh;
62 background: #feecff;
63 background: -webkit-radial-gradient(circle, #feecff 0%, #e1e4fb 100%);
64 background: radial-gradient(circle, #feecff 0%, #e1e4fb 100%);
4765 }
4866</style>