opinions section finished
This commit is contained in:
1 parent
cc230a89e4
commit
36af371d22
6 files changed
+126
-11
No files matched your search
@@ -323,7 +323,7 @@ body {
|
||||
width: 75%;
|
||||
margin: 0 auto;
|
||||
box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.1);
|
||||
background-color: #fff;
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
border-radius: 3px;
|
||||
padding: 6rem;
|
||||
padding-left: 9rem;
|
||||
@@ -339,11 +339,47 @@ body {
|
||||
shape-outside: circle(50% at 50% 50%);
|
||||
-webkit-clip-path: circle(50% at 50% 50%);
|
||||
clip-path: circle(50% at 50% 50%);
|
||||
transform: translateX(-3rem) skewX(12deg); }
|
||||
transform: translateX(-3rem) skewX(12deg);
|
||||
position: relative; }
|
||||
.story__img {
|
||||
height: 100%; }
|
||||
height: 100%;
|
||||
transform: translateX(-4rem) scale(1.4);
|
||||
backface-visibility: hidden;
|
||||
transition: all .5s; }
|
||||
.story__text {
|
||||
transform: skewX(12deg); }
|
||||
.story__caption {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 20%);
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
font-size: 1.7rem;
|
||||
text-align: center;
|
||||
opacity: 0;
|
||||
transition: all .5s;
|
||||
backface-visibility: hidden; }
|
||||
.story:hover .story__caption {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -50%); }
|
||||
.story:hover .story__img {
|
||||
transform: translateX(-4rem) scale(1);
|
||||
filter: blur(3px) brightness(80%); }
|
||||
|
||||
.bg-video {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
opacity: .15;
|
||||
overflow: hidden; }
|
||||
.bg-video__content {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover; }
|
||||
|
||||
.header {
|
||||
height: 95vh;
|
||||
@@ -421,5 +457,5 @@ body {
|
||||
margin-top: -10rem; }
|
||||
|
||||
.section-stories {
|
||||
padding: 15rem 0;
|
||||
background-color: #f7f7f7; }
|
||||
position: relative;
|
||||
padding: 15rem 0; }
|
||||
@@ -237,6 +237,13 @@
|
||||
</section>
|
||||
|
||||
<section class="section-stories">
|
||||
<div class="bg-video">
|
||||
<video class="bg-video__content" autoplay muted loop>
|
||||
<source src="img/video.mp4" type="video/mp4" />
|
||||
<source src="img/video.webm" type="video/webm" />
|
||||
Your browser is not supported!
|
||||
</video>
|
||||
</div>
|
||||
<div class="u-center-text u-margin-bottom-big">
|
||||
<h2 class="heading--secondary">We make people genuinely happy</h2>
|
||||
</div>
|
||||
@@ -249,6 +256,7 @@
|
||||
alt="Person on a tour"
|
||||
class="story__img"
|
||||
/>
|
||||
<figcaption class="story__caption">Mary Smith</figcaption>
|
||||
</figure>
|
||||
<div class="story__text"></div>
|
||||
<h3 class="heading--terciary u-margin-bottom-small">
|
||||
@@ -263,6 +271,34 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="story">
|
||||
<figure class="story__shape">
|
||||
<img
|
||||
src="img/nat-9.jpg"
|
||||
alt="Person on a tour"
|
||||
class="story__img"
|
||||
/>
|
||||
<figcaption class="story__caption">Jack Wilson</figcaption>
|
||||
</figure>
|
||||
<div class="story__text"></div>
|
||||
<h3 class="heading--terciary u-margin-bottom-small">
|
||||
WOW! My life is completly different now
|
||||
</h3>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, qui minim labore adipisicing minim
|
||||
sint cillum sint consectetur cupidatat. Lorem ipsum dolor sit
|
||||
amet, qui minim labore adipisicing minim sint cillum sint
|
||||
consectetur cupidatat. Lorem ipsum dolor sit amet, qui minim
|
||||
labore adipisicing minim sint cillum sint consectetur cupidatat.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="u-center-text u-margin-top-huge">
|
||||
<a href="#" class="btn-text">Read all stories →</a>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
.bg-video {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
opacity: .15;
|
||||
overflow: hidden;
|
||||
|
||||
&__content {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
width: 75%;
|
||||
margin: 0 auto;
|
||||
box-shadow: 0 3rem 6rem rgba($color-black, 0.1);
|
||||
background-color: $color-white;
|
||||
background-color: rgba($color-white, .6);
|
||||
border-radius: 3px;
|
||||
padding: 6rem;
|
||||
padding-left: 9rem;
|
||||
@@ -24,13 +24,41 @@
|
||||
-webkit-clip-path: circle(50% at 50% 50%);
|
||||
clip-path: circle(50% at 50% 50%);
|
||||
transform: translateX(-3rem) skewX(12deg);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&__img {
|
||||
height: 100%;
|
||||
transform: translateX(-4rem) scale(1.4);
|
||||
backface-visibility: hidden;
|
||||
transition: all .5s;
|
||||
}
|
||||
|
||||
&__text {
|
||||
transform: skewX(12deg);
|
||||
}
|
||||
|
||||
&__caption {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 20%);
|
||||
color: $color-white;
|
||||
text-transform: uppercase;
|
||||
font-size: 1.7rem;
|
||||
text-align: center;
|
||||
opacity: 0;
|
||||
transition: all .5s;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
&:hover &__caption {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
&:hover &__img {
|
||||
transform: translateX(-4rem) scale(1);
|
||||
filter: blur(3px) brightness(80%);
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
@import "components/feature-box";
|
||||
@import "components/card";
|
||||
@import "components/story";
|
||||
@import "components/bg-video";
|
||||
|
||||
@import "layout/header";
|
||||
@import "layout/grid";
|
||||
|
||||
@@ -6,11 +6,9 @@
|
||||
|
||||
.section-features {
|
||||
padding: 20rem 0;
|
||||
background-image: linear-gradient(
|
||||
to right bottom,
|
||||
background-image: linear-gradient(to right bottom,
|
||||
rgba($color-primary-light, 0.801),
|
||||
rgba($color-primary-dark, 0.808)
|
||||
),
|
||||
rgba($color-primary-dark, 0.808)),
|
||||
url("../img/nat-4.jpg");
|
||||
background-size: cover;
|
||||
|
||||
@@ -29,6 +27,6 @@
|
||||
}
|
||||
|
||||
.section-stories {
|
||||
position: relative;
|
||||
padding: 15rem 0;
|
||||
background-color: $color-grey-light-1;
|
||||
}
|
||||
Reference in new issue
Block a user