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>

 

posted @ 2026-04-20 22:54  木子欢儿  阅读(6)  评论(0)    收藏  举报