Notable TA section created

This commit is contained in:
Firq 2023-03-06 13:30:35 +01:00
parent d5052a8a93
commit acc66bafeb
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 17 additions and 2 deletions
src/layouts

View file

@ -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 = ""
}
---
<div>
<h1>{title}</h1>
<h2>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</h2>
<h2>{h2text}</h2>
<div class="container ta-container">
<slot />
</div>