From 492bf7f8e3df0720605388732b49a8b8255fdf1e Mon Sep 17 00:00:00 2001 From: logan Date: Wed, 27 May 2026 18:21:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=9F=E8=83=BD=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=E6=8F=90=E5=88=B0=E7=AC=AC=E4=B8=80=E4=BD=8D?= =?UTF-8?q?+=E6=AF=94=E4=BE=8B=E4=BC=98=E5=8C=96=20=E2=80=94=20=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7400px=E6=9B=B4=E7=B4=A7=E5=87=91=EF=BC=8C=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E9=97=B4=E8=B7=9D=E7=BC=A9=E5=87=8F=EF=BC=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=99=BB=E5=BD=95=E9=A1=B5=E6=94=B9=E4=B8=BAsidepanel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/login/SidePanel.tsx | 28 ++++++++++----------- frontend/src/pages/AppearanceSettings.tsx | 2 +- frontend/src/pages/LoginPage.tsx | 12 ++++----- 3 files changed, 21 insertions(+), 21 deletions(-) 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 ; }