OKAY LETS GOOOOO

This commit is contained in:
Ivy Turner 2025-04-29 21:47:58 +01:00
parent befda49b7e
commit 3c62bdd713
No known key found for this signature in database
11 changed files with 79 additions and 28 deletions

View file

@ -1,11 +1,19 @@
---
import Date from "../util/Date.astro";
import StyledLink from "../util/StyledLink.astro";
const { title, description, icon, date } = Astro.props;
const { title, description, icon, date, back, backLabel } = Astro.props;
---
<div class="mb-4 mt-6">
<h2 class="text-xl font-bold font-inter">
{
() => {
if (back) {
return <StyledLink href={back} icon="fa-solid fa-arrow-left">{backLabel || "Back"}</StyledLink>
}
}
}
<h2 class="text-xl font-bold">
<i class={`${icon} text-xl mr-2 text-light-pu dark:text-dark-pu`}></i>
{title}
</h2>