Recipie/src/pages/index.astro
june 6145f14df0 [PIE-28] Switch to type-safe API (#12)
Custom API client to handle a lot of the more type safe queries

Reviewed-on: #12
Co-authored-by: june <self@breadone.net>
Co-committed-by: june <self@breadone.net>
2025-08-16 13:17:10 +12:00

21 lines
447 B
Plaintext

---
import PageLayout from "@/layouts/base"
import client from "@/data/pocketbase"
import OverviewCard from "@/components/Card/OverviewCard"
const recipes = await client.getAllRecipes()
---
<PageLayout>
<!-- <p class="pb-2">What would you like today?</p> -->
<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 => (
<OverviewCard recipe={r} />
))
}
</div>
</PageLayout>