Updated favourites, preparing for implementing extra stuff

This commit is contained in:
Firq 2023-03-10 22:51:39 +01:00
parent 4475bc7a08
commit fab7041ca7
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 31 additions and 10 deletions

View file

@ -3,22 +3,28 @@ export interface Props {
name: string
origin: string
image: string
link: string
}
const { image, origin, name } = Astro.props
const { link, image, origin, name } = Astro.props
const img: string = `/favourites/${image}.webp`
---
<article>
<div class="heading">{name}</div>
<img src={img} alt={name} />
<h2 class="subtext">
{origin}
</h2>
</article>
<a href={link} target="_blank" rel="noopener noreferrer">
<article>
<div class="heading">{name}</div>
<img src={img} alt={name} />
<h2 class="subtext">
{origin}
</h2>
</article>
</a>
<style>
a {
text-decoration: none;
}
.heading {
display: flex;
height: 4rem;

View file

@ -20,6 +20,7 @@ const important_data = tadata.filter(function (el) {
})
tadata.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
important_data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
const description = 'A collection of TAs previously completed be Firq.'
---