refactor(frontend): 重构前端目录结构并优化认证流程
将前端文件从html目录迁移到views目录,按功能模块组织 重构认证中间件和路由处理,简化页面权限控制 更新静态资源引用路径,统一使用/public前缀 添加学生仪表板页面,优化移动端显示 移除旧版html和js文件,更新样式和脚本
This commit is contained in:
47
frontend/public/css/notification.css
Normal file
47
frontend/public/css/notification.css
Normal file
@@ -0,0 +1,47 @@
|
||||
/* 通知消息样式 */
|
||||
.notification {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
padding: 15px 25px;
|
||||
background: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
z-index: 1000;
|
||||
transform: translateX(120%);
|
||||
transition: transform 0.3s ease;
|
||||
border-left: 4px solid #4e73df;
|
||||
max-width: 350px;
|
||||
}
|
||||
|
||||
.notification.show {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.notification.success {
|
||||
border-left-color: #2ecc71;
|
||||
}
|
||||
|
||||
.notification.error {
|
||||
border-left-color: #e74c3c;
|
||||
}
|
||||
|
||||
.notification i {
|
||||
margin-right: 10px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.notification.success i {
|
||||
color: #2ecc71;
|
||||
}
|
||||
|
||||
.notification.error i {
|
||||
color: #e74c3c;
|
||||
}
|
||||
|
||||
.notification-content {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
Reference in New Issue
Block a user