feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent 1fd4e084b6
commit 15192c433b
576 changed files with 18075 additions and 18912 deletions
+7 -10
View File
@@ -18,6 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Button } from 'antd';
import { useNavigate } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
@@ -28,7 +29,7 @@ import { useTranslation } from 'react-i18next';
* active:当前页归属('personal' | 'enterprise'),高亮且不重复跳转。
*
* 浮于玻璃卡片之外、之上:自带玻璃壳(backdrop-blur + 半透白底 + ring/border),
* 在背景上保持可读并与下方卡片呼应;激活态用品牌渐变强化「当前入口」的辨识度。
* 在背景上保持可读并与下方卡片呼应;激活态沿用 Ant Design 主题主色。
*/
const AuthLoginTabs = ({ active = 'personal', mode = 'login' }) => {
const { t } = useTranslation();
@@ -47,25 +48,21 @@ const AuthLoginTabs = ({ active = 'personal', mode = 'login' }) => {
];
return (
<div className='relative z-20 flex p-1 gap-1 rounded-2xl backdrop-blur-2xl bg-white/45 dark:bg-neutral-900/55 ring-1 ring-white/50 dark:ring-white/[0.06] border border-white/30 dark:border-white/[0.05] shadow-[0_12px_32px_-16px_rgb(var(--brand-primary-rgb)/0.45)]'>
<div className='auth-login-tabs relative z-20 flex p-1 gap-1 rounded-xl backdrop-blur-2xl bg-white/45 dark:bg-neutral-900/55 ring-1 ring-white/50 dark:ring-white/[0.06] border border-white/30 dark:border-white/[0.05]'>
{tabs.map((tab) => {
const isActive = tab.key === active;
return (
<button
<Button
key={tab.key}
type='button'
type={isActive ? 'primary' : 'text'}
aria-pressed={isActive}
onClick={() => {
if (!isActive) navigate(tab.to);
}}
className={`flex-1 h-10 rounded-xl text-sm font-medium transition-all duration-200 ${
isActive
? 'bg-gradient-to-r from-brand-from to-brand-to text-white shadow-md shadow-brand/25'
: 'text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:bg-white/40 dark:hover:bg-white/[0.05]'
}`}
className='flex-1 font-medium'
>
{tab.label}
</button>
</Button>
);
})}
</div>