2023-01-20 23:43:00 +00:00
|
|
|
---
|
|
|
|
export interface Props {
|
2023-03-09 10:44:18 +00:00
|
|
|
title: string
|
|
|
|
abovetext?: string
|
2023-01-20 23:43:00 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
const { abovetext, title } = Astro.props
|
|
|
|
let h2text
|
2023-03-06 12:30:35 +00:00
|
|
|
if (abovetext === undefined) {
|
2023-03-09 10:44:18 +00:00
|
|
|
h2text =
|
|
|
|
'The full list of my completed TAs can be found on my Youtube channel.'
|
2023-03-06 12:30:35 +00:00
|
|
|
} else {
|
2023-03-11 18:59:51 +00:00
|
|
|
h2text = abovetext
|
2023-03-06 12:30:35 +00:00
|
|
|
}
|
2023-01-20 23:43:00 +00:00
|
|
|
---
|
2023-03-09 10:44:18 +00:00
|
|
|
|
2023-03-16 22:29:16 +00:00
|
|
|
<div class="base">
|
2023-03-09 10:44:18 +00:00
|
|
|
<h1>{title}</h1>
|
|
|
|
<h2>{h2text}</h2>
|
|
|
|
<div class="container ta-container">
|
|
|
|
<slot />
|
|
|
|
</div>
|
2023-01-20 23:43:00 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
2023-03-09 10:44:18 +00:00
|
|
|
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 {
|
2023-07-08 12:47:15 +00:00
|
|
|
font-size: 40px;
|
|
|
|
line-height: 48px;
|
|
|
|
letter-spacing: -1px;
|
2023-03-09 10:44:18 +00:00
|
|
|
color: white;
|
2023-03-16 22:29:16 +00:00
|
|
|
margin-top: 2rem;
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2023-03-09 10:44:18 +00:00
|
|
|
padding: 0.25rem 0.75rem;
|
2023-03-10 19:10:54 +00:00
|
|
|
max-width: max-content;
|
2023-03-09 10:44:18 +00:00
|
|
|
background-color: var(--c-darkgray);
|
2023-07-08 12:38:36 +00:00
|
|
|
padding: 0.25rem 1.5rem;
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
padding-bottom: 0.5rem;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
color: white;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 600;
|
|
|
|
margin: 5;
|
|
|
|
line-height: 20px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2023-03-16 22:29:16 +00:00
|
|
|
|
|
|
|
.base {
|
2023-03-16 22:41:21 +00:00
|
|
|
margin-left: 1rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1000px) {
|
|
|
|
.base {
|
|
|
|
margin-left: 3rem;
|
|
|
|
margin-right: 3rem;
|
|
|
|
}
|
2023-03-16 22:29:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1500px) {
|
|
|
|
.base {
|
|
|
|
margin-left: 10%;
|
|
|
|
margin-right: 10%;
|
|
|
|
}
|
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
</style>
|