【error.html】500界面美化
This commit is contained in:
+43
-19
@@ -1,23 +1,47 @@
|
||||
<!-- 写一个错误页面 -->
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>404</title>
|
||||
<link rel="stylesheet" href="/static/css/backend-plugin.min.css">
|
||||
<link rel="stylesheet" href="/static/css/backend.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Error Page</title>
|
||||
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
||||
<style>
|
||||
body {
|
||||
background-color: #f8f9fa;
|
||||
color: #343a40;
|
||||
}
|
||||
.container {
|
||||
margin-top: 10%;
|
||||
}
|
||||
.error-image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.error-msg {
|
||||
font-size: 1.5rem;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.btn-custom {
|
||||
background-color: #6c757d;
|
||||
color: #fff;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.btn-custom:hover {
|
||||
background-color: #5a6268;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class=" ">
|
||||
<div class="wrapper">
|
||||
<div class="container">
|
||||
<div class="row no-gutters height-self-center">
|
||||
<div class="col-sm-12 text-center align-self-center">
|
||||
<div class="iq-error position-relative">
|
||||
这是404页面
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<body>
|
||||
<div class="container text-center">
|
||||
<img src="/static/picture/maintenance.png" class="error-image" alt="Maintenance Image">
|
||||
<div class="error-msg">{{ errorMsg }}</div>
|
||||
<p>Please go back, check the issue, and fix it.</p>
|
||||
<a href="/user/login" class="btn btn-custom">Return to Login Page</a>
|
||||
</div>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user