mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
62 lines
1.3 KiB
SCSS
62 lines
1.3 KiB
SCSS
@use '../lib/colors';
|
|
@use '../lib/layout';
|
|
@use '../lib/typography';
|
|
|
|
// Banners can be put at the top of a page to draw attention. A banner has
|
|
// two children:
|
|
// - A .background element which contains an image to render behind the text
|
|
// - A .content which holds the actual text.
|
|
.page-banner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
position: relative;
|
|
min-height: 60vh;
|
|
background-color: colors.$blue-800;
|
|
|
|
> .background {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
> .content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
position: relative;
|
|
padding: layout.$normal-gap max(#{layout.$large-gap}, 15vw);
|
|
|
|
> div {
|
|
display: inline-block;
|
|
padding: layout.$small-gap layout.$normal-gap;
|
|
font-size: typography.$subheading-size;
|
|
background-color: colors.$yellow-600;
|
|
|
|
> p:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
> p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
> .title {
|
|
padding: 0 layout.$normal-gap;
|
|
line-height: 5rem;
|
|
font-size: typography.$title-size;
|
|
font-weight: typography.$emphasized-weight;
|
|
background-color: colors.$teal-500;
|
|
}
|
|
}
|
|
}
|