Files
vue3-element-admin/src/views/error/404.vue

65 lines
1.6 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.
<template>
<div class="wh-full mx-auto flex-center flex-col lg:flex-row">
<img class="min-w-[23.4375rem] sm:w-150" src="@/assets/images/404.svg" alt="404" />
<div class="w-75">
<div class="oops mb-5 text-[2rem] font-bold">OOPS</div>
<div class="info text-gray mb-7 text-[0.8125rem]">
该页面无法访问
<el-link type="primary" href="https://www.youlai.tech.com" target="_blank">
有来开源官网
</el-link>
</div>
<div class="headline mb-2.5 text-xl font-bold text-[#222]">抱歉您访问的页面不存在</div>
<div class="info text-gray mb-7 text-[0.8125rem]">
请确认您输入的网址是否正确或者点击下方按钮返回首页
</div>
<el-button round type="primary" class="btn h-9 w-28 mb-10" @click="back">返回首页</el-button>
</div>
</div>
</template>
<script setup lang="ts">
defineOptions({ name: "Page404" });
const router = useRouter();
const back = () => router.push("/");
</script>
<style lang="scss" scoped>
@mixin slide-up-animation($delay: 0s) {
opacity: 0;
animation-name: slideUp;
animation-duration: 0.5s;
animation-delay: $delay;
animation-fill-mode: forwards;
}
@keyframes slideUp {
0% {
opacity: 0;
transform: translateY(60px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.oops {
color: var(--el-color-primary);
@include slide-up-animation(0s);
}
.headline {
@include slide-up-animation(0.1s);
}
.info {
@include slide-up-animation(0.2s);
}
.btn {
@include slide-up-animation(0.3s);
}
</style>