2023-03-04 18:11:52 +00:00
|
|
|
---
|
2023-03-09 10:44:18 +00:00
|
|
|
//TODO:
|
2023-03-06 12:03:38 +00:00
|
|
|
// - Add highlighted TAs above the rest
|
|
|
|
// > I think you should have all of them on the site.
|
2023-03-09 10:44:18 +00:00
|
|
|
// > You could have the notable ones like you do now, but at the bottom, there could be a drop-down or "expand" or "more" or
|
2023-03-06 12:03:38 +00:00
|
|
|
// > some other section like that which you could click and show the rest
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
import Layout from '../layouts/Layout.astro'
|
2023-03-04 18:11:52 +00:00
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
import TaSection from '../layouts/taSection.astro'
|
|
|
|
import TaCard from '../components/taCard.astro'
|
2023-03-04 18:11:52 +00:00
|
|
|
import tadata from '../../static/_tadata.json'
|
2023-03-11 18:59:51 +00:00
|
|
|
import featured_data from '../../static/_featureddata.json'
|
2023-03-04 18:11:52 +00:00
|
|
|
|
2023-03-06 12:30:35 +00:00
|
|
|
const important_data = tadata.filter(function (el) {
|
2023-03-09 10:44:18 +00:00
|
|
|
return [
|
|
|
|
'Ibuki 3T (Lostbelt 5.5)',
|
|
|
|
'DB 7T (No Duplicates)',
|
|
|
|
'Kingprotea 1T',
|
|
|
|
].includes(el.title)
|
|
|
|
})
|
2023-03-06 12:30:35 +00:00
|
|
|
|
2023-03-10 19:10:54 +00:00
|
|
|
tadata.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
|
2023-03-10 21:51:39 +00:00
|
|
|
important_data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
|
2023-03-11 18:59:51 +00:00
|
|
|
featured_data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
|
2023-03-10 19:10:54 +00:00
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
const description = 'A collection of TAs previously completed be Firq.'
|
2023-03-04 18:11:52 +00:00
|
|
|
---
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
<Layout
|
|
|
|
title="TA Collection - Firq FGO Site"
|
|
|
|
currentpage="ta-collection"
|
|
|
|
descriptionOverride={description}
|
|
|
|
>
|
|
|
|
<TaSection title="Notable TAs" abovetext="">
|
|
|
|
{important_data.map((item) => <TaCard {...item} />)}
|
|
|
|
</TaSection>
|
|
|
|
<TaSection title="Completed TAs">
|
|
|
|
{tadata.map((item) => <TaCard {...item} />)}
|
|
|
|
</TaSection>
|
2023-03-11 18:59:51 +00:00
|
|
|
<TaSection
|
|
|
|
title="Featured TAs by other Racers"
|
|
|
|
abovetext="TAs done by my fellow Racers, check them out as well!"
|
|
|
|
>
|
|
|
|
{featured_data.map((item) => <TaCard {...item} />)}
|
|
|
|
</TaSection>
|
2023-03-04 18:11:52 +00:00
|
|
|
</Layout>
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
<style></style>
|