2023-01-20 23:43:00 +00:00
|
|
|
---
|
|
|
|
export interface Props {
|
|
|
|
title: string;
|
2023-03-06 12:30:35 +00:00
|
|
|
abovetext?: string;
|
2023-01-20 23:43:00 +00:00
|
|
|
}
|
|
|
|
|
2023-03-06 12:30:35 +00:00
|
|
|
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 = ""
|
|
|
|
}
|
2023-01-20 23:43:00 +00:00
|
|
|
---
|
|
|
|
<div>
|
|
|
|
<h1>{title}</h1>
|
2023-03-06 12:30:35 +00:00
|
|
|
<h2>{h2text}</h2>
|
2023-01-20 23:43:00 +00:00
|
|
|
<div class="container ta-container">
|
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
div > div {
|
|
|
|
row-gap: 1.5em;
|
|
|
|
column-gap: 1.5em;
|
|
|
|
justify-content: center;
|
|
|
|
align-self: center;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
color: white;
|
2023-03-05 01:00:36 +00:00
|
|
|
margin: 0.5rem 0px 0.5rem 0.5em;
|
2023-01-20 23:43:00 +00:00
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
width: max-content;
|
2023-03-05 20:58:01 +00:00
|
|
|
background-color: var(--c-darkgray);
|
2023-01-20 23:43:00 +00:00
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
color: white;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 600;
|
|
|
|
margin: 5;
|
|
|
|
line-height: 20px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
</style>
|