[PIE-17] Design refinements and improvements (!8)

Add ingredients to each step in detailview, add tags, and some refactoring and smaller improvements

Reviewed-on: #8
Co-authored-by: june <self@breadone.net>
Co-committed-by: june <self@breadone.net>
This commit was merged in pull request #8.
This commit is contained in:
2025-08-13 19:24:09 +12:00
committed by June
parent 3c0e9dc0dd
commit c12a4ab1aa
4 changed files with 77 additions and 34 deletions

View File

@@ -0,0 +1,17 @@
---
import client from "@/data/pocketbase";
const { ingredients, class: className } = Astro.props;
const ings = await Promise.all(
ingredients.map(async i => await client.collection("ingredients").getOne(i))
)
---
<div class={className}>
{ings.map(i => (
<div>
<p>• {i.quantity} {i.unit || " "} {i.name}</p>
</div>
))}
</div>