aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/site/src/views/index/index.vue
diff options
context:
space:
mode:
Diffstat (limited to 'site/src/views/index/index.vue')
-rw-r--r--site/src/views/index/index.vue60
1 files changed, 60 insertions, 0 deletions
diff --git a/site/src/views/index/index.vue b/site/src/views/index/index.vue
new file mode 100644
index 0000000..edba96f
--- /dev/null
+++ b/site/src/views/index/index.vue
@@ -0,0 +1,60 @@
+<script setup lang="ts">
+import Left from './Left.vue'
+import Right from './Right.vue'
+</script>
+
+<template>
+ <header>
+ <img alt="Vue logo" class="logo" src="@/assets/Hydroroll-small.svg" width="125" height="125" />
+
+ <div class="wrapper">
+ <Left msg="饼在画了!" />
+ </div>
+ </header>
+
+ <main class="main">
+ <video src="@/assets/video/bg.mp4" loop=true autoplay=true></video>
+ <Right />
+ </main>
+</template>
+
+<style scoped>
+header {
+ display: flex;
+ line-height: 1.5;
+}
+
+.logo {
+ display: block;
+ margin: 0 auto 2rem;
+}
+
+@media screen and (orientation:landscape) {
+ header {
+ place-items: center;
+ padding-right: calc(var(--section-gap) / 2);
+ }
+
+ .logo {
+ margin: 0 2rem 0 0;
+ }
+
+ header .wrapper {
+ display: flex;
+ place-items: flex-start;
+ 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>