Refactor into header
This commit is contained in:
parent
ecf37ef19f
commit
1feebda380
13
src/components/Header.astro
Normal file
13
src/components/Header.astro
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
<div class="flex w-full items-center bg-yellow-100 p-5">
|
||||||
|
<a class="flex" href="/">
|
||||||
|
<p class=" text-3xl">Reci</p>
|
||||||
|
<p class=" text-3xl text-amber-500">pie</p>
|
||||||
|
🥧
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<div class="flex ml-10 space-x-5">
|
||||||
|
<!-- <span>new</span>
|
||||||
|
<span>sf</span> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
import BaseHead from "../components/BaseHead.astro";
|
import BaseHead from "../components/BaseHead.astro";
|
||||||
|
import Header from "@/components/Header";
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang=en>
|
<html lang=en>
|
||||||
@ -8,6 +9,7 @@ import BaseHead from "../components/BaseHead.astro";
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main id="main" class="flex-1">
|
<main id="main" class="flex-1">
|
||||||
|
<Header/>
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
@ -7,12 +7,6 @@ const recipies = await client.collection("recipes").getFullList()
|
|||||||
---
|
---
|
||||||
|
|
||||||
<PageLayout>
|
<PageLayout>
|
||||||
<div class="flex w-full bg-yellow-100 p-5">
|
|
||||||
<p class=" text-3xl">Reci</p>
|
|
||||||
<p class=" text-3xl text-amber-500">pie</p>
|
|
||||||
🥧
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="content" class="p-5 pt-2">
|
<div id="content" class="p-5 pt-2">
|
||||||
<!-- <p class="pb-2">What would you like today?</p> -->
|
<!-- <p class="pb-2">What would you like today?</p> -->
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user