feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -29,7 +29,7 @@ import {
|
||||
Spin,
|
||||
Empty,
|
||||
Tag,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Copy,
|
||||
Users,
|
||||
@@ -39,10 +39,10 @@ import {
|
||||
Zap,
|
||||
CreditCard,
|
||||
DollarSign,
|
||||
Sparkles,
|
||||
UserPlus,
|
||||
Link,
|
||||
} from 'lucide-react';
|
||||
import UserCenterPageHeader from '../../components/common/UserCenterPageHeader';
|
||||
import { UserContext } from '../../context/User';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import {
|
||||
@@ -345,52 +345,45 @@ const Invite = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='relative p-4 sm:p-6'>
|
||||
<div className='relative uc-page'>
|
||||
<div className='pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(circle_at_8%_8%,rgba(14,165,233,0.12),transparent_28%),radial-gradient(circle_at_92%_12%,rgba(244,63,94,0.10),transparent_30%)]' />
|
||||
|
||||
{/* Page header */}
|
||||
<div className='mb-6 flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between'>
|
||||
<div className='flex items-center gap-3'>
|
||||
<div className='flex h-12 w-12 items-center justify-center rounded-2xl bg-white/70 text-rose-500 shadow-[0_14px_34px_rgba(244,63,94,0.16)] ring-1 ring-white/70 backdrop-blur dark:bg-white/[0.06] dark:ring-white/10'>
|
||||
<Gift size={23} />
|
||||
</div>
|
||||
<div>
|
||||
<h1 className='flex items-center gap-2 text-2xl font-bold text-gray-950 dark:text-white'>
|
||||
{t('\u9080\u8bf7\u6709\u5956')}
|
||||
<Sparkles size={18} className='text-rose-500' />
|
||||
</h1>
|
||||
<p className='text-sm text-gray-500 dark:text-gray-400'>
|
||||
{t('\u9080\u8bf7\u597d\u53cb\uff0c\u5171\u4eab\u5956\u52b1')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className='flex flex-wrap gap-2'>
|
||||
<Button
|
||||
type='primary'
|
||||
theme='solid'
|
||||
disabled={!stats.current_aff_quota || stats.current_aff_quota <= 0}
|
||||
onClick={() => {
|
||||
setTransferAmount(stats.current_aff_quota || 0);
|
||||
setOpenTransfer(true);
|
||||
}}
|
||||
icon={<Zap size={15} />}
|
||||
className='!rounded-full !border-0 !bg-gradient-to-r !from-rose-500 !to-orange-400 !px-4 !shadow-lg !shadow-rose-500/20'
|
||||
>
|
||||
{t('\u5212\u8f6c\u5230\u4f59\u989d')}
|
||||
</Button>
|
||||
{stats.inviter_id === 0 && statusState?.status?.bind_inviter_enabled && (
|
||||
<UserCenterPageHeader
|
||||
title={t('\u9080\u8bf7\u6709\u5956')}
|
||||
subtitle={t('\u9080\u8bf7\u597d\u53cb\uff0c\u5171\u4eab\u5956\u52b1')}
|
||||
extra={
|
||||
<>
|
||||
<Button
|
||||
theme='light'
|
||||
type='primary'
|
||||
icon={<UserPlus size={15} />}
|
||||
onClick={() => setOpenBindInviter(true)}
|
||||
className='!rounded-full !border !border-sky-200 !bg-sky-50/80 !px-4 !text-sky-700 dark:!border-sky-400/20 dark:!bg-sky-400/[0.08] dark:!text-sky-300'
|
||||
theme='solid'
|
||||
disabled={
|
||||
!stats.current_aff_quota || stats.current_aff_quota <= 0
|
||||
}
|
||||
onClick={() => {
|
||||
setTransferAmount(stats.current_aff_quota || 0);
|
||||
setOpenTransfer(true);
|
||||
}}
|
||||
icon={<Zap size={15} />}
|
||||
className='!rounded-full !border-0 !bg-gradient-to-r !from-rose-500 !to-orange-400 !px-4 !shadow-lg !shadow-rose-500/20'
|
||||
>
|
||||
{t('\u7ed1\u5b9a\u9080\u8bf7\u4eba')}
|
||||
{t('\u5212\u8f6c\u5230\u4f59\u989d')}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{stats.inviter_id === 0 &&
|
||||
statusState?.status?.bind_inviter_enabled && (
|
||||
<Button
|
||||
theme='light'
|
||||
type='primary'
|
||||
icon={<UserPlus size={15} />}
|
||||
onClick={() => setOpenBindInviter(true)}
|
||||
className='!rounded-full !border !border-sky-200 !bg-sky-50/80 !px-4 !text-sky-700 dark:!border-sky-400/20 dark:!bg-sky-400/[0.08] dark:!text-sky-300'
|
||||
>
|
||||
{t('\u7ed1\u5b9a\u9080\u8bf7\u4eba')}
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
||||
{/* Stats overview */}
|
||||
<div className='mb-5 grid grid-cols-1 gap-3 md:grid-cols-3'>
|
||||
|
||||
Reference in New Issue
Block a user