feat: 重构前端界面并修复认证路径
- 重构主页、关于页、演示页和帖子页的UI,使用现代化的卡片设计和布局 - 添加主题切换功能,支持亮色/暗色模式 - 修复后端认证路由路径,从`/api`改为`/api/auth` - 更新页面标题为"HLAE中文站" - 简化Providers组件,移除未使用的主题配置 - 添加Hero组件展示网站主标题和操作按钮 - 优化登录和注册页面的表单验证和UI - 更新全局样式,添加品牌颜色和主题变量 - 改进导航栏,添加图标和更好的响应式设计 - 优化资源管理模态框,添加图标字段支持
This commit is contained in:
@@ -1,7 +1,27 @@
|
||||
@import "tailwindcss";
|
||||
@import "@heroui/styles";
|
||||
|
||||
@layer base {
|
||||
/* :root {} */
|
||||
|
||||
@theme {
|
||||
--color-brand: #C14B4B;
|
||||
--color-brand-foreground: #FFFFFF;
|
||||
|
||||
--radius-2xl: 1.25rem;
|
||||
--radius-3xl: 1.5rem;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 0 0% 100%;
|
||||
--foreground: 240 10% 3.9%;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: 240 10% 3.9%;
|
||||
--foreground: 0 0% 98%;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-background text-foreground antialiased selection:bg-brand/20 selection:text-brand;
|
||||
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user