2023-01-20 23:16:05 +01:00
|
|
|
---
|
|
|
|
export interface Props {
|
2023-03-09 11:44:18 +01:00
|
|
|
title: string
|
2023-01-20 23:16:05 +01:00
|
|
|
}
|
|
|
|
|
2023-03-09 11:44:18 +01:00
|
|
|
const { title } = Astro.props
|
2023-01-20 23:16:05 +01:00
|
|
|
---
|
|
|
|
|
2023-03-16 23:29:16 +01:00
|
|
|
<div class="base">
|
2023-03-09 11:44:18 +01:00
|
|
|
<h1>{title}</h1>
|
|
|
|
<div>
|
|
|
|
<slot />
|
|
|
|
</div>
|
2023-01-20 23:16:05 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
2023-03-09 11:44:18 +01:00
|
|
|
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;
|
|
|
|
}
|
2024-10-26 00:22:08 +02:00
|
|
|
h1 {
|
2023-07-06 19:41:28 +02:00
|
|
|
font-size: 40px;
|
|
|
|
letter-spacing: -1px;
|
2024-10-24 18:52:33 +02:00
|
|
|
color: var(--c-primary-text);
|
2024-10-26 00:22:08 +02:00
|
|
|
margin: 0 auto 0px;
|
|
|
|
padding: 0.25rem 1.5rem 0.5rem;
|
2023-03-16 23:04:09 +01:00
|
|
|
max-width: max-content;
|
2024-10-26 00:22:08 +02:00
|
|
|
&:after {
|
|
|
|
content:' ';
|
|
|
|
display: block;
|
|
|
|
width: 65%;
|
|
|
|
height: 3px;
|
|
|
|
margin: auto;
|
|
|
|
background-color: var(--c-accent-1);
|
|
|
|
}
|
2024-10-25 15:26:25 +02:00
|
|
|
}
|
|
|
|
|
2023-03-09 11:44:18 +01:00
|
|
|
@media (min-width: 512px) {
|
2023-01-20 23:16:05 +01:00
|
|
|
div {
|
2023-03-09 11:44:18 +01:00
|
|
|
row-gap: 1.5em;
|
|
|
|
column-gap: 1.5em;
|
2023-01-20 23:16:05 +01:00
|
|
|
}
|
2023-03-09 11:44:18 +01:00
|
|
|
}
|
2023-03-16 23:29:16 +01:00
|
|
|
|
2023-03-16 23:41:21 +01:00
|
|
|
@media (min-width: 1000px) {
|
|
|
|
.base {
|
|
|
|
margin-left: 3rem;
|
|
|
|
margin-right: 3rem;
|
|
|
|
}
|
2023-03-16 23:29:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1500px) {
|
|
|
|
.base {
|
|
|
|
margin-left: 10%;
|
|
|
|
margin-right: 10%;
|
|
|
|
}
|
|
|
|
}
|
2023-03-09 11:44:18 +01:00
|
|
|
</style>
|