Featuring some people, small fixes

This commit is contained in:
Firq 2023-03-11 19:59:51 +01:00
parent d82e4fb49f
commit 1e61583034
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
10 changed files with 173 additions and 24 deletions

View file

@ -10,6 +10,7 @@ import Layout from '../layouts/Layout.astro'
import TaSection from '../layouts/taSection.astro'
import TaCard from '../components/taCard.astro'
import tadata from '../../static/_tadata.json'
import featured_data from '../../static/_featureddata.json'
const important_data = tadata.filter(function (el) {
return [
@ -21,6 +22,7 @@ const important_data = tadata.filter(function (el) {
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))
featured_data.sort((a, b) => Date.parse(b.date) - Date.parse(a.date))
const description = 'A collection of TAs previously completed be Firq.'
---
@ -36,6 +38,12 @@ const description = 'A collection of TAs previously completed be Firq.'
<TaSection title="Completed TAs">
{tadata.map((item) => <TaCard {...item} />)}
</TaSection>
<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>
</Layout>
<style></style>