UnisKB/ui/src/views/404/index.vue

50 lines
1.2 KiB
Vue
Raw Normal View History

2023-12-12 09:34:05 +00:00
<template>
<el-row class="not-found-container">
2024-02-28 02:31:10 +00:00
<el-col class="img" :xs="0" :sm="0" :md="12" :lg="12" :xl="12"> </el-col>
<el-col class="message-container" :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
2023-12-12 09:34:05 +00:00
<div class="title">404</div>
<div class="message">很抱歉无法访问应用</div>
<!-- <div class="operate"><el-button type="primary" @click="router.push('/')"></el-button></div> -->
</el-col>
</el-row>
2023-09-15 09:40:35 +00:00
</template>
<script setup lang="ts">
2023-12-12 09:34:05 +00:00
import { useRouter } from 'vue-router'
2023-09-15 09:40:35 +00:00
const router = useRouter()
</script>
<style lang="scss" scoped>
.not-found-container {
2023-12-12 09:34:05 +00:00
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
.img {
background-image: url('@/assets/404.png');
background-size: 100% 100%;
width: 50%;
height: 100%;
}
.message-container {
color: var(--app-text-color);
.title {
font-size: 50px;
font-weight: 500;
2023-09-15 09:40:35 +00:00
}
2023-12-12 09:34:05 +00:00
.message {
font-size: 20px;
margin: 30px 0 20px 0;
2023-09-15 09:40:35 +00:00
}
2023-12-12 09:34:05 +00:00
}
2023-09-15 09:40:35 +00:00
}
2024-02-28 02:31:10 +00:00
@media only screen and (max-width: 1000px) {
.not-found-container .message-container {
text-align: center;
}
}
2023-12-12 09:34:05 +00:00
</style>