✨ add SectionContainer for all pages & layouts
This commit is contained in:
parent
693dbbda16
commit
964d609197
6 changed files with 142 additions and 175 deletions
24
src/components/SectionContainer.astro
Normal file
24
src/components/SectionContainer.astro
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
import BaseHead from '../components/BaseHead.astro';
|
||||
import Header from '../components/Header.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} />
|
||||
</head>
|
||||
<body>
|
||||
<section class="mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-2xl xl:px-0">
|
||||
<div class="flex flex-col justify-between h-screen">
|
||||
<Header title={SITE_TITLE} />
|
||||
|
||||
<slot />
|
||||
|
||||
<Footer />
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue