From a1a20e51d6c9efea406cf18facf707ea50e3d18c Mon Sep 17 00:00:00 2001
From: Ntkskwk <natsukawa247@outlook.com>
Date: Tue, 3 Sep 2024 07:41:34 +0800
Subject: refactor: Optimize the structure of the code

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

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

diff --git a/site/src/views/index/index.vue b/site/src/views/index/index.vue
new file mode 100644
index 0000000..ed34b4f
--- /dev/null
+++ b/site/src/views/index/index.vue
@@ -0,0 +1,47 @@
+<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">
+    <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;
+  }
+}
+</style>
-- 
cgit v1.2.3-70-g09d2

