mirror of
https://git.aria.coffee/BuyMyAria/aria.coffee.git
synced 2025-06-17 01:29:56 +00:00
f**k ahh syling and gallery work
This commit is contained in:
parent
3bf39af153
commit
eedba4c364
19 changed files with 165 additions and 19 deletions
47
src/pages/albums.astro
Normal file
47
src/pages/albums.astro
Normal file
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
import { getCollection } from "astro:content";
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
import Partition from "../components/Partition.astro";
|
||||
|
||||
const pageTitle = "Aria's Gallery";
|
||||
const description = "All of Aria's albums!";
|
||||
|
||||
import "../styles/aria.css";
|
||||
import { Picture } from "astro:assets";
|
||||
|
||||
const albums = await getCollection("albums");
|
||||
---
|
||||
|
||||
<BaseLayout pageTitle={pageTitle} description={description}>
|
||||
<div class="text-center">
|
||||
<h1 class="text-5xl font-bold text-center my-8">Aria's Gallery!</h1>
|
||||
{
|
||||
albums.map((item) => (
|
||||
<Partition>
|
||||
<a
|
||||
href={`/gallery/${item.id}`}
|
||||
class="group transition-all mb-4 block"
|
||||
>
|
||||
<Picture
|
||||
src={item.data.cover}
|
||||
alt={item.data.title}
|
||||
formats={["avif", "webp", "jpeg"]}
|
||||
width={638}
|
||||
quality="mid"
|
||||
class:list={[
|
||||
"rounded-lg transition-all",
|
||||
"group-hover:shadow-lg group-hover:opacity-90",
|
||||
]}
|
||||
/>
|
||||
<div class="mt-4 text-center">
|
||||
<strong class="font-normal">
|
||||
{item.data.title}
|
||||
</strong>
|
||||
<p class="text-xs">{item.data.description}</p>
|
||||
</div>
|
||||
</a>
|
||||
</Partition>
|
||||
))
|
||||
}
|
||||
</div>
|
||||
</BaseLayout>
|
Loading…
Add table
Add a link
Reference in a new issue