uuuh things.
This commit is contained in:
60
src/layouts/Layout.astro
Normal file
60
src/layouts/Layout.astro
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
import "../style/all.scss"
|
||||
import NavBar from "../bricks/NavBar.astro"
|
||||
const { title } = Astro.props
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<title>{ title }</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="banner">
|
||||
#GUIGUI
|
||||
</div>
|
||||
<div class="cont">
|
||||
<NavBar className="bar"/>
|
||||
<div class="bod">
|
||||
<h1>{ title }</h1>
|
||||
<slot/>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<style lang="scss">
|
||||
body {
|
||||
min-height: 100vh;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.banner {
|
||||
z-index: -1;
|
||||
font-family: var(--font-head);
|
||||
font-size: 6rem;
|
||||
font-weight: 100;
|
||||
color: var(--gem);
|
||||
}
|
||||
.cont {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
max-width: 56rem;
|
||||
}
|
||||
.bar {
|
||||
max-width: 6rem;
|
||||
}
|
||||
.bod {
|
||||
width: 100%;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user