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 name: string
origin: string origin: string
image: string image: string
link: string
} }
const { image, origin, name } = Astro.props const { link, image, origin, name } = Astro.props
const img: string = `/favourites/${image}.webp` const img: string = `/favourites/${image}.webp`
--- ---
<article> <a href={link} target="_blank" rel="noopener noreferrer">
<div class="heading">{name}</div> <article>
<img src={img} alt={name} /> <div class="heading">{name}</div>
<h2 class="subtext"> <img src={img} alt={name} />
{origin} <h2 class="subtext">
</h2> {origin}
</article> </h2>
</article>
</a>
<style> <style>
a {
text-decoration: none;
}
.heading { .heading {
display: flex; display: flex;
height: 4rem; 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)) 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.' const description = 'A collection of TAs previously completed be Firq.'
--- ---

View file

@ -2,11 +2,13 @@
{ {
"name": "Scathach", "name": "Scathach",
"origin": "Fate/Grand Order", "origin": "Fate/Grand Order",
"image": "scathach" "image": "scathach",
"link": "https://twitter.com/firq_ow/status/1541064034618904578"
}, },
{ {
"name": "Skadi", "name": "Skadi",
"origin": "Fate/Grand Order", "origin": "Fate/Grand Order",
"image": "skadi" "image": "skadi",
"link": "https://twitter.com/firq_ow/status/1544321985995489280"
} }
] ]

12
static/_othertadata.json Normal file
View file

@ -0,0 +1,12 @@
{
"kog": {
"site": "Youtube: @Kog",
"link": "https://www.youtube.com/@KOGtxt",
"image": "youtube"
},
"requiem": {
"site": "Youtube: @Requiem",
"link": "https://www.youtube.com/@requiemTA",
"image": "youtube"
}
}