diff --git a/src/main/resources/static/assets/css/dashboard.css b/src/main/resources/static/assets/css/dashboard.css new file mode 100644 index 0000000..1329bf9 --- /dev/null +++ b/src/main/resources/static/assets/css/dashboard.css @@ -0,0 +1,112 @@ +:root { + --primary-color: #5B5FDE; + --secondary-color: #0EA5E9; + --accent-color: #FF6B6B; + --error-color: #F43F5E; + --success-color: #10B981; + --warning-color: #F59E0B; + --info-color: #3B82F6; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + background-color: #F3F4F6; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; +} + +.main-container { + padding: 14px; +} + +/* 欢迎卡片 */ +.welcome-card { + background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); + color: white; + border-radius: 16px; + padding: 35px; + margin-bottom: 25px; + box-shadow: 0 10px 30px rgba(91, 95, 222, 0.2); + position: relative; + overflow: hidden; +} + +.welcome-card::before { + content: ''; + position: absolute; + width: 250px; + height: 250px; + background: rgba(255, 255, 255, 0.1); + border-radius: 50%; + top: -80px; + right: -80px; +} + +.welcome-card h2 { + font-size: 26px; + font-weight: 700; + margin-bottom: 10px; + position: relative; + z-index: 1; +} + +.welcome-card p { + font-size: 15px; + opacity: 0.95; + position: relative; + z-index: 1; +} + +/* 统计卡片 */ +.stat-card { + background: white; + border-radius: 12px; + padding: 25px; + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); + transition: all 0.3s; + border: 1px solid #E5E7EB; +} + +.stat-card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); +} + +.stat-card i { + font-size: 40px; + opacity: 0.9; + margin-bottom: 12px; +} + +.stat-card h3 { + font-size: 30px; + font-weight: 700; + margin: 12px 0 6px; + color: #1F2937; +} + +.stat-card p { + color: #6B7280; + font-size: 13px; + margin: 0; +} + +.stat-card.primary i { + color: var(--primary-color); +} + +.stat-card.success i { + color: var(--success-color); +} + +.stat-card.warning i { + color: var(--warning-color); +} + +.stat-card.info i { + color: var(--info-color); +} \ No newline at end of file diff --git a/src/main/resources/templates/admin/dashboard.html b/src/main/resources/templates/admin/dashboard.html new file mode 100644 index 0000000..4ebc258 --- /dev/null +++ b/src/main/resources/templates/admin/dashboard.html @@ -0,0 +1,101 @@ + + + + + Title + + + + + + + + + +
+
+

+ + 你好,{{ userInfo.realName || userInfo.username }}! +

+

欢迎使用 CoreWing 后台管理系统

+
+ +
+
+
+ +

1,234

+

用户数

+
+
+
+
+ +

567

+

设备数

+
+
+
+
+ +

89%

+

固件数

+
+
+
+
+ + + + + + + + + + + + + + \ No newline at end of file