75 lines
1.2 KiB
Text
75 lines
1.2 KiB
Text
---
|
|
export interface Props {
|
|
title: string
|
|
}
|
|
|
|
const { title } = Astro.props
|
|
---
|
|
|
|
<section class="base">
|
|
<h1>{title}</h1>
|
|
<div>
|
|
<slot />
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
h1 {
|
|
color: var(--c-primary-text);
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
line-height: 32px;
|
|
font-family: 'Work Sans Adaptive', sans-serif;
|
|
width: max-content;
|
|
border-radius: 0.5rem;
|
|
margin: 0 auto 0.5rem auto;
|
|
&:after {
|
|
content:' ';
|
|
display: block;
|
|
width: 75%;
|
|
margin: -2px auto auto auto;
|
|
border: 1px solid var(--c-accent-1);
|
|
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .05);
|
|
}
|
|
}
|
|
|
|
div {
|
|
row-gap: 1em;
|
|
column-gap: 1em;
|
|
justify-content: center;
|
|
align-self: center;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
padding: 1em;
|
|
}
|
|
@media (min-width: 512px) {
|
|
div {
|
|
justify-content: left;
|
|
}
|
|
}
|
|
.base {
|
|
margin-left: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
@media (min-width: 400px) {
|
|
.base {
|
|
margin-left: 3rem;
|
|
margin-right: 3rem;
|
|
}
|
|
|
|
h1 {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
&:after {
|
|
margin: -2px 0 0;
|
|
}
|
|
}
|
|
}
|
|
@media (min-width: 1500px) {
|
|
.base {
|
|
margin-left: 10%;
|
|
margin-right: 10%;
|
|
}
|
|
}
|
|
</style>
|