aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/site/src/views
diff options
context:
space:
mode:
authorNtkskwk <natsukawa247@outlook.com>2024-09-03 08:28:40 +0800
committerNtkskwk <natsukawa247@outlook.com>2024-09-03 08:28:40 +0800
commit731d318b4d5f279ea58f0688353a011a41532f42 (patch)
tree0591290dde6c02e8a3a1890a74d40e07ad77852f /site/src/views
parent7b6a0d472c88f55e6f31aa633099f96cd28be8b5 (diff)
downloadHydroRoll-731d318b4d5f279ea58f0688353a011a41532f42.tar.gz
HydroRoll-731d318b4d5f279ea58f0688353a011a41532f42.zip
feat: add video background to index page
Diffstat (limited to 'site/src/views')
-rw-r--r--site/src/views/index/index.vue13
1 files changed, 13 insertions, 0 deletions
diff --git a/site/src/views/index/index.vue b/site/src/views/index/index.vue
index ed34b4f..edba96f 100644
--- a/site/src/views/index/index.vue
+++ b/site/src/views/index/index.vue
@@ -13,6 +13,7 @@ import Right from './Right.vue'
</header>
<main class="main">
+ <video src="@/assets/video/bg.mp4" loop=true autoplay=true></video>
<Right />
</main>
</template>
@@ -44,4 +45,16 @@ header {
flex-wrap: wrap;
}
}
+
+video{
+ position: fixed;
+ right: 0;
+ bottom: 0;
+ min-width: 100%;
+ min-height: 100%;
+ width: auto;
+ height: auto;
+ z-index: -100;
+ filter: grayscale(20%);
+}
</style>