From acc66bafeb228de589229e2e918c364f1d0f8a9b Mon Sep 17 00:00:00 2001 From: Firq Date: Mon, 6 Mar 2023 13:30:35 +0100 Subject: [PATCH] Notable TA section created --- src/layouts/taSection.astro | 11 +++++++++-- src/pages/ta-collection.astro | 8 ++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/layouts/taSection.astro b/src/layouts/taSection.astro index d939a4f..bb619ab 100644 --- a/src/layouts/taSection.astro +++ b/src/layouts/taSection.astro @@ -1,13 +1,20 @@ --- export interface Props { title: string; + abovetext?: string; } -const { title } = Astro.props; +const { abovetext, title } = Astro.props; +let h2text; +if (abovetext === undefined) { + h2text = "The full list of my completed TAs can be found on my Youtube channel." +} else { + h2text = "" +} ---

{title}

-

The full list of my completed TAs can be found on my Youtube channel. This is only a small selection of the most notable TAs

+

{h2text}

diff --git a/src/pages/ta-collection.astro b/src/pages/ta-collection.astro index cfe9f4f..6a2d840 100644 --- a/src/pages/ta-collection.astro +++ b/src/pages/ta-collection.astro @@ -11,10 +11,18 @@ import TaSection from '../layouts/taSection.astro'; import TaCard from '../components/taCard.astro'; import tadata from '../../static/_tadata.json' +const important_data = tadata.filter(function (el) { + return ["Ibuki 3T (Lostbelt 5.5)", "DB 7T (No Duplicates)", "Kingprotea 1T"].includes(el.title); +}); + + const description = "A collection of TAs previously completed be Firq." --- + + {important_data.map((item) => ())} + {tadata.map((item) => ())}