kangle 自定义404页面
nano /vhs/kangle/www/index.html
修改
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Page Not Found</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f7f9fb;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #333;
}
.container {
text-align: center;
}
h1 {
font-size: 8rem;
margin: 0;
font-weight: 200;
color: #e0e0e0;
line-height: 1;
}
h2 {
font-size: 1.2rem;
font-weight: 400;
margin: 15px 0 30px;
color: #777;
letter-spacing: 1px;
text-transform: uppercase;
}
.btn {
display: inline-block;
padding: 12px 30px;
background-color: #4a90e2;
color: white;
text-decoration: none;
border-radius: 4px;
transition: all 0.3s ease;
font-size: 0.9rem;
font-weight: 500;
}
.btn:hover {
background-color: #357abd;
box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}
.divider {
width: 40px;
height: 2px;
background-color: #4a90e2;
margin: 0 auto;
}
</style>
</head>
<body>
<div class="container">
<h1>404</h1>
<div class="divider"></div>
<h2>Page Not Found</h2>
<p style="color: #999; margin-bottom: 30px;">The link you followed may be broken, <br>or the page may have been removed.</p>
<a href="/" class="btn">BACK TO HOME</a>
</div>
</body>
</html>
本文来自博客园,作者:木子欢儿,转载请注明原文链接:https://www.cnblogs.com/HGNET/p/19897656

浙公网安备 33010602011771号