make content a component
This commit is contained in:
parent
d3298121f9
commit
fe5648b95e
2 changed files with 26 additions and 20 deletions
21
src/components/content.astro
Normal file
21
src/components/content.astro
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
import Footer from "../components/footer.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<div class="content">
|
||||||
|
<slot />
|
||||||
|
</div>
|
||||||
|
<Footer/>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.content {
|
||||||
|
background-color: #222222;
|
||||||
|
margin: auto;
|
||||||
|
max-width: 90vw;
|
||||||
|
min-height: 80vh;
|
||||||
|
padding-left: 1vw;
|
||||||
|
padding-right: 1vw;
|
||||||
|
padding-top: 0.1vh;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,36 +1,21 @@
|
||||||
---
|
---
|
||||||
import Nav from "../components/nav.astro";
|
import Nav from "../components/nav.astro";
|
||||||
import Footer from "../components/footer.astro"
|
|
||||||
import Layout from "../layouts/Layout.astro";
|
import Layout from "../layouts/Layout.astro";
|
||||||
|
import Content from "../components/content.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="sako.lol - home">
|
<Layout title="sako.lol - home">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<Nav/>
|
<Nav/>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<Content>
|
||||||
<h1>placeholder</h1>
|
<h1> hi i am a component </h1>
|
||||||
<p> yap yap yap </p>
|
<p> (i'm still too lazy to do this) </p>
|
||||||
<p> yap yap yap </p>
|
</Content>
|
||||||
<p> yap yap yap </p>
|
|
||||||
<p> yap yap yap </p>
|
|
||||||
<p> todo make this extend to the bottom regardless if theres nothing</p>
|
|
||||||
</div>
|
|
||||||
<Footer/>
|
|
||||||
</Layout>
|
</Layout>
|
||||||
<style>
|
<style>
|
||||||
.top {
|
.top {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.content {
|
|
||||||
background-color: #222222;
|
|
||||||
margin: auto;
|
|
||||||
max-width: 90vw;
|
|
||||||
min-height: 80vh;
|
|
||||||
padding-left: 1vw;
|
|
||||||
padding-right: 1vw;
|
|
||||||
padding-top: 0.1vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue