OKAY LETS GOOOOO
This commit is contained in:
parent
befda49b7e
commit
3c62bdd713
11 changed files with 79 additions and 28 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue