Updated favourites, preparing for implementing extra stuff
This commit is contained in:
parent
4475bc7a08
commit
fab7041ca7
4 changed files with 31 additions and 10 deletions
|
@ -3,13 +3,15 @@ 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`
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<a href={link} target="_blank" rel="noopener noreferrer">
|
||||||
<article>
|
<article>
|
||||||
<div class="heading">{name}</div>
|
<div class="heading">{name}</div>
|
||||||
<img src={img} alt={name} />
|
<img src={img} alt={name} />
|
||||||
|
@ -17,8 +19,12 @@ const img: string = `/favourites/${image}.webp`
|
||||||
{origin}
|
{origin}
|
||||||
</h2>
|
</h2>
|
||||||
</article>
|
</article>
|
||||||
|
</a>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
.heading {
|
.heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
|
|
|
@ -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.'
|
||||||
---
|
---
|
||||||
|
|
|
@ -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
12
static/_othertadata.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue