70 lines
1.1 KiB
Text
70 lines
1.1 KiB
Text
---
|
|
export interface Props {
|
|
title: string
|
|
}
|
|
|
|
const { title } = Astro.props
|
|
---
|
|
|
|
<div class="base">
|
|
<h1>{title}</h1>
|
|
<div>
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
div > div {
|
|
row-gap: 1em;
|
|
column-gap: 1em;
|
|
justify-content: center;
|
|
align-self: center;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
padding: 1em;
|
|
position: relative;
|
|
}
|
|
h1 {
|
|
font-size: 40px;
|
|
letter-spacing: -1px;
|
|
color: var(--c-primary-text);
|
|
margin: 0 auto 0px;
|
|
padding: 0.25rem 1.5rem 0.5rem;
|
|
max-width: max-content;
|
|
&:after {
|
|
content:' ';
|
|
display: block;
|
|
width: 65%;
|
|
height: 3px;
|
|
margin: auto;
|
|
background-color: var(--c-accent-1);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 512px) {
|
|
div {
|
|
row-gap: 1.5em;
|
|
column-gap: 1.5em;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1000px) {
|
|
.base {
|
|
margin-left: 3rem;
|
|
margin-right: 3rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1500px) {
|
|
.base {
|
|
margin-left: 10%;
|
|
margin-right: 10%;
|
|
}
|
|
}
|
|
</style>
|