Hongmu Notes
Home Language Notes Found a really nice 404 page!
Language Notes CSS JavaScript

Found a really nice 404 page!

Found a really nice 404 page!

Display effect.

20251105235512492-image

Code:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面未找到 - 正在跳转</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            overflow: hidden;
        }
        
        .container {
            text-align: center;
            max-width: 600px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }
        
        .container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            z-index: -1;
        }
        
        .error-code {
            font-size: 120px;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 20px;
            text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
            color: #fff;
        }
        
        .error-message {
            font-size: 24px;
            margin-bottom: 30px;
            font-weight: 300;
        }
        
        .redirect-info {
            font-size: 16px;
            margin-bottom: 30px;
            opacity: 0.8;
        }
        
        .home-button {
            display: inline-block;
            padding: 12px 30px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(5px);
        }
        
        .home-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .animation-container {
            margin: 30px 0;
        }
        
        .loader {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        
        .floating {
            animation: floating 3s ease-in-out infinite;
        }
        
        @keyframes floating {
            0% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-10px);
            }
            100% {
                transform: translateY(0px);
            }
        }
        
        @media (max-width: 600px) {
            .container {
                padding: 20px;
                margin: 20px;
            }
            
            .error-code {
                font-size: 80px;
            }
            
            .error-message {
                font-size: 20px;
            }
        }
    </style>
</head>
<body>
    <div class="container floating">
        <div class="error-code">404</div>
        <div class="error-message">抱歉,您访问的页面不存在</div>
        
        <div class="animation-container">
            <div class="loader"></div>
        </div>
        
        <div class="redirect-info">正在为您跳转到首页...</div>
        <a href="/" class="home-button">立即前往首页</a>
    </div>

    <script>
        // 立即跳转到首页
        window.location.href = "/";
        
        // 如果跳转失败,3秒后再次尝试
        setTimeout(function() {
            if (window.location.pathname !== '/') {
                window.location.href = "/";
            }
        }, 30000);
    </script>
</body>
</html>
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

css positioning

css positioning Language Notes CSS

Syntax: position: static | relative | absolute | fixed | center | page | sticky Default value: static Applies to: All elements except the display attribute defined as table-column-group | table-column Inheritance: No Animation: No...
👁 119

Recommended reading

Responsive Tea Set E-commerce Corporate Website Template 1093

Responsive Tea Set E-commerce Corporate Website Template 1093 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for foreign trade enterprises specializing in tea and tea ware products. Its classical yet international design style effectively showcases tea products, tea ceremony culture, export advantages, and global market presence, helping tea brands convey their cultural heritage to international audiences. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (Ey...
👁 38
Responsive Nursery and Landscaping Company Template 0487

Responsive Nursery and Landscaping Company Template 0487 Practical Collection Yiyou template

An eyouCMS responsive website template designed specifically for nursery and landscaping companies. Its natural and professional design style is ideal for showcasing nursery products, landscaping projects, greenery design, and maintenance services. This template helps landscaping businesses showcase their expertise online and attract potential clients. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for YIYOU CMS | YIYOU CMS...
👁 46
(Adaptive Mobile Version) Reducer Website Template – Reducer Equipment Website Source Code Download – 1074

(Adaptive Mobile Version) Reducer Website Template – Reducer Equipment Website Source Code Download – 1074 Practical Collection pbootcms Template

A PbootCMS website template for gearboxes and reduction equipment, compatible with both PC and WAP devices. The professional industrial design is ideal for showcasing gearbox products, technical specifications, and industrial applications. It enables transmission equipment manufacturers to showcase their products online and attract industrial manufacturing customers. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn | Related Articles...
👁 33
(PC + WAP) Lifestyle Information Encyclopedia Portal Website – pbootCMS Template; Pink Lifestyle Portal Website Source Code Download – 0502

(PC + WAP) Lifestyle Information Encyclopedia Portal Website – pbootCMS Template; Pink Lifestyle Portal Website Source Code Download – 0502 Practical Collection pbootcms Template

A pink-themed lifestyle information and encyclopedia portal PbootCMS website template, compatible with both PC and WAP devices. Its fresh and sweet design makes it ideal for female-oriented or lifestyle service content platforms. This template helps information portals or individual bloggers create a rich, user-friendly information-sharing platform. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password:...
👁 59
Free download of ChatGPT-based PHP web application source code! Setup and customization tutorial.

Free download of ChatGPT-based PHP web application source code! Setup and customization tutorial. Practical Collection Website source code

ChatGPT is a conversational engine powered by Natural Language Generation (NLG) and cognitive technologies (AI), suitable for implementing a wide range of use cases spanning from intelligent dialogue to rich-media technologies (text/voice/video). Supported platforms: Facebook, Microsoft, Google, iOS, and Android. Developers can use it to build automated, engaging, and context-aware chatbots...
👁 333
Responsive e-commerce website template for children's toy manufacturers – 1094

Responsive e-commerce website template for children's toy manufacturers – 1094 Practical Collection Yiyou template

An eyouCMS responsive website template designed for foreign trade enterprises specializing in children's products and toys. Its vibrant, international design style effectively showcases toy products, children's goods, export advantages, and global market presence, helping toy brands enhance their brand image in international markets. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (E...
👁 48