[PIE-16] Basic tag page implementation #13

Merged
breadone merged 5 commits from PIE-16 into main 2025-08-16 23:17:31 +12:00
Showing only changes of commit c026780460 - Show all commits

View File

@ -8,6 +8,10 @@ const recipes = await client.getRecipesOfTag(name) // todo redir to 404 if not f
--- ---
<SiteLayout> <SiteLayout>
<p class="text-xl pb-2">
{recipes.length} { recipes.length == 1 ? "Recipe" : "Recipes" } with: <code class="bg-white/10 px-1 rounded-lg" >{name}</code>
</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-2 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-8">
{ {
recipes.map(r => ( recipes.map(r => (