Kitchen Renovations
With over 12 years experience and real focus on customer satisfaction, we can transform your kitchen dreams into a reality.
CONTACT US TODAY<section class="main_top">
<div class="top_slider hidden_slider" data-slider="top_slider">
<?php for ($i = 0; $i < 3; $i++): ?>
<div>
<div class="banner" style="background-image: url('/img/banner.jpg');"></div>
<div class="main_content">
<div class="wrapper">
<div class="text">
<h2>Kitchen Renovations</h2>
<p>With over 12 years experience and real focus on customer satisfaction, we can
transform your kitchen dreams into a reality.</p>
<a href="#="button">CONTACT US TODAY</a>
</div>
</div>
</div>
</div>
<?php endfor; ?>
</div>
</section>
.main_top{position:relative;padding:0;z-index:2}
.main_top .banner{background-repeat:no-repeat;background-position:center top;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;width:100%;max-width:100%;position:relative;height:66rem;z-index:1}
.main_top .banner:after{content:'';position:absolute;top:0;left:0;display:block;width:100%;height:100%;background:rgba(0,0,0,.2);z-index:-1}
.main_top .main_content{position:absolute;top:45%;left:50%;width:100%;display:block;z-index:4;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
.main_top .main_content .text{text-align:center;max-width:100%;display:block;position:relative;text-transform:uppercase}
.main_top .main_content .text h1,.main_top .main_content .text h2,.main_top .main_content .text h3,.main_top .main_content .text .h1{margin:0 0 1rem;font-size:5rem;color:#fff;line-height:1.2;display:block;font-weight:700;text-transform:uppercase;text-shadow:-.1rem 0 1.3rem #242424}
.main_top .main_content .text span,.main_top .main_content .text strong,.main_top .main_content .text p{font-size:1.6rem;line-height:1.3;font-weight:400;display:block;color:#fff;text-transform:uppercase;text-shadow:-.1rem 0 1.3rem #242424;margin:0 0 1rem}
.main_top .top_slider.hidden_slider{opacity:0;overflow:hidden;max-height:66rem}
.main_top .top_slider .slick-dots{bottom:5.5rem}
@media only screen and (max-width: 1300px) {
.main_top .banner{height:55rem}
.main_top .top_slider.hidden_slider{max-height:55rem}
.main_top .main_content .text h1,.main_top .main_content .text h2,.main_top .main_content .text h3,.main_top .main_content .text .p{font-size:4rem}
}
@media only screen and (max-width: 992px) {
.main_top .banner{height:45rem}
.main_top .top_slider.hidden_slider{max-height:45rem}
.main_top .top_slider .slick-dots{bottom:2.5rem}
}
@media only screen and (max-width: 767px) {
.main_top .main_content .text h1,.main_top .main_content .text h2,.main_top .main_content .text h3,.main_top .main_content .text .p{font-size:3.4rem}
}
@media only screen and (max-width: 550px) {
.main_top .main_content .text h1,.main_top .main_content .text h2,.main_top .main_content .text h3,.main_top .main_content .text .p{font-size:2.8rem}
.main_top .main_content .text span,.main_top .main_content .text strong,.main_top .main_content .text p{font-size:1.4rem}
.main_top .top_slider.hidden_slider{max-height:35rem}
.main_top .banner{height:35rem}
}
@media only screen and (max-width: 400px) {
.main_top .top_slider.hidden_slider{max-height:40rem}
.main_top .banner{height:40rem}
}
/* Vars */
$cb: #000000;
$white: #ffffff;
$textShadow: #242424;
.main_top {
position: relative;
padding: 0;
z-index: 2;
.banner {
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
width: 100%;
max-width: 100%;
position: relative;
height: 66rem;
z-index: 1;
&:after {
content: '';
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
background: rgba($cb, .2);
z-index: -1;
}
}
.main_content {
position: absolute;
top: 45%;
left: 50%;
width: 100%;
display: block;
z-index: 4;
transform: translate(-50%, -50%);
.text {
text-align: center;
max-width: 100%;
display: block;
position: relative;
text-transform: uppercase;
h1, h2, h3, .h1 {
margin: 0 0 1rem;
font-size: 5rem;
color: $white;
line-height: 1.2;
display: block;
font-weight: 700;
text-transform: uppercase;
text-shadow: -.1rem 0 1.3rem $textShadow;
}
span, strong, p {
font-size: 1.6rem;
line-height: 1.3;
font-weight: 400;
display: block;
color: $white;
text-transform: uppercase;
text-shadow: -.1rem 0 1.3rem $textShadow;
margin: 0 0 1rem;
}
}
}
.top_slider {
&.hidden_slider {
opacity: 0;
overflow: hidden;
max-height: 66rem;
}
.slick-dots {
bottom: 5.5rem;
}
}
}
@media only screen and (max-width: 1300px) {
.main_top .banner {height: 55rem;}
.main_top .top_slider.hidden_slider {max-height: 55rem;}
.main_top .main_content .text h1,
.main_top .main_content .text h2,
.main_top .main_content .text h3,
.main_top .main_content .text .p {font-size: 4rem;}
}
@media only screen and (max-width: 992px) {
.main_top .banner {height: 45rem;}
.main_top .top_slider.hidden_slider {max-height: 45rem;}
.main_top .top_slider .slick-dots {bottom: 2.5rem;}
}
@media only screen and (max-width: 767px) {
.main_top .main_content .text h1, .main_top .main_content .text h2, .main_top .main_content .text h3, .main_top .main_content .text .p {font-size: 3.4rem;}
}
@media only screen and (max-width: 550px) {
.main_top .main_content .text h1, .main_top .main_content .text h2, .main_top .main_content .text h3, .main_top .main_content .text .p {font-size: 2.8rem;}
.main_top .main_content .text span, .main_top .main_content .text strong, .main_top .main_content .text p {font-size: 1.4rem;}
.main_top .top_slider.hidden_slider {max-height: 35rem;}
.main_top .banner {height: 35rem;}
}
@media only screen and (max-width: 400px) {
.main_top .top_slider.hidden_slider {max-height: 40rem;}
.main_top .banner {height: 40rem;}
}
$('.top_slider').slick({
dots: true,
arrows: true,
infinite: true,
autoplay: true,
autoplaySpeed: 5000,
speed: 500,
fade: true,
cssEase: 'linear',
responsive: [
{
breakpoint: 1201,
settings: {
arrows: false
}
}
]
});