Skip to content

Commit

Permalink
Add background video
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer committed Dec 16, 2024
1 parent d249e70 commit 6fb9e20
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN yarn install \
&& yarn generate

# Stage 2
FROM nginx:1.23.2-alpine
FROM nginx:1.27-alpine

COPY --from=build /app/dist /app
COPY ./docker/nginx/* /etc/nginx/conf.d/
Expand Down
27 changes: 27 additions & 0 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<v-container>
<div class="background-video-wrapper">
<video class="background-video" muted autoplay playsinline loop src="/background.mp4" />
<div class="overlay"></div>
</div>

<div class="text-center">
<div class="mobile-scale">
<h1 class="mt-12">Ori and the Will of the Wisps</h1>
Expand Down Expand Up @@ -124,4 +129,26 @@
.max-900 {
max-width: 900px;
}
.background-video-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: -10;
.background-video {
width: 100%;
height: 100%;
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}
.overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}
</style>
Binary file added static/background.mp4
Binary file not shown.

0 comments on commit 6fb9e20

Please sign in to comment.