<div class="big-header bg-btn">
<picture>
<source media="(max-width: 767px)" srcset="/images/home-bg.png">
<source media="(max-width: 1024px)" srcset="/images/home-bg.png">
<img src="/images/home-bg.png" alt="test">
</picture>
<div class="home-text-wrap">
<h1 class="main-title">BlueBox Funds</h1>
<a class="btn btn-outline-secondary banner-btn download-with-popup" href="#" target="_blank"> Download Factsheet </a>
</div>
<a class="scroll-down" href="#section">Scroll down</a>
</div>
<div class="big-header {{ bgBtn ? 'bg-btn' : 'bg-scroll' }}">
{% if image_rendered is not null %}
{{ image_rendered }}
{% else %}
<picture>
<source media="(max-width: 767px)" srcset="{{imgMobile }}">
<source media="(max-width: 1024px)" srcset="{{imgTablet }}">
<img src="{{imgSrc }}" alt="test">
</picture>
{% endif %}
<div class="home-text-wrap">
<h1 class="main-title">{{title}}</h1>
<a class="btn btn-outline-secondary banner-btn download-with-popup" href="{{btnLink}}" target="_blank"> {{btnText}} </a>
</div>
<a class="scroll-down" href="{{btn_link}}">{{btn_text}}</a>
</div>
{
"bgBtn": true,
"title": "BlueBox Funds",
"btn_text": "Scroll down",
"btn_link": "#section",
"imgSrc": "/images/home-bg.png",
"imgTablet": "/images/home-bg.png",
"imgMobile": "/images/home-bg.png",
"image_rendered": null,
"videoSrc": "https://media.istockphoto.com/videos/industrial-abstract-pattern-video-id1050190380",
"btnText": "Download Factsheet",
"btnLink": "#"
}
import $ from "jquery";
$(document).ready(function() {});
.big-header {
position: relative;
padding-top: 0 !important;
padding-bottom: 0 !important;
// background-image: url("/images/home-bg.png");
// background-repeat: no-repeat;
// background-size: cover;
// background-attachment: fixed;
// height: 100vh;
// @include media-breakpoint-down(lg) {
// height: 660px;
// }
// overflow: hidden;
// &.bg-img {
// video {
// display: none;
// }
// }
// &.bg-video {
// img {
// display: none;
// }
// }
// .home-img {
// height: 950px;
// width: 100%;
// object-fit: cover;
// @include media-breakpoint-down(lg) {
// height: 800px;
// }
// }
&::after {
content: "";
background: linear-gradient(rgba(0, 0, 0, 0) 50%, black 100%);
position: absolute;
bottom: 0;
left: 0;
height: 100%;
width: 100%;
}
picture {
img {
max-width: 100%;
width: 100%;
height: 635px;
@include media-breakpoint-up(md) {
object-fit: cover;
}
}
}
.home-text-wrap {
margin: auto;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
flex-direction: column;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
.main-title {
font-size: 80px;
font-family: "PlayfairDisplay-Bold";
color: $white;
max-width: 993px;
margin: 0 auto;
text-align: center;
@include media-breakpoint-down(lg) {
font-size: 60px;
text-align: center;
}
}
&::after {
content: "";
position: absolute;
background-color: $white;
height: 160px;
width: 1px;
bottom: -13px;
@include media-breakpoint-down(md) {
height: 100px;
}
}
}
.scroll-down {
color: $white;
font-size: 17px;
font-family: "OpenSans-Regular";
text-decoration: none;
position: absolute;
bottom: 50px;
left: 52%;
-moz-animation: bounce 5s infinite;
-webkit-animation: bounce 5s infinite;
animation: bounce 5s infinite;
z-index: 1;
@include media-breakpoint-down(md) {
bottom: 28px;
}
&:hover {
animation: none;
color: $secondary;
}
}
}
.big-header-wrapper .big-header {
background-attachment: unset;
}
.big-header.fullpage-section {
picture {
img {
height: auto;
@include media-breakpoint-down(md) {
height: 100vh;
}
}
}
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
.bg-btn {
.banner-btn {
margin-top: 80px;
width: 260px;
@include media-breakpoint-down(md) {
margin-top: 40px;
}
}
.scroll-down {
display: none;
}
.home-text-wrap {
&::after {
display: none;
}
}
}
.bg-scroll {
.banner-btn {
display: none;
}
}
There are no notes for this item.