Skip to content

Commit

Permalink
Update 404.html
Browse files Browse the repository at this point in the history
  • Loading branch information
99Mr-Z authored Aug 14, 2024
1 parent a3f377a commit bd4dfb4
Showing 1 changed file with 43 additions and 9 deletions.
52 changes: 43 additions & 9 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,64 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Page Not Found</title>
<style>
/* 页面背景设置 */
body {
text-align: center;
font-family: Arial, sans-serif;
color: #333;
background-color: #f4f4f4;
margin-top: 50px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #ffffff;
background-image: url('https://img.3dmgame.com/uploads/images/news/20210831/1630395227_822046.jpg'); /* 替换为你的背景图片链接 */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}

/* 标题样式 */
h1 {
font-size: 100px;
margin-bottom: 20px;
font-size: 120px;
margin: 0;
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* 添加阴影效果 */
}

/* 文本样式 */
p {
font-size: 20px;
margin-bottom: 40px;
font-size: 24px;
margin: 10px 0 30px;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* 添加阴影效果 */
}

/* 链接样式 */
a {
color: #0066cc;
color: #ffd700; /* 链接颜色 */
text-decoration: none;
font-weight: bold;
padding: 10px 20px;
border: 2px solid #ffd700;
border-radius: 25px;
transition: background-color 0.3s, color 0.3s; /* 添加过渡效果 */
}

/* 鼠标悬停链接的效果 */
a:hover {
background-color: #ffd700;
color: #333;
}
</style>
</head>
<body>
<!-- 404 错误标题 -->
<h1>404</h1>

<!-- 错误描述文本 -->
<p>Oops! The page you are looking for does not exist.</p>

<!-- 返回主页的链接 -->
<p><a href="/">Go back to the homepage</a></p>
</body>
</html>

0 comments on commit bd4dfb4

Please sign in to comment.