Skip to content

Commit

Permalink
Add video background for support box (#46)
Browse files Browse the repository at this point in the history
Added video from another charity donations as a background of support
box of the home page.
  • Loading branch information
vokomarov authored Aug 4, 2024
2 parents 2a6cf40 + a773e65 commit 1496699
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
</div>

<div class="jumbotron support">
<video class="background-video" autoplay loop muted poster="/img/podarunok.jpg">
<source src="/img/bg.webm" type="video/webm">
</video>
<h3>
<span>
{{ $t('home.support.header') }}
Expand Down Expand Up @@ -149,6 +152,13 @@ h3 {
@apply -z-10 absolute left-0 top-0 h-full w-full bg-bottom bg-no-repeat bg-cover;
}
.background-video {
object-fit: cover;
position: fixed;
@apply -z-10 absolute left-0 top-0 h-full w-full bg-bottom bg-no-repeat bg-cover;
}
}
.welcome {
Expand Down
Binary file added public/img/bg.webm
Binary file not shown.

0 comments on commit 1496699

Please sign in to comment.