1
0
Fork 0

Center video section positioning

master
Emil Miler 2 years ago
parent cbda8a2291
commit 6b588f5a7a

@ -30,21 +30,23 @@
</header>
<section class="wrap">
<div class="text">
<div class="title">To, co se děje u&nbsp;nich doma, nevidíte&nbsp;&hellip;</div>
<p>&hellip;&nbsp;ale mají kolem sebe jiné svědky, kteří to bohužel vidí.</p>
</div>
<div class="player">
<video>
<source src="/static/vid/pestouni.mp4" type="video/mp4">
</video>
</div>
<div class="video-list">
<img src="/static/vid/pestouni.jpg" alt="Pěstouni" data-video="/static/vid/pestouni.mp4" class="active">
<img src="/static/vid/tyrani.jpg" alt="Týrání" data-video="/static/tyrani.mp4">
<img src="/static/vid/samozivitel.jpg" alt="Samoživitel" data-video="/static/vid/samozivitel.mp4">
<div class="grid">
<div class="text">
<div class="title">To, co se děje u&nbsp;nich doma, nevidíte&nbsp;&hellip;</div>
<p>&hellip;&nbsp;ale mají kolem sebe jiné svědky, kteří to bohužel vidí.</p>
</div>
<div class="player">
<video>
<source src="/static/vid/pestouni.mp4" type="video/mp4">
</video>
</div>
<div class="video-list">
<img src="/static/vid/pestouni.jpg" alt="Pěstouni" data-video="/static/vid/pestouni.mp4" class="active">
<img src="/static/vid/tyrani.jpg" alt="Týrání" data-video="/static/tyrani.mp4">
<img src="/static/vid/samozivitel.jpg" alt="Samoživitel" data-video="/static/vid/samozivitel.mp4">
</div>
<a href="" class="button">Vyhledat pomoc</a>
</div>
<a href="" class="button">Vyhledat pomoc</a>
</section>
</div>
<section class="wrap facts">

@ -30,7 +30,7 @@ body {
.wrap {
max-width: 90rem;
margin: 0 auto;
padding: 0 1rem;
padding: 0 2rem;
}
.narrow {
@ -72,6 +72,8 @@ body.noscroll {
.intro {
min-height: 100vh;
display: flex;
flex-direction: column;
header {
position: relative;
@ -157,11 +159,18 @@ body.noscroll {
}
section {
display: grid;
grid-template-columns: 1fr;
grid-column-gap: 2rem;
grid-row-gap: 2rem;
align-items: center;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
.grid {
display: grid;
grid-template-columns: 1fr;
grid-column-gap: 2rem;
grid-row-gap: 2rem;
align-items: center;
}
.text {
max-width: 25rem;
@ -492,7 +501,10 @@ footer {
@media only screen and (min-width: $size-mobile) {
.intro section {
grid-template-columns: 2fr 3fr;
.grid {
grid-template-columns: 2fr 3fr;
}
.text {
text-align: left;

Loading…
Cancel
Save