79 lines
1.3 KiB
Text
79 lines
1.3 KiB
Text
---
|
|
export interface Props {
|
|
title: string
|
|
abovetext?: string
|
|
}
|
|
|
|
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 = abovetext
|
|
}
|
|
---
|
|
|
|
<div class="base">
|
|
<h1>{title}</h1>
|
|
<h2>{h2text}</h2>
|
|
<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 {
|
|
font-size: 40px;
|
|
line-height: 48px;
|
|
letter-spacing: -1px;
|
|
color: white;
|
|
margin-top: 2rem;
|
|
margin-bottom: 0;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding: 0.25rem 0.75rem;
|
|
max-width: max-content;
|
|
background-color: var(--c-darkgray);
|
|
padding: 0.25rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
h2 {
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin: 5;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.base {
|
|
margin-left: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
@media (min-width: 1000px) {
|
|
.base {
|
|
margin-left: 3rem;
|
|
margin-right: 3rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1500px) {
|
|
.base {
|
|
margin-left: 10%;
|
|
margin-right: 10%;
|
|
}
|
|
}
|
|
</style>
|