add video to home page

This commit is contained in:
samaradel 2023-08-23 14:49:48 +03:00
parent 5c691b3085
commit 018b4d0aaf
5 changed files with 53 additions and 13 deletions

View File

@ -9,19 +9,7 @@ weight: 1
<!-- section 1 -->
{% row(style="center" margin="tight" bgPath="img/freeflow_header_home4.jpeg" bgStyle="full") %}
<div class="text-white">
# FreeFlow Nation
<br>
A complementary digital "nation" which flows freely across physical borders welcoming as digital citizens all those who dream of a better world and are ready to act.
</div>
{% end %}
{{ video(video="./video/evening.mp4", autoplay=true, class="vimeo") }}
<div class="container mx-auto">

Binary file not shown.

View File

@ -388,3 +388,36 @@ header #menu button a{
@apply
px-0
}
.video-wrapper {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
z-index: 9;
}
video {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
}
.layer {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
position: absolute;
height: 100%;
width: 100%;
top: 0;
right: 0;
z-index: 40;
background-color: black;
opacity: .5;
}
.content {
background: rgba(0, 0, 0, 0.5);
color: #f1f1f1;
}

BIN
static/video/evening.mp4 Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
<div class="video-wrapper">
<video
playsinline
autoplay
muted
loop
>
<source src="{{video}}" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="layer">
<div class="content max-w-xl">
<h1>FreeFlow Nation</h1>
<p>
A complementary digital "nation" which flows freely across physical borders welcoming as digital citizens all those who dream of a better world and are ready to act.
</p>
</div>
</div>
</div>