js+css实现班主任多班级学生签到点名安排座位日期倒计时管理系统mac桌面风格代码
代码语言:html
所属分类:其他
代码描述:js+css实现班主任多班级学生签到点名安排座位日期倒计时管理系统mac桌面风格代码,采用模仿win11风格设计,班主任可在系统设置中设置多个班级,并可切换,然后可导入学生数据,抽奖、签到、点名、安排座位,重要日期添加倒计时提醒功能。
代码标签: js css 班主任 多班级 学生 签到 点名 安排 座位 日期 倒计时 管理 系统 mac 桌面
下面为部分代码预览,完整代码请点击下载或在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> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); height: 100vh; overflow: hidden; color: #333; } /* 桌面壁纸 */ .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"><rect fill="%23667eea" width="1920" height="1080"/><circle cx="400" cy="300" r="300" fill="%23764ba2" opacity="0.3"/><circle cx="1500" cy="700" r="400" fill="%235a4a9f" opacity="0.2"/></svg>'); background-size: cover; } /* 顶部菜单栏 */ .menu-bar { position: fixed; top: 0; left: 0; right: 0; height: 28px; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: space-between; padding: 0 15px; z-index: 10000; border-bottom: 1px solid rgba(255, 255, 255, 0.3); } .menu-left { display: flex; gap: 20px; align-items: center; color: white; font-size: 13px; font-weight: 500; } .menu-right { display: flex; gap: 15px; align-items: center; color: white; font-size: 12px; } .clock { font-weight: 500; } /* 桌面图标区域 */ .icons-container { position: absolute; top: 60px; right: 30px; display: grid; grid-template-columns: repeat(2, 100px); gap: 30px; padding: 20px; } .desktop-icon { width: 100px; text-align: center; cursor: pointer; transition: transform 0.2s; } .desktop-icon:hover { transform: translateY(-5px); } .desktop-icon:active { transform: scale(0.95); } .icon-image { width: 70px; height: 70px; margin: 0 auto 8px; background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); backdrop-filter: blur(10px); } .icon-label { color: white; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); font-weight: 500; } /* 窗口样式 */ .window { position: absolute; min-width: 400px; min-height: 300px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); display: none; flex-direction: column; overflow: hidden; } .window.active { display: flex; } .window-header { height: 40px; background: rgba(246, 246, 246, 0.95); border-bottom: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; padding: 0 15px; cursor: move; user-select: none; } .window-controls { display: flex; gap: 8px; } .window-control { width: 12px; height: 12px; border-radius: 50%; cursor: pointer; transition: filter 0.2s; } .window-control:hover { filter: brightness(0.9); } .control-close { background: #FF5F57; } .control-minimize { background: #FFBD2E; } .control-maximize { background: #28CA42; } .window-title { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: #333; } .window-content { flex: 1; padding: 25px; overflow-y: auto; background: white; } /* 按钮样式 */ .btn { padding: 8px 20px; border: none; border-radius: 6px; background: #007AFF; color: white; font-size: 13px; cursor: pointer; transition: all 0.2s; font-weight: 500; } .btn:hover { background: #0051D5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,122,255,0.4); } .btn:active { transform: translateY(0); } .btn-secondary { background: #E5E5EA; color: #333; } .btn-secondary:hover { background: #D1D1D6; } /* 输入框样式 */ input[type="text"], input[type="date"], input[type="number"], textarea { width: 100%; padding: 10px 12px; border: 1px solid #D1D1D6; border-radius: 6px; font-size: 14px; transition: border 0.2s; font-family: inherit; } input:focus, textarea:focus { outline: none; border-color: #007AFF; box-shadow: 0 0 0 3px rgba(0,122,255,0.1); } /* 签到功能 */ .attendance-section { margin-bottom: 25px; } .attendance-section h3 { margin-bottom: 15px; font-size: 16px; color: #333; } .student-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 15px; } .student-item { padding: 12px; background: #F5F5F7; border-radius: 8px; display: flex; justify-content: space-between; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0