2023-01-20 23:43:00 +00:00
|
|
|
---
|
|
|
|
export interface Props {
|
2023-03-09 10:44:18 +00:00
|
|
|
title: string
|
2023-01-20 23:43:00 +00:00
|
|
|
}
|
|
|
|
|
2023-03-09 10:44:18 +00:00
|
|
|
const { title } = Astro.props
|
2023-01-20 23:43:00 +00:00
|
|
|
---
|
2023-03-09 10:44:18 +00:00
|
|
|
|
2023-03-16 22:29:16 +00:00
|
|
|
<section class="base">
|
2023-03-09 10:44:18 +00:00
|
|
|
<h1>{title}</h1>
|
|
|
|
<div>
|
|
|
|
<slot />
|
|
|
|
</div>
|
2023-01-20 23:43:00 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<style>
|
2023-03-09 10:44:18 +00:00
|
|
|
h1 {
|
2023-01-20 23:43:00 +00:00
|
|
|
color: white;
|
2023-07-08 13:02:07 +00:00
|
|
|
font-size: 26px;
|
|
|
|
line-height: 32px;
|
|
|
|
letter-spacing: -1px;
|
2023-03-05 01:00:36 +00:00
|
|
|
margin: 0.5rem 0px 0.5rem 0.5em;
|
2023-01-20 23:43:00 +00:00
|
|
|
padding: 0.25rem 0.75rem;
|
|
|
|
width: max-content;
|
2023-03-05 20:58:01 +00:00
|
|
|
background-color: var(--c-darkgray);
|
2023-07-08 13:02:07 +00:00
|
|
|
padding: 0.25rem 1rem;
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
padding-bottom: 0.5rem;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
|
|
|
div {
|
2023-01-20 23:43:00 +00:00
|
|
|
row-gap: 1em;
|
|
|
|
column-gap: 1em;
|
|
|
|
justify-content: center;
|
|
|
|
align-self: center;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
padding: 1em;
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
|
|
|
@media (min-width: 512px) {
|
2023-01-20 23:43:00 +00:00
|
|
|
div {
|
2023-03-09 10:44:18 +00:00
|
|
|
justify-content: left;
|
2023-01-20 23:43:00 +00:00
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
}
|
2023-03-16 22:41:21 +00:00
|
|
|
.base {
|
|
|
|
margin-left: 1rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
2023-03-16 22:29:16 +00:00
|
|
|
|
|
|
|
@media (min-width: 400px) {
|
|
|
|
.base {
|
|
|
|
margin-left: 3rem;
|
|
|
|
margin-right: 3rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: 1500px) {
|
|
|
|
.base {
|
|
|
|
margin-left: 10%;
|
|
|
|
margin-right: 10%;
|
|
|
|
}
|
|
|
|
}
|
2023-03-09 10:44:18 +00:00
|
|
|
</style>
|