229 lines
4.3 KiB
Vue
229 lines
4.3 KiB
Vue
<template>
|
||
<div class="not-found-container">
|
||
<div class="tech-decoration">
|
||
<div class="tech-circle"></div>
|
||
<div class="tech-circle"></div>
|
||
<div class="tech-circle"></div>
|
||
</div>
|
||
|
||
<div class="not-found-content">
|
||
<div class="error-code">404</div>
|
||
<div class="error-title">页面未找到</div>
|
||
<div class="error-description">抱歉,您访问的页面不存在或已被移除</div>
|
||
|
||
<div class="action-buttons">
|
||
<a-button type="primary" size="large" @click="goBack">
|
||
<template #icon>
|
||
<ArrowLeftOutlined />
|
||
</template>
|
||
返回上一页
|
||
</a-button>
|
||
<a-button size="large" @click="goHome">
|
||
<template #icon>
|
||
<HomeOutlined />
|
||
</template>
|
||
返回首页
|
||
</a-button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { useRouter } from 'vue-router'
|
||
import { ArrowLeftOutlined, HomeOutlined } from '@ant-design/icons-vue'
|
||
import '@/assets/style/auth.scss'
|
||
|
||
const router = useRouter()
|
||
|
||
// Go back to previous page
|
||
const goBack = () => {
|
||
router.back()
|
||
}
|
||
|
||
// Go to home page
|
||
const goHome = () => {
|
||
router.push('/')
|
||
}
|
||
</script>
|
||
|
||
<style scoped lang="scss">
|
||
.not-found-container {
|
||
width: 100%;
|
||
min-height: 100vh;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
|
||
position: relative;
|
||
overflow: hidden;
|
||
|
||
.tech-decoration {
|
||
position: absolute;
|
||
width: 100%;
|
||
height: 100%;
|
||
top: 0;
|
||
left: 0;
|
||
pointer-events: none;
|
||
overflow: hidden;
|
||
|
||
.tech-circle {
|
||
position: absolute;
|
||
border: 2px solid rgba(255, 107, 53, 0.1);
|
||
border-radius: 50%;
|
||
animation: pulse 4s ease-in-out infinite;
|
||
}
|
||
|
||
.tech-circle:nth-child(1) {
|
||
width: 300px;
|
||
height: 300px;
|
||
top: -150px;
|
||
left: -150px;
|
||
animation-delay: 0s;
|
||
}
|
||
|
||
.tech-circle:nth-child(2) {
|
||
width: 200px;
|
||
height: 200px;
|
||
bottom: -100px;
|
||
right: -100px;
|
||
animation-delay: 1s;
|
||
}
|
||
|
||
.tech-circle:nth-child(3) {
|
||
width: 150px;
|
||
height: 150px;
|
||
bottom: 20%;
|
||
left: -75px;
|
||
animation-delay: 2s;
|
||
}
|
||
}
|
||
}
|
||
|
||
@keyframes pulse {
|
||
0%,
|
||
100% {
|
||
opacity: 0.3;
|
||
transform: scale(1);
|
||
}
|
||
|
||
50% {
|
||
opacity: 0.6;
|
||
transform: scale(1.05);
|
||
}
|
||
}
|
||
|
||
.not-found-content {
|
||
text-align: center;
|
||
padding: 40px;
|
||
position: relative;
|
||
z-index: 1;
|
||
|
||
.error-code {
|
||
font-size: 120px;
|
||
font-weight: 700;
|
||
background: linear-gradient(135deg, var(--auth-primary-dark), var(--auth-primary));
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
margin-bottom: 20px;
|
||
line-height: 1;
|
||
animation: float 3s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes float {
|
||
0%,
|
||
100% {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
50% {
|
||
transform: translateY(-10px);
|
||
}
|
||
}
|
||
|
||
.error-title {
|
||
font-size: 32px;
|
||
font-weight: 600;
|
||
color: var(--text-primary);
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.error-description {
|
||
font-size: 16px;
|
||
color: var(--text-secondary);
|
||
margin-bottom: 40px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.action-buttons {
|
||
display: flex;
|
||
gap: 16px;
|
||
justify-content: center;
|
||
flex-wrap: wrap;
|
||
|
||
.ant-btn {
|
||
height: 48px;
|
||
padding: 0 32px;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
border-radius: 12px;
|
||
|
||
&.ant-btn-primary {
|
||
background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
|
||
border: none;
|
||
box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
|
||
transition: all 0.3s ease;
|
||
|
||
&:hover {
|
||
background: linear-gradient(135deg, var(--auth-primary-light), var(--auth-primary));
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 12px 32px rgba(255, 107, 53, 0.45);
|
||
}
|
||
}
|
||
|
||
&:not(.ant-btn-primary) {
|
||
background: rgba(255, 255, 255, 0.9);
|
||
border: 2px solid var(--border-color);
|
||
color: var(--text-secondary);
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
||
transition: all 0.3s ease;
|
||
|
||
&:hover {
|
||
border-color: var(--auth-primary);
|
||
color: var(--auth-primary);
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
// Responsive design
|
||
@media (max-width: 768px) {
|
||
.not-found-content {
|
||
padding: 20px;
|
||
|
||
.error-code {
|
||
font-size: 80px;
|
||
}
|
||
|
||
.error-title {
|
||
font-size: 24px;
|
||
}
|
||
|
||
.error-description {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.action-buttons {
|
||
.ant-btn {
|
||
width: 100%;
|
||
max-width: 200px;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
</style>
|