generated from autonomic-cooperative/astro-payload-template
Create base layouts with basic blocks
This commit is contained in:
@ -30,7 +30,7 @@ const { title } = Astro.props;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="mx-auto max-w-7xl bg-gray px-6 py-8 font-plex text-gray-200">
|
||||
<body class="min-h-screen flex flex-col mx-auto max-w-7xl bg-gray px-6 py-8 font-plex text-gray-200">
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
17
astro/src/layouts/ContentLayout.astro
Normal file
17
astro/src/layouts/ContentLayout.astro
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
import BaseLayout from "./BaseLayout.astro";
|
||||
import Header from "@/components/Header.astro";
|
||||
import Footer from "@/components/Footer.astro";
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<BaseLayout title={title}>
|
||||
<Header/>
|
||||
<div class="min-h-screen flex flex-col">
|
||||
<main class="flex-grow">
|
||||
<slot/>
|
||||
</main>
|
||||
<Footer/>
|
||||
</div>
|
||||
</BaseLayout>
|
Reference in New Issue
Block a user