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 ;
}