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

98 lines
1.8 KiB
Text
Raw Normal View History

2023-03-08 19:53:38 +00:00
---
export interface Props {
2023-03-09 10:44:18 +00:00
title: string
2023-03-08 19:53:38 +00:00
}
2023-03-09 10:44:18 +00:00
const { title } = Astro.props
2023-03-08 19:53:38 +00:00
---
<section>
2023-03-09 10:44:18 +00:00
<h1>{title}</h1>
2023-03-14 20:16:19 +00:00
<div class="wrapper">
2023-03-14 19:34:51 +00:00
<div class="line"></div>
2023-03-09 10:44:18 +00:00
<slot />
2023-03-14 20:16:19 +00:00
<div class="drop"></div>
2023-03-09 10:44:18 +00:00
</div>
2023-03-08 19:53:38 +00:00
</section>
<style>
2023-03-14 20:16:19 +00:00
.drop {
2023-03-14 19:34:51 +00:00
display: flex;
position: absolute;
visibility: visible;
left: 0;
right: 0;
bottom: -5rem;
2023-03-14 19:34:51 +00:00
margin-left: auto;
margin-right: auto;
height: 1.5rem;
width: 1.5rem;
border-radius: 0% 50% 50% 50%;
transform: rotate(45deg);
background-color: var(--c-darkpurple);
}
.line {
display: flex;
position: absolute;
visibility: visible;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
background-color: var(--c-darkpurple);
height: calc(100% + 5rem);
translate: 0% 2rem;
2023-03-14 19:34:51 +00:00
width: 0.25rem;
z-index: -1;
}
2023-03-09 10:44:18 +00:00
h1 {
2023-07-08 12:47:15 +00:00
font-size: 40px;
line-height: 48px;
letter-spacing: -1px;
2023-03-09 10:44:18 +00:00
color: white;
2023-03-14 19:58:58 +00:00
font-size: 2.25rem;
2023-03-16 22:29:16 +00:00
margin-top: 1rem;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
2023-03-09 10:44:18 +00:00
padding: 0.25rem 0.75rem;
2023-03-14 19:58:58 +00:00
max-width: max-content;
2023-03-09 10:44:18 +00:00
background-color: var(--c-darkgray);
2023-07-08 12:47:15 +00:00
padding: 0.25rem 1.5rem;
border-radius: 0.5rem;
padding-bottom: 0.5rem;
2023-03-09 10:44:18 +00:00
}
2023-03-14 20:16:19 +00:00
.wrapper {
2023-03-14 19:34:51 +00:00
margin: 2rem 3rem 0.5rem 3rem;
2023-03-09 10:44:18 +00:00
display: flex;
2023-03-14 19:34:51 +00:00
flex-flow: column wrap;
2023-03-09 10:44:18 +00:00
row-gap: 1em;
column-gap: 1em;
align-self: center;
align-items: stretch;
justify-content: space-around;
padding: 1em;
color: white;
font-size: 1em;
2023-03-14 19:34:51 +00:00
position: relative;
2023-03-09 10:44:18 +00:00
}
2023-03-14 23:58:54 +00:00
@media (min-width: 900px) {
.drop {
margin-left: 1.5rem;
}
.line {
margin-left: 2.1rem;
}
2023-03-14 19:34:51 +00:00
}
@media (min-width: 1500px) {
2023-03-14 20:16:19 +00:00
.wrapper {
2023-07-08 12:47:15 +00:00
margin-left: 20rem;
margin-right: 20rem;
2023-03-14 19:34:51 +00:00
}
h1 {
2023-07-08 12:47:15 +00:00
margin-left: 20rem;
margin-right: 20rem;
}
2023-03-09 10:44:18 +00:00
}
</style>