From ad4bbef65b1621a8f5ef609b459fb75084b909ac Mon Sep 17 00:00:00 2001
From: HsiangNianian <i@jyunko.cn>
Date: Sat, 7 Sep 2024 15:17:33 +0800
Subject: chore: move site dir

---
 src/views/index/index.vue | 82 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
 create mode 100644 src/views/index/index.vue

(limited to 'src/views/index/index.vue')

diff --git a/src/views/index/index.vue b/src/views/index/index.vue
new file mode 100644
index 0000000..003f752
--- /dev/null
+++ b/src/views/index/index.vue
@@ -0,0 +1,82 @@
+<script setup lang="ts">
+import Left from './Left.vue'
+import Right from './Right.vue'
+</script>
+
+<script lang="ts">
+export default {
+  data() {
+    return {
+      isplay: false
+    }
+  },
+  methods: {
+    PlayOn() {
+      this.isplay = true
+    }
+  }
+}
+</script>
+
+<template>
+  <header>
+    <img src="@/assets/Hydroroll-small.svg" 
+      alt="Vue logo" 
+      class="logo" 
+      width="125" height="125" />
+
+    <div class="wrapper">
+      <Left msg="饼在画了!" />
+    </div>
+  </header>
+
+  <main class="main">
+    <video loop=true preload="auto" muted="true" autoplay @canplay="PlayOn" v-show="isplay" >
+      <source src="@/assets/video/bg.mp4" type="video/mp4" />
+    </video>
+    <Right />
+  </main>
+</template>
+
+<style scoped>
+header {
+  display: flex;
+  flex-flow: column;
+  line-height: 1.5;
+}
+
+.logo {
+  display: block;
+  margin: 0 auto 2rem;
+}
+
+@media screen and (orientation:landscape) {
+  header {
+    place-items: center;
+    flex-flow: row;
+    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>
-- 
cgit v1.2.3-70-g09d2

