3D Public Preview Initial Test
This commit is contained in:
25
src/pages/publics/index.astro
Normal file
25
src/pages/publics/index.astro
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
import PageLayout from "../../layouts/PageLayout.astro";
|
||||
import {getCollection} from "astro:content";
|
||||
import {l} from "../../util/util";
|
||||
import { Image } from "astro:assets";
|
||||
import Card from "@components/Card.svelte";
|
||||
|
||||
const publics = await getCollection("publics");
|
||||
---
|
||||
|
||||
<PageLayout title="Publics">
|
||||
<div>
|
||||
{publics.map((pub) => (
|
||||
<a href={l("/publics/" + pub.id)}>
|
||||
<Card extraClasses="w-full mx-0">
|
||||
<div class="flex justify-center">
|
||||
<Image src={pub.data.image} alt={pub.data.name} transition:name={pub.data.name + "-img"} />
|
||||
</div>
|
||||
<h2 class="font-bold text-5xl" transition:name={pub.data.name + "-title"}>{pub.data.name}</h2>
|
||||
<h3 transition:name={pub.data.name + "-desc"}>{pub.data.description}</h3>
|
||||
</Card>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</PageLayout>
|
||||
Reference in New Issue
Block a user