2023-02-11 14:05:53 +00:00
|
|
|
---
|
|
|
|
export interface Props {
|
|
|
|
title: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const { title } = Astro.props;
|
|
|
|
---
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<h1>{title}</h1>
|
|
|
|
<div>
|
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
h1 {
|
|
|
|
color: white;
|
2023-03-05 01:00:36 +00:00
|
|
|
margin: 0.5rem 0px 0.5rem 0.5em;
|
2023-02-11 14:05:53 +00:00
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
width: max-content;
|
2023-03-05 20:58:01 +00:00
|
|
|
background-color: var(--c-darkgray);
|
2023-02-11 14:05:53 +00:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
div {
|
|
|
|
color: white;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|