Files
banben/frontend/src/views/NotFound.vue
T

64 lines
1.3 KiB
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">
import { useRouter } from 'vue-router'
const router = useRouter()
</script>
<template>
<div class="not-found">
<div class="seal" aria-hidden="true">未录</div>
<p class="code">404</p>
<h1>页面不在馆藏目录中</h1>
<p class="sub">您访问的地址没有对应页面,可返回首页继续检索。</p>
<el-button type="primary" @click="router.push('/')">返回首页</el-button>
</div>
</template>
<style scoped lang="scss">
.not-found {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px;
background:
radial-gradient(420px 180px at 50% 0%, rgba(184, 134, 45, 0.08), transparent 70%),
var(--page-bg);
text-align: center;
}
.seal {
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 12px;
border: 2px solid var(--brand-gold);
color: var(--brand-gold-deep);
font-family: var(--font-kai);
letter-spacing: 2px;
transform: rotate(-8deg);
}
.code {
margin: 0;
font-family: var(--font-serif);
font-size: 72px;
line-height: 1;
letter-spacing: 6px;
color: var(--brand-primary-deep);
}
h1 {
margin: 8px 0 8px;
font-size: 22px;
letter-spacing: 2px;
}
.sub {
margin: 0 0 22px;
color: var(--text-muted);
}
</style>