1
0
Fork 0

Center video section positioning

master
Emil Miler 2 years ago
parent cbda8a2291
commit 6b588f5a7a

@ -30,6 +30,7 @@
</header>
<section class="wrap">
<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>
@ -45,6 +46,7 @@
<img src="/static/vid/samozivitel.jpg" alt="Samoživitel" data-video="/static/vid/samozivitel.mp4">
</div>
<a href="" class="button">Vyhledat pomoc</a>
</div>
</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 {
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 {
grid-template-columns: 2fr 3fr;
}
.text {
text-align: left;

Loading…
Cancel
Save