js+css实现班主任多班级学生签到点名安排座位日期倒计时管理系统win11桌面风格代码
代码语言:html
所属分类:其他
代码描述:js+css实现班主任多班级学生签到点名安排座位日期倒计时管理系统win11桌面风格代码,采用模仿win11风格设计,班主任可在系统设置中设置多个班级,并可切换,然后可导入学生数据,抽奖、签到、点名、安排座位,重要日期添加倒计时提醒功能。
代码标签: js css 班主任 多班级 学生 签到 点名 安排 座位 日期 倒计时 管理 系统 win11 桌
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>班级管理系统 - Windows 11 Edition</title> <!-- 引入 Bootstrap Icons --> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.11.3.css"> <style> :root { --accent-color: #0078D4; --accent-color-dark: #005a9e; --accent-color-glow: rgba(0, 120, 212, 0.3); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, sans-serif; height: 100vh; overflow: hidden; color: #1c1c1c; } /* 桌面壁纸 */ .desktop { width: 100%; height: 100vh; position: relative; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%230a2a43"/><stop offset="100%" stop-color="%23030d1c"/></radialGradient><linearGradient id="b" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="%235d55e1" stop-opacity="0"/><stop offset="100%" stop-color="%235d55e1" stop-opacity="0.5"/></linearGradient></defs><rect fill="url(%23a)" width="1920" height="1080"/><rect fill="url(%23b)" width="1920" height="1080"/><circle cx="960" cy="540" r="400" fill="%234a43b3" filter="url(%23f1)" opacity="0.6"/><filter id="f1"><feGaussianBlur in="SourceGraphic" stdDeviation="150" /></filter></svg>'); background-size: cover; background-position: center; } /* 底部任务栏/Dock */ .dock { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; background: rgba(240, 240, 240, 0.65); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); z-index: 10000; } .dock-icon { width: 52px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #111; border-radius: 6px; cursor: pointer; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; } .dock-icon i { font-size: 24px; line-height: 1; } .dock-icon:hover { background: rgba(255, 255, 255, 0.5); transform: translateY(-8px); } .dock-icon .tooltip { position: absolute; bottom: 120%; background: rgba(30, 30, 30, 0.9); color: white; padding: 5px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(5px); transition: all 0.2s; } .dock-icon:hover .tooltip { opacity: 1; visibility: visible; transform: translateY(0); } /* 系统托盘 (时钟) */ .system-tray { position: fixed; bottom: 15px; right: 15px; padding: 8px 15px; background: rgba(240, 240, 240, 0.65); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; z-index: 10000; font-size: 13px; color: #111; cursor: pointer; font-weight: 500; } /* 窗口样式 */ .window { position: absolute; min-width: 400px; min-height: 300px; background: rgba(249, 249, 249, 0.85); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border-radius: 8px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); display: none; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.3); } .window.active { display: flex; } .window-header { height: 36px; display: flex; align-items: stretch; cursor: move; user-select: none; } .window-title { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 12px; font-size: 13px; font-weight: 600; color: #1c1c1c; } .window-controls { display: flex; -webkit-app-region: no-drag; } .window-control { width: 46px; height: 100%; border: none; background: transparent; font-size: 12px; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease; } .window-control:hover { background-color: rgba(0, 0, 0, 0.08); } .window-control.control-close:hover { background-color: #E81123; color: white; } .window-content { flex: 1; padding: 25px; overflow-y: auto; background: rgba(255, 255, 255, 0.6); } /* 按钮样式 */ .btn { padding: 8px 20px; border: 1px solid var(--accent-color); border-radius: 6px; background: var(--accent-color); color: white; font-size: 13px; cursor: pointer; transition: all 0.2s; font-weight: 500; } .btn:hover { background: var(--accent-color-dark); border-color: var(--accent-color-dark); box-shadow: 0 4px 12px var(--accent-color-glow); } .btn:active { transform: translateY(1px); } .btn-secondary { background: #E5E5EA; color: #333; border-color: transparent; } .btn-secondary:hover { background: #D1D1D6; box-shadow: none; } .btn-danger { background-color: #E81123; border-color: #E81123; } .btn-danger:hover { background-color: #c20f1e; border-color: #c20f1e; } /* 输入框和下拉框样式 */ input[type="text"], input[type="date"], input[type="number"], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #D1D1D6; border-radius: 6px; font-size: 14px; transition: all 0.2s; font-family: inherit; background: rgba(255,255,255,0.7); } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--accent-color-glow); } select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 12px; } /* 签到功能 */ .attendance-section h3 { margin-bottom: 15px; font-size: 16px; color: #1c1c1c; display: flex; align-items: center; gap: 8px; } .student-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 15px; } .........完整代码请登录后点击上方下载按钮下载查看
网友评论0