This repository has been archived on 2025-12-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BreadnetV3/web/src/components/albums/albumCard.astro
2025-11-22 16:54:17 +13:00

18 lines
555 B
Plaintext

---
import { authPB } from "@utils/pocketbase"
const { a } = Astro.props
const pb = await authPB()
---
<div class="swiper-slide flex flex-col md:flex-row items-center justify-center">
<a class="b1-no-underline" href={`/albums/${encodeURI(a.title)}`}>
<h1 class="text-center pb-0 md:flex-1">{a.title}</h1>
<p class="text-center">{a.date}</p>
<img
src={pb.files.getURL(a, a.images[0])}
class="w-full h-full object-contain"
loading="lazy"
alt={a.title}
/>
</a>
</div>