firq-dev-website/src/layouts/baseSection.astro

77 lines
1.2 KiB
Text
Raw Normal View History

---
export interface Props {
2023-03-09 11:44:18 +01:00
title: string
}
2023-03-09 11:44:18 +01:00
const { title } = Astro.props
---
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>
</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;
}
2023-03-16 23:29:16 +01:00
div h1 {
2023-07-06 19:41:28 +02:00
font-size: 40px;
line-height: 48px;
letter-spacing: -1px;
2024-10-24 18:52:33 +02:00
color: var(--c-primary-text);
2023-07-07 18:32:14 +02:00
margin-bottom: 0px;
2023-03-16 23:29:16 +01:00
margin-left: auto;
margin-right: auto;
2023-07-06 19:41:28 +02:00
padding: 0.25rem 1.5rem;
border-radius: 0.5rem;
max-width: max-content;
2023-07-07 18:32:14 +02:00
padding-bottom: 0.5rem;
2023-03-09 11:44:18 +01:00
}
2024-10-25 15:26:25 +02:00
h1:after {
content:' ';
display: block;
width: 62.5%;
margin: auto;
border: 2px solid var(--c-accent-1);
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .05);
}
2023-03-09 11:44:18 +01:00
@media (min-width: 512px) {
div {
2023-03-09 11:44:18 +01:00
row-gap: 1.5em;
column-gap: 1.5em;
}
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>