add 404 page idek

This commit is contained in:
June 2025-08-16 23:16:06 +12:00
parent a9d739da39
commit 660430f7e6
Signed by: breadone
GPG Key ID: FDC19FE143200483
2 changed files with 10 additions and 1 deletions

9
src/pages/404.astro Normal file
View File

@ -0,0 +1,9 @@
---
import Base from "@/layouts/base";
---
<Base>
<div class="flex items-center justify-center text-3xl font-bold">
🥧 404 🥧
</div>
</Base>

View File

@ -12,7 +12,7 @@ const recipes = await client.getRecipesOfTag(name) // todo redir to 404 if not f
{recipes.length} { recipes.length == 1 ? "Recipe" : "Recipes" } with: <code class="bg-white/10 p-1 text-sm rounded-lg" >{name}</code> {recipes.length} { recipes.length == 1 ? "Recipe" : "Recipes" } with: <code class="bg-white/10 p-1 text-sm rounded-lg" >{name}</code>
</p> </p>
<div class="grid md:gap-2 gap-3 grid-cols-2 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-8"> <div class="grid md:gap-2 gap-3 grid-cols-1 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-8">
{ {
recipes.map(r => ( recipes.map(r => (
<OverviewCard recipe={r} /> <OverviewCard recipe={r} />