Improved TA section, added date sorting
This commit is contained in:
parent
4e85915ebe
commit
eb523961c1
4 changed files with 61 additions and 17 deletions
|
@ -1,12 +1,20 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
date: string
|
||||||
title: string
|
title: string
|
||||||
link: string
|
link: string
|
||||||
image: string
|
image: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const { image, link, title } = Astro.props
|
const { date, image, link, title } = Astro.props
|
||||||
|
|
||||||
|
const options_date: Intl.DateTimeFormatOptions = {
|
||||||
|
year: 'numeric',
|
||||||
|
month: '2-digit',
|
||||||
|
day: '2-digit',
|
||||||
|
}
|
||||||
|
|
||||||
|
const formatted_date = new Date(date).toLocaleDateString('de-DE', options_date)
|
||||||
const icon: string = `background: url('/ta_icons/${image}.webp')`
|
const icon: string = `background: url('/ta_icons/${image}.webp')`
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -15,10 +23,16 @@ const icon: string = `background: url('/ta_icons/${image}.webp')`
|
||||||
<div style={icon}>
|
<div style={icon}>
|
||||||
<h2>{title}</h2>
|
<h2>{title}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
<p>
|
||||||
|
{formatted_date}
|
||||||
|
</p>
|
||||||
</article>
|
</article>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
article {
|
article {
|
||||||
background-color: var(--c-darkergray);
|
background-color: var(--c-darkergray);
|
||||||
border-color: var(--c-darkgray);
|
border-color: var(--c-darkgray);
|
||||||
|
@ -54,4 +68,17 @@ const icon: string = `background: url('/ta_icons/${image}.webp')`
|
||||||
article h2 {
|
article h2 {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
display: flex;
|
||||||
|
text-align: center;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 100%;
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
margin: 0.5rem 0px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -36,7 +36,7 @@ if (abovetext === undefined) {
|
||||||
color: white;
|
color: white;
|
||||||
margin: 0.5rem 0px 0.5rem 0.5em;
|
margin: 0.5rem 0px 0.5rem 0.5em;
|
||||||
padding: 0.25rem 0.75rem;
|
padding: 0.25rem 0.75rem;
|
||||||
width: max-content;
|
max-width: max-content;
|
||||||
background-color: var(--c-darkgray);
|
background-color: var(--c-darkgray);
|
||||||
}
|
}
|
||||||
h2 {
|
h2 {
|
||||||
|
|
|
@ -19,6 +19,8 @@ const important_data = tadata.filter(function (el) {
|
||||||
].includes(el.title)
|
].includes(el.title)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
tadata.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,76 +2,91 @@
|
||||||
{
|
{
|
||||||
"title": "DB 7T (No Duplicates)",
|
"title": "DB 7T (No Duplicates)",
|
||||||
"link": "https://www.youtube.com/watch?v=d1ftVeitR6c",
|
"link": "https://www.youtube.com/watch?v=d1ftVeitR6c",
|
||||||
"image": "db"
|
"image": "db",
|
||||||
|
"date": "2022-07-09"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Kingprotea 1T",
|
"title": "Kingprotea 1T",
|
||||||
"link": "https://www.youtube.com/watch?v=m3SATSOfpt4",
|
"link": "https://www.youtube.com/watch?v=m3SATSOfpt4",
|
||||||
"image": "kingprotea"
|
"image": "kingprotea",
|
||||||
|
"date": "2022-06-21"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Solomon 1T (No NP)",
|
"title": "Solomon 1T (No NP)",
|
||||||
"link": "https://www.youtube.com/watch?v=01Qx4Hs-X4M",
|
"link": "https://www.youtube.com/watch?v=01Qx4Hs-X4M",
|
||||||
"image": "solomon"
|
"image": "solomon",
|
||||||
|
"date": "2022-06-28"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Ibuki 3T (Lostbelt 5.5)",
|
"title": "Ibuki 3T (Lostbelt 5.5)",
|
||||||
"link": "https://www.youtube.com/watch?v=AaqRN73dO5k",
|
"link": "https://www.youtube.com/watch?v=AaqRN73dO5k",
|
||||||
"image": "ibuki"
|
"image": "ibuki",
|
||||||
|
"date": "2022-11-22"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Boxing 3T (Xmas 5)",
|
"title": "Boxing 3T (Xmas 5)",
|
||||||
"link": "https://www.youtube.com/watch?v=S8OQ7yWldJY",
|
"link": "https://www.youtube.com/watch?v=S8OQ7yWldJY",
|
||||||
"image": "dioscuri"
|
"image": "dioscuri",
|
||||||
|
"date": "2022-12-24"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "MHXX 2T (No DMG CE)",
|
"title": "MHXX 2T (No DMG CE)",
|
||||||
"link": "https://www.youtube.com/watch?v=lz6iBZvoDuw",
|
"link": "https://www.youtube.com/watch?v=lz6iBZvoDuw",
|
||||||
"image": "mhxx"
|
"image": "mhxx",
|
||||||
|
"date": "2023-01-12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Taira 3T (Lostbelt 5.5)",
|
"title": "Taira 3T (Lostbelt 5.5)",
|
||||||
"link": "https://www.youtube.com/watch?v=YtRvahqFA0Y",
|
"link": "https://www.youtube.com/watch?v=YtRvahqFA0Y",
|
||||||
"image": "taira"
|
"image": "taira",
|
||||||
|
"date": "2022-11-22"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Douman 3T (Lostbelt 5.5)",
|
"title": "Douman 3T (Lostbelt 5.5)",
|
||||||
"link": "https://www.youtube.com/watch?v=6cstr3vTd8Y",
|
"link": "https://www.youtube.com/watch?v=6cstr3vTd8Y",
|
||||||
"image": "douman"
|
"image": "douman",
|
||||||
|
"date": "2022-11-23"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Christmas 2021 Rerun CQ 5T",
|
"title": "Christmas 2021 Rerun CQ 5T",
|
||||||
"link": "https://www.youtube.com/watch?v=cpqhx9dUgTU",
|
"link": "https://www.youtube.com/watch?v=cpqhx9dUgTU",
|
||||||
"image": "santagale"
|
"image": "santagale",
|
||||||
|
"date": "2022-10-15"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Summer 4 Rerun CQ 3T",
|
"title": "Summer 4 Rerun CQ 3T",
|
||||||
"link": "https://www.youtube.com/watch?v=u72o7PDBtks",
|
"link": "https://www.youtube.com/watch?v=u72o7PDBtks",
|
||||||
"image": "fuuma"
|
"image": "fuuma",
|
||||||
|
"date": "2022-06-04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Fate/Requiem CQ 3T",
|
"title": "Fate/Requiem CQ 3T",
|
||||||
"link": "https://www.youtube.com/watch?v=k7vGC4kpEFg",
|
"link": "https://www.youtube.com/watch?v=k7vGC4kpEFg",
|
||||||
"image": "erice"
|
"image": "erice",
|
||||||
|
"date": "2022-05-11"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Kirschtaria 3T (Lostbelt 5)",
|
"title": "Kirschtaria 3T (Lostbelt 5)",
|
||||||
"link": "https://www.youtube.com/watch?v=aYlyfAzuFw0",
|
"link": "https://www.youtube.com/watch?v=aYlyfAzuFw0",
|
||||||
"image": "kirschtaria"
|
"image": "kirschtaria",
|
||||||
|
"date": "2022-04-04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Aeaean Spring Breeze CQ 3T",
|
"title": "Aeaean Spring Breeze CQ 3T",
|
||||||
"link": "https://www.youtube.com/watch?v=uo3jI9xuVwI",
|
"link": "https://www.youtube.com/watch?v=uo3jI9xuVwI",
|
||||||
"image": "odysseus"
|
"image": "odysseus",
|
||||||
|
"date": "2022-03-06"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Valentines 2022 CQ 4T",
|
"title": "Valentines 2022 CQ 4T",
|
||||||
"link": "https://www.youtube.com/watch?v=MOCMXZ17FkU",
|
"link": "https://www.youtube.com/watch?v=MOCMXZ17FkU",
|
||||||
"image": "sei"
|
"image": "sei",
|
||||||
|
"date": "2022-02-09"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Amazoness 2021 CQ 3T",
|
"title": "Amazoness 2021 CQ 3T",
|
||||||
"link": "https://www.youtube.com/watch?v=MU_Hw2KKYRU",
|
"link": "https://www.youtube.com/watch?v=MU_Hw2KKYRU",
|
||||||
"image": "penth"
|
"image": "penth",
|
||||||
|
"date": "2022-01-23"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue