62 lines
1,009 B
Text
62 lines
1,009 B
Text
---
|
|
export interface Props {
|
|
title: string
|
|
}
|
|
|
|
const { title } = Astro.props
|
|
---
|
|
|
|
<section class="base">
|
|
<h1>{title}</h1>
|
|
<div>
|
|
<slot />
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
h1 {
|
|
color: white;
|
|
font-size: 26px;
|
|
line-height: 32px;
|
|
letter-spacing: -1px;
|
|
margin: 0.5rem 0px 0.5rem 0.5em;
|
|
padding: 0.25rem 0.75rem;
|
|
width: max-content;
|
|
background-color: var(--c-darkgray);
|
|
padding: 0.25rem 1rem;
|
|
border-radius: 0.5rem;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
@media (min-width: 1500px) {
|
|
.base {
|
|
margin-left: 10%;
|
|
margin-right: 10%;
|
|
}
|
|
}
|
|
</style>
|