Updates layout to remove some global un-neededness

This commit is contained in:
Alicia Sykes 2024-02-17 16:45:05 +00:00
parent d280beeee8
commit 9ca8653e01
1 changed files with 19 additions and 1 deletions

View File

@ -1,10 +1,14 @@
---
import NavBar from '@components/scafold/NavBar.astro';
import Footer from '@components/scafold/Footer.astro';
interface Props {
title: string;
hideNav?: boolean;
}
const { title } = Astro.props;
const { title, hideNav } = Astro.props;
---
@ -19,7 +23,9 @@ const { title } = Astro.props;
<title>{title}</title>
</head>
<body>
{!hideNav && <NavBar /> }
<slot />
<Footer />
</body>
</html>
@ -44,5 +50,17 @@ const { title } = Astro.props;
html {
background: var(--background);
background-size: 224px;
::selection {
background: var(--accent);
color: var(--accent-fg);
}
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
background: #feecff;
background: -webkit-radial-gradient(circle, #feecff 0%, #e1e4fb 100%);
background: radial-gradient(circle, #feecff 0%, #e1e4fb 100%);
}
</style>