Files
Cloud-Blog/app/layouts/default.vue
2025-12-20 18:46:45 +08:00

35 lines
946 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
const route = useRoute();
</script>
<template>
<div class="gd-container font-spacegrotesk relative">
<MainHeader />
<main>
<slot />
</main>
<footer>
<MainFooter />
</footer>
<!-- 全局遮罩 -->
<div
class="absolute inset-0 pointer-events-none -z-10 transition-all duration-700 ease-in-out"
:style="route.path === '/' ? { clipPath: 'inset(100vh 0 0 0)' } : {}">
<!-- 基础渐变层 -->
<div
class="absolute inset-0 bg-gradient-to-b from-white/70 via-white/50 to-white/80 dark:from-slate-900/80 dark:via-slate-900/70 dark:to-slate-900/90 backdrop-blur-xl"></div>
<!-- 纹理层增加质感 -->
<div class="absolute inset-0 opacity-[0.03] dark:opacity-[0.05] mix-blend-overlay"></div>
</div>
</div>
</template>
<style scoped>
.gd-container {
display: grid;
grid-template-rows: 1fr auto;
min-height: 100vh;
}
</style>