diff --git a/frontend/src/components/login/SidePanel.tsx b/frontend/src/components/login/SidePanel.tsx index 181a81f..5d99d65 100644 --- a/frontend/src/components/login/SidePanel.tsx +++ b/frontend/src/components/login/SidePanel.tsx @@ -30,28 +30,28 @@ export default function SidePanel() { {/* 左侧 */} -
-
-
-
- +
+
+
+
+
-

+

SQL-Platform

-

- 企业级数据审核与变更管理平台
- 支持多数据库类型,提供完善的 SQL 审核、审批流程和审计追踪 +

+ 企业级数据审核与变更管理平台,支持多数据库类型,
+ 提供完善的 SQL 审核、审批流程和审计追踪

-
+
{features.map((f, i) => ( -
- +
+
-

{f.title}

+

{f.title}

{f.desc}

@@ -60,7 +60,7 @@ export default function SidePanel() {
{/* 右侧 */} -
+
diff --git a/frontend/src/pages/AppearanceSettings.tsx b/frontend/src/pages/AppearanceSettings.tsx index 1f9fed6..3191739 100644 --- a/frontend/src/pages/AppearanceSettings.tsx +++ b/frontend/src/pages/AppearanceSettings.tsx @@ -193,7 +193,7 @@ export default function AppearanceSettings() {
{/* Right: login form */} -
+
diff --git a/frontend/src/pages/LoginPage.tsx b/frontend/src/pages/LoginPage.tsx index 606ecc2..b6564a3 100644 --- a/frontend/src/pages/LoginPage.tsx +++ b/frontend/src/pages/LoginPage.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from 'react'; +import SidePanel from '@/components/login/SidePanel'; import SplitView from '@/components/login/SplitView'; import CenteredCard from '@/components/login/CenteredCard'; -import SidePanel from '@/components/login/SidePanel'; import FullImage from '@/components/login/FullImage'; import MinimalDark from '@/components/login/MinimalDark'; import AuroraView from '@/components/login/AuroraView'; @@ -10,12 +10,12 @@ import InkWashView from '@/components/login/InkWashView'; import NeonCityView from '@/components/login/NeonCityView'; import GradientMeshView from '@/components/login/GradientMeshView'; -export type LoginStyle = 'split' | 'centered' | 'sidepanel' | 'fullimage' | 'minimal' | 'aurora' | 'cosmos' | 'inkwash' | 'neoncity' | 'gradientmesh'; +export type LoginStyle = 'sidepanel' | 'split' | 'centered' | 'fullimage' | 'minimal' | 'aurora' | 'cosmos' | 'inkwash' | 'neoncity' | 'gradientmesh'; const LOGIN_STYLES: Record = { + sidepanel: SidePanel, split: SplitView, centered: CenteredCard, - sidepanel: SidePanel, fullimage: FullImage, minimal: MinimalDark, aurora: AuroraView, @@ -26,9 +26,9 @@ const LOGIN_STYLES: Record = { }; export const LOGIN_STYLE_OPTIONS: { id: LoginStyle; name: string; desc: string }[] = [ + { id: 'sidepanel', name: '功能展示', desc: '左品牌+功能卡片,右登录表单' }, { id: 'split', name: '经典分屏', desc: '左黑右白,晶格科技感' }, { id: 'centered', name: '居中卡片', desc: '黎明光柱,金色晨曦氛围' }, - { id: 'sidepanel', name: '侧边面板', desc: '左品牌+功能卡片,右登录表单' }, { id: 'fullimage', name: '全屏背景', desc: '科技背景,毛玻璃卡片' }, { id: 'minimal', name: '深蓝紫曲线', desc: '优雅暗黑,粉紫流动曲线' }, { id: 'aurora', name: '极光之境', desc: '北极光动态渐变,紫绿流光' }, @@ -39,7 +39,7 @@ export const LOGIN_STYLE_OPTIONS: { id: LoginStyle; name: string; desc: string } ]; export default function LoginPage() { - const [style, setStyle] = useState('split'); + const [style, setStyle] = useState('sidepanel'); const [ready, setReady] = useState(false); useEffect(() => { @@ -64,6 +64,6 @@ export default function LoginPage() { if (!ready) return null; // avoid flash - const Component = LOGIN_STYLES[style] || SplitView; + const Component = LOGIN_STYLES[style] || SidePanel; return ; }