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>班级管理系统</title> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.11.3.css"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); height: 100vh; overflow: hidden; color: #202020; } /* Windows 11 桌面背景 */ .desktop { width: 100%; height: 100vh; position: relative; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231e3c72;stop-opacity:1" /><stop offset="100%" style="stop-color:%232a5298;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23grad)" width="1920" height="1080"/><circle cx="1200" cy="200" r="300" fill="%233b5998" opacity="0.2"/><circle cx="500" cy="800" r="400" fill="%234267b2" opacity="0.15"/></svg>'); background-size: cover; background-position: center; } /* Windows 11 任务栏 */ .taskbar { position: fixed; bottom: 0; left: 0; right: 0; height: 48px; background: rgba(243, 243, 243, 0.85); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); display: flex; align-items: center; justify-content: center; z-index: 10000; border-top: 1px solid rgba(255, 255, 255, 0.1); } .taskbar-content { display: flex; align-items: center; gap: 8px; } .start-button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.2s; cursor: pointer; color: #0078d4; font-size: 20px; } .start-button:hover { background: rgba(255, 255, 255, 0.3); } .taskbar-app { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.2s; cursor: pointer; font-size: 18px; background: transparent; } .taskbar-app:hover { background: rgba(255, 255, 255, 0.3); } .taskbar-app.active { background: rgba(255, 255, 255, 0.5); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .system-tray { position: absolute; right: 15px; display: flex; align-items: center; gap: 15px; color: #202020; font-size: 13px; } .clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; } .clock-time { font-weight: 500; } .clock-date { font-size: 11px; opacity: 0.8; } /* 桌面图标 */ .icons-container { position: absolute; top: 30px; left: 30px; display: grid; grid-template-columns: repeat(auto-fill, 76px); gap: 20px; padding: 20px; } .desktop-icon { width: 76px; text-align: center; cursor: pointer; padding: 8px; border-radius: 8px; transition: all 0.2s; } .desktop-icon:hover { background: rgba(255, 255, 255, 0.1); } .desktop-icon:active { transform: scale(0.95); } .desktop-icon.selected { background: rgba(255, 255, 255, 0.15); } .icon-image { width: 48px; height: 48px; margin: 0 auto 6px; background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); color: #0078d4; } .icon-label { color: white; font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); font-weight: 400; line-height: 1.2; } /* Windows 11 窗口样式 */ .window { position: absolute; min-width: 400px; min-height: 300px; background: #f3f3f3; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; border: 1px solid rgba(0,0,0,0.1); } .window.active { display: flex; } .window.maximized { top: 0 !important; left: 0 !important; width: 100% !important; height: calc(100vh - 48px) !important; border-radius: 0; } .window-header { height: 32px; background: #ffffff; display: flex; align-items: center; padding: 0 12px; cursor: move; user-select: none; } .window-title { flex: 1; font-size: 12px; font-weight: 400; color: #202020; padding-left: 8px; } .window-controls { display: flex; gap: 0; margin-left: auto; } .window-control { width: 46px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; color: #202020; font-size: 10px; } .window-control:hover { background: rgba(0,0,0,0.05); } .control-close:hover { background: #c42b1c; color: white; } .window-content { flex: 1; padding: 20px; overflow-y: auto; background: #f9f9f9; } /* Windows 11 按钮样式 */ .btn { padding: 6px 16px; border: 1px solid #d1d1d1; border-radius: 6px; background: #ffffff; color: #202020; font-size: 14px; cursor: pointer; transition: all 0.2s; font-weight: 400; font-family: inherit; } .btn:hover { background: #f9f9f9; border-color: #b8b8b8; } .btn:active { background: #f0f0f0; } .btn-primary { background: #0078d4; color: white; border-color: #0078d4; } .btn-primary:hover { background: #106ebe; border-color: #106ebe; } .btn-danger { background-color: #d93025; color: white; border-color: #d93025; } .btn-danger:hover { background-color: #c5221b; border-color: #c5221b; } /* Windows 11 输入框样式 */ input[type="text"], input[type="date"], input[type="number"], textarea, select { width: 100%; padding: 8px 12px; border: 1px solid #d1d1d1; border-radius: 4px; font-size: 14px; transition: all 0.2s; font-family: inherit; background: white; } input:hover, textarea:hover, select:hover { border-color: #b8b8b8; } input:focus, textarea:focus, select:focus { outline: none; border-color: #0078d4; border-width: 2px; padding: 7px 11px; } /* 签到功能 */ .attendance-section { margin-bottom: 24px; } .attendance-section h3 { margin-bottom: 16px; font-size: 20px; font-weight: 600; color: #202020; display: flex; align-items: center; gap: 8px; } .student-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; } .student-item { padding: 10px 12px; background: white; border: 1px solid #e0e0e0; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; } .student-item:hover { background: #f9f9f9; border-color: #b8b8b8; } .student-item.checked { background: #e6f3ff; border-color: #0078d4; } .checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: #0078d4; } /* 随机点名动画 */ .random-call-fullscreen { position: fixed; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0