This commit is contained in:
Lan
2024-09-25 19:09:53 +08:00
commit 075ffb7002
24 changed files with 4182 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
<script setup lang="ts">
import { RouterView } from 'vue-router'
</script>
<template>
<div class="app-container">
<transition name="page" mode="out-in">
<RouterView />
</transition>
</div>
</template>
<style>
.app-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.page-enter-active,
.page-leave-active {
transition: all 0.5s ease-out;
}
.page-enter-from {
opacity: 0;
transform: translateY(20px);
}
.page-leave-to {
opacity: 0;
transform: translateY(-20px);
}
body {
margin: 0;
padding: 0;
font-family: 'Inter', sans-serif;
@apply bg-gray-900 text-white;
}
/* 自定义滚动条样式 */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
@apply bg-gray-800;
}
::-webkit-scrollbar-thumb {
@apply bg-indigo-600 rounded-full;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-indigo-500;
}
</style>