feat: 删除背景图片,更新样式以符合现代设计标准

This commit is contained in:
MKStoler1024 2025-04-09 17:23:25 +00:00
parent 1ed57266ed
commit bc9a562ad8
4 changed files with 116 additions and 102 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 MiB

View File

@ -1,25 +1,3 @@
<!--
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/---\____
.' \\| |// '.
/ \\||| : |||// \
/ _||||| -:- |||||- \
| | \\\ - /// | |
| _| ''---/'' | |
\ .-\__ `-` ___/-. /
___`. .' /--.--\ `. . __
."" '< `.___\_<|>_/___.' >'"".
| | : `- \.;`\ _ /';.\ - ` : | |
\ \ `-. \_ __\ /__ _/ .-\ / /
======`-.____`-.___\_____/___.-`____.-'======
`=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
佛祖保佑 永无BUG
-->
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
@ -27,56 +5,57 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>选择页面</title> <title>选择页面</title>
<link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<style> <style>
body { body {
background-image: url('./background.jpg'); background: #1C1B1F;
background-size: cover;
background-repeat: no-repeat;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100vh; height: 100vh;
margin: 0; margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 使用更现代的字体 */ font-family: 'Google Sans', 'Roboto', sans-serif;
color: #fff; color: #E6E1E5;
background-color: rgba(0, 0, 0, 0.5); /* 添加半透明背景 */ backdrop-filter: blur(10px);
backdrop-filter: blur(5px); /* 添加背景模糊效果 */
} }
h1 { h1 {
color: #fff; color: #E6E1E5;
font-size: 48px; font-size: 48px;
text-align: center; text-align: center;
margin-bottom: 30px; margin-bottom: 40px;
animation: fadeInUp 1s ease-in-out; animation: fadeInUp 1s ease-in-out;
font-weight: 500;
} }
ul { ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
display: flex; /* 改为横向排布 */ display: flex;
justify-content: center; /* 居中对齐 */ justify-content: center;
gap: 30px; /* 按钮之间的间距 */ gap: 16px;
animation: fadeInUp 1s ease-in-out; animation: fadeInUp 1s ease-in-out;
} }
li {
margin-bottom: 0; /* 移除垂直间距 */
}
a { a {
color: #fff; color: #E6E1E5;
text-decoration: none; text-decoration: none;
font-size: 24px; font-size: 16px;
font-weight: bold; font-weight: 500;
padding: 15px 30px; padding: 16px 24px;
border-radius: 8px; border-radius: 100px;
background-color: rgba(255, 255, 255, 0.1); background-color: #49454F;
transition: all 0.3s ease; transition: all 0.3s ease;
display: inline-block; display: inline-block;
} }
a:hover { a:hover {
background-color: rgba(255, 255, 255, 0.3); background-color: #605D64;
transform: translateY(-3px); transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
} }
@keyframes fadeInUp { @keyframes fadeInUp {
0% { 0% {
opacity: 0; opacity: 0;
@ -87,16 +66,37 @@
transform: translateY(0); transform: translateY(0);
} }
} }
.copyright { .copyright {
position: absolute; position: absolute;
bottom: 10px; bottom: 16px;
width: 100%; width: 100%;
text-align: center; text-align: center;
font-size: 20px; font-size: 14px;
color: rgba(255, 255, 255, 0.8); color: #CAC4D0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
animation: fadeInUp 1s ease-in-out; animation: fadeInUp 1s ease-in-out;
} }
.github-link {
position: absolute;
top: 16px;
right: 16px;
background-color: transparent;
padding: 8px;
border-radius: 50%;
}
.github-link:hover {
background-color: rgba(255, 255, 255, 0.1);
transform: none;
box-shadow: none;
}
.github-link img {
width: 24px;
height: 24px;
filter: invert(1);
}
</style> </style>
</head> </head>
<body> <body>
@ -108,8 +108,8 @@
</ul> </ul>
<!-- 添加GitHub图标跳转项目地址 --> <!-- 添加GitHub图标跳转项目地址 -->
<a href="https://github.com/ExamAware/ExamSchedule" target="_blank" style="position: absolute; top: 10px; right: 10px; z-index: 1000;"> <a href="https://github.com/ExamAware/ExamSchedule" target="_blank" class="github-link">
<img src="./github-icon.png" alt="GitHub" style="width: 30px; height: 30px;" title="在GitHub上查看源代码"> <img src="./github-icon.png" alt="GitHub" title="在GitHub上查看源代码">
</a> </a>
<!-- 新增版权信息 --> <!-- 新增版权信息 -->

View File

@ -33,87 +33,101 @@
<style> <style>
/* 基础样式 */ /* 基础样式 */
body { body {
font-family: 'Segoe UI', Arial, sans-serif; font-family: 'Roboto', 'HarmonyOS Sans SC', sans-serif;
margin: 0; margin: 0;
padding: 20px; padding: 20px;
background: url('../background.jpg') no-repeat center center fixed; background: #1C1B1F;
background-size: cover; color: #E6E1E5;
color: #ecf0f1;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100vh; height: 100vh;
background-color: #2c3e50;
} }
.container { .container {
text-align: center; text-align: center;
background: rgba(255, 255, 255, 0); background: #2B2930;
padding: 30px; padding: 48px;
animation: fadeIn 2s ease-in-out; border-radius: 28px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
animation: fadeIn 0.3s ease-in-out;
} }
.time { .time {
font-size: 10rem; font-size: 10rem;
margin: 0; margin: 0;
color: #ecf0f1; color: #D0BCFF;
font-weight: 700; font-weight: 400;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); text-shadow: none;
animation: glow 1s ease-in-out infinite alternate;
} }
.text { .text {
font-size: 1.5rem; font-size: 1.5rem;
margin-bottom: 20px; margin-bottom: 32px;
color: #bdc3c7; color: #E6E1E5;
}
.btn {
padding: 10px 25px;
margin: 10px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
background: linear-gradient(135deg, #3498db, #2980b9);
color: white;
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
} }
.controls { .controls {
margin-top: 30px; margin-top: 40px;
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: center;
}
.btn, #fontSelector {
padding: 12px 24px;
border: none;
border-radius: 20px;
cursor: pointer;
transition: all 0.2s ease;
font-size: 1rem;
font-weight: 500;
background-color: #4A4458;
color: #E6E1E5;
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.btn:hover, #fontSelector:hover {
background-color: #635B70;
transform: translateY(-1px);
box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
#fontSelector {
padding: 10px 20px;
} }
.btn.fullscreen { .btn.fullscreen {
background: linear-gradient(135deg, #e74c3c, #c0392b); background-color: #5C1130;
color: #fff; color: #FFB3B3;
} }
/* 动画效果 */ .btn.fullscreen:hover {
background-color: #7D2046;
}
/* 简化动画效果 */
@keyframes fadeIn { @keyframes fadeIn {
from { from { opacity: 0; transform: translateY(10px); }
opacity: 0; to { opacity: 1; transform: translateY(0); }
} }
to { /* 删除发光动画,符合 MD3 的简洁风格 */
opacity: 1;
} /* 下拉菜单样式 */
select {
appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E6E1E5'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 20px;
padding-right: 40px;
} }
@keyframes glow { select option {
from { background-color: #2B2930;
text-shadow: 0 0 10px #222; color: #E6E1E5;
}
to {
text-shadow: 0 0 20px #000;
}
} }
</style> </style>
</head> </head>