firq-dev-website/src/pages/ta-collection.astro

60 lines
2 KiB
Text
Raw Normal View History

2023-03-04 19:11:52 +01:00
---
2023-03-09 11:44:18 +01:00
//TODO:
// - Add highlighted TAs above the rest
// > I think you should have all of them on the site.
2023-03-09 11:44:18 +01: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
// > some other section like that which you could click and show the rest
2024-10-26 22:41:24 +02:00
import Layout from '@layouts/Layout.astro'
2023-03-04 19:11:52 +01:00
2024-10-26 22:41:24 +02:00
import TaSection from '@layouts/taSection.astro'
import TaCard from '@components/cards/taCard.astro'
import tadata from '@datafiles/tadata.json'
import featured_data from '@datafiles/featureddata.json'
2024-10-26 22:41:24 +02:00
import FgotaHero from '@components/fgotaHero.astro'
2025-04-08 09:32:41 +00:00
import Placeholder from '@components/placeholder.astro'
2024-10-26 22:41:24 +02:00
import SmallTitle from '@components/titles/smallTitle.astro'
2023-03-04 19:11:52 +01:00
2023-03-06 13:30:35 +01:00
const important_data = tadata.filter(function (el) {
2023-03-09 11:44:18 +01:00
return [
2023-07-08 16:34:20 +02:00
'Ibuki 3T (LB 5.5)',
2023-03-09 11:44:18 +01:00
'DB 7T (No Duplicates)',
'Kingprotea 1T',
2023-07-08 16:34:20 +02:00
'Goetia Memorial Quest 2T',
2023-07-13 20:15:57 +02:00
'Morgan 3T (LB 6) Skadi',
2023-12-24 00:42:32 +01:00
'Albion 3T (LB 6) Skadi',
'Cernunnos 4T (No Castoria)',
2023-03-09 11:44:18 +01:00
].includes(el.title)
})
2023-03-06 13:30:35 +01:00
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))
2023-03-11 19:59:51 +01:00
featured_data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
2023-03-09 11:44:18 +01:00
const description = 'A collection of TAs previously completed be Firq.'
2023-03-04 19:11:52 +01:00
---
2023-03-09 11:44:18 +01:00
<Layout
2025-04-12 19:05:52 +02:00
title="TA Collection - firq.dev"
currentpage="fgo"
2023-03-09 11:44:18 +01:00
descriptionOverride={description}
>
<SmallTitle maintext='TA Collection' subtext='' baseurl='fgo' returnbutton={true} buttontext='FGO'/>
2024-07-19 22:52:15 +02:00
<FgotaHero fadeout={true}/>
<TaSection title="Notable TAs" abovetext="My most notable TAs">
2023-03-09 11:44:18 +01:00
{important_data.map((item) => <TaCard {...item} />)}
</TaSection>
<TaSection title="Completed TAs">
{tadata.map((item) => <TaCard {...item} />)}
</TaSection>
2023-03-11 19:59:51 +01: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>
2025-04-08 09:32:41 +00:00
<Placeholder height="5rem"/>
2023-03-04 19:11:52 +01:00
</Layout>
2025-04-08 09:32:41 +00:00
<style></style>