lb-dk-2023/assets/scss/components/_hero-section.scss
2023-08-15 17:02:21 +02:00

164 lines
3.0 KiB
SCSS

.hero {
padding: 200px 0;
position: relative;
display: flex;
align-items: center;
justify-content: center;
@include desktop {
padding: 150px 0 30px 0;
}
&_background-svg {
position: absolute;
top: 0;
left: 0;
z-index: -1;
width: 65%;
svg {
width: 100%;
height: 100%;
}
}
&_footer-svg {
position: absolute;
bottom: 20px;
left: -130px;
animation: move_top 5s infinite linear;
@include desktop {
display: none;
}
}
&_content {
padding: 0 20px 0 0;
position: relative;
@include desktop {
text-align: center;
margin-bottom: 60px;
}
.hero_blob {
position: absolute;
z-index: -1;
top: -45%;
left: -45%;
height: 440px;
width: 440px;
svg {
width: 100%;
position: relative;
}
@include desktop {
display: none;
}
}
span {
font-size: 24px;
position: relative;
display: block;
margin: 0 0 20px 30px;
@include desktop {
display: inline-block;
}
}
p {
font-size: $font-size-lg;
}
}
&_figure {
width: 90%;
margin-left: auto;
border-radius: 20px;
position: relative;
@include desktop {
width: 100%;
}
.figure-svg {
position: absolute;
top: -55px;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
z-index: -1;
height: 150px;
animation: move_left 5s infinite linear;
img {
height: 100%;
width: 100%;
}
}
img {
height: 100%;
width: 100%;
}
&-popup {
transition: all 0.3s ease;
.thumb {
height: 320px;
/*border: 1px solid #707070;*/
border-radius: 20px;
overflow: hidden;
position: relative;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.popup-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 60px;
width: 60px;
background: #ffffff;
border-radius: 50%;
z-index: 2;
transition: all 0.3s ease;
svg {
position: absolute;
top: 50%;
left: 55%;
transform: translate(-50%, -50%);
transition: all 0.3s ease;
path {
fill: $primary;
}
}
&:hover {
background-color: $primary;
svg {
path {
fill: #ffffff;
}
}
}
}
&:hover {
.popup-button {
transform: translate(-50%, -50%) scale(1.1);
}
}
}
}
}
@keyframes move_left {
0% {
transform: translateX(-50%);
}
50% {
transform: translateX(-57%);
}
}
@keyframes move_top {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(15px);
}
}