feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
Tag,
|
||||
Tooltip,
|
||||
Upload,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Check,
|
||||
ExternalLink,
|
||||
@@ -210,7 +210,7 @@ const PortraitAssetPicker = ({
|
||||
<Empty title={t('真人人像素材未启用')} />
|
||||
) : (
|
||||
<div className='flex flex-col gap-5'>
|
||||
<div className='flex flex-col gap-3 border-b border-solid border-semi-color-border pb-5'>
|
||||
<div className='flex flex-col gap-3 border-b border-solid border-ui-color-border pb-5'>
|
||||
<div className='flex gap-2'>
|
||||
<Input
|
||||
value={name}
|
||||
@@ -256,7 +256,7 @@ const PortraitAssetPicker = ({
|
||||
>
|
||||
{item.status}
|
||||
</Tag>
|
||||
<span className='text-xs text-semi-color-text-2'>
|
||||
<span className='text-xs text-ui-color-text-2'>
|
||||
{item.id.slice(-6)}
|
||||
</span>
|
||||
</span>
|
||||
@@ -288,7 +288,7 @@ const PortraitAssetPicker = ({
|
||||
|
||||
{portrait.session &&
|
||||
['pending', 'confirming'].includes(portrait.session.status) && (
|
||||
<div className='flex flex-col items-center gap-3 border-y border-solid border-semi-color-border py-5'>
|
||||
<div className='flex flex-col items-center gap-3 border-y border-solid border-ui-color-border py-5'>
|
||||
<QRCodeSVG value={portrait.session.h5_url} size={184} />
|
||||
<Progress
|
||||
percent={Math.round((secondsLeft / 120) * 100)}
|
||||
@@ -331,13 +331,13 @@ const PortraitAssetPicker = ({
|
||||
</Upload>
|
||||
)}
|
||||
|
||||
<div className='flex flex-col divide-y divide-semi-color-border'>
|
||||
<div className='flex flex-col divide-y divide-ui-color-border'>
|
||||
{assets.map((asset) => (
|
||||
<div
|
||||
key={asset.id}
|
||||
className='flex min-h-[64px] items-center gap-3 py-3'
|
||||
>
|
||||
<div className='h-12 w-12 shrink-0 overflow-hidden rounded-[6px] bg-semi-color-fill-0'>
|
||||
<div className='h-12 w-12 shrink-0 overflow-hidden rounded-[6px] bg-ui-color-fill-0'>
|
||||
{asset.preview_url && (
|
||||
<img
|
||||
src={asset.preview_url}
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
Tag,
|
||||
Typography,
|
||||
Tooltip,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
@@ -373,10 +373,10 @@ const VideoInputPanel = ({
|
||||
style={{
|
||||
marginTop: '12px',
|
||||
padding: '12px',
|
||||
backgroundColor: 'var(--semi-color-fill-0)',
|
||||
backgroundColor: 'var(--ui-color-fill-0)',
|
||||
borderRadius: '8px',
|
||||
fontSize: '13px',
|
||||
border: '1px solid var(--semi-color-border)',
|
||||
border: '1px solid var(--ui-color-border)',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
@@ -411,7 +411,7 @@ const VideoInputPanel = ({
|
||||
<CreditCard size={14} />
|
||||
{t('单价')}
|
||||
</Text>
|
||||
<Text strong style={{ color: 'var(--semi-color-danger)' }}>
|
||||
<Text strong style={{ color: 'var(--ui-color-danger)' }}>
|
||||
{convertUSDToCurrency(Number(modelInfo.price || 0), 6)}
|
||||
</Text>
|
||||
</div>
|
||||
@@ -462,9 +462,9 @@ const VideoInputPanel = ({
|
||||
style={{
|
||||
marginTop: '12px',
|
||||
padding: '12px',
|
||||
backgroundColor: 'var(--semi-color-fill-0)',
|
||||
backgroundColor: 'var(--ui-color-fill-0)',
|
||||
borderRadius: '8px',
|
||||
border: '1px solid var(--semi-color-border)',
|
||||
border: '1px solid var(--ui-color-border)',
|
||||
}}
|
||||
>
|
||||
<Text type='tertiary' size='small'>
|
||||
@@ -590,9 +590,9 @@ const VideoInputPanel = ({
|
||||
justifyContent: 'center',
|
||||
gap: '12px',
|
||||
padding: '12px',
|
||||
backgroundColor: 'var(--semi-color-fill-0)',
|
||||
backgroundColor: 'var(--ui-color-fill-0)',
|
||||
borderRadius: '8px',
|
||||
border: '1px solid var(--semi-color-border)',
|
||||
border: '1px solid var(--ui-color-border)',
|
||||
}}
|
||||
>
|
||||
<img
|
||||
@@ -668,7 +668,7 @@ const VideoInputPanel = ({
|
||||
dragSubText={t('支持 JPG、PNG 格式')}
|
||||
showUploadList={false}
|
||||
style={{
|
||||
border: '1px dashed var(--semi-color-border)',
|
||||
border: '1px dashed var(--ui-color-border)',
|
||||
borderRadius: '8px',
|
||||
padding: '24px',
|
||||
}}
|
||||
|
||||
@@ -18,8 +18,8 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
import { Card, Typography, Space, Tag } from '@douyinfe/semi-ui';
|
||||
import { IconCreditCard, IconTickCircle } from '@douyinfe/semi-icons';
|
||||
import { Card, Typography, Space, Tag } from '@/components/ui';
|
||||
import { IconCreditCard, IconTickCircle } from '@/components/ui/icons';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import ModelSelector from '../../../../../components/common/ModelSelector';
|
||||
import { MODEL_CATEGORY } from '../../../../../constants';
|
||||
@@ -137,7 +137,7 @@ const VideoModelPanel = ({
|
||||
<Text type='tertiary'>{t('单价')}</Text>
|
||||
<Text
|
||||
strong
|
||||
style={{ fontSize: '18px', color: 'var(--semi-color-primary)' }}
|
||||
style={{ fontSize: '18px', color: 'var(--ui-color-primary)' }}
|
||||
>
|
||||
{convertUSDToCurrency(Number(modelInfo?.price || 0), 6)}
|
||||
</Text>
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Typography,
|
||||
Spin,
|
||||
Tooltip,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Play,
|
||||
Square,
|
||||
@@ -238,8 +238,8 @@ const VideoPreviewPanel = ({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: '12px',
|
||||
backgroundColor: 'var(--semi-color-bg-1)',
|
||||
borderBottom: '1px solid var(--semi-color-border)',
|
||||
backgroundColor: 'var(--ui-color-bg-1)',
|
||||
borderBottom: '1px solid var(--ui-color-border)',
|
||||
flexShrink: 0,
|
||||
}}
|
||||
>
|
||||
@@ -430,7 +430,7 @@ const VideoPreviewPanel = ({
|
||||
style={{
|
||||
marginTop: windowWidth > 768 ? '24px' : '16px',
|
||||
padding: windowWidth > 768 ? '16px' : '12px',
|
||||
backgroundColor: 'var(--semi-color-fill-0)',
|
||||
backgroundColor: 'var(--ui-color-fill-0)',
|
||||
borderRadius: '8px',
|
||||
textAlign: 'left',
|
||||
}}
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Switch,
|
||||
Space,
|
||||
Typography,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useIsMobile } from '../../../../../hooks/common/useIsMobile';
|
||||
import ModelSelector from '../../../../../components/common/ModelSelector';
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
Modal,
|
||||
Badge,
|
||||
Select,
|
||||
} from '@douyinfe/semi-ui';
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
ChevronUp,
|
||||
ChevronDown,
|
||||
@@ -328,8 +328,8 @@ const VideoTaskQueue = ({
|
||||
left: 0,
|
||||
right: 0,
|
||||
height: '40px',
|
||||
backgroundColor: 'var(--semi-color-bg-1)',
|
||||
borderTop: '1px solid var(--semi-color-border)',
|
||||
backgroundColor: 'var(--ui-color-bg-1)',
|
||||
borderTop: '1px solid var(--ui-color-border)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
@@ -358,8 +358,8 @@ const VideoTaskQueue = ({
|
||||
left: 0,
|
||||
right: 0,
|
||||
height: `${queueHeight}px`,
|
||||
backgroundColor: 'var(--semi-color-bg-0)',
|
||||
borderTop: '1px solid var(--semi-color-border)',
|
||||
backgroundColor: 'var(--ui-color-bg-0)',
|
||||
borderTop: '1px solid var(--ui-color-border)',
|
||||
transition: 'bottom 0.3s',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
@@ -370,7 +370,7 @@ const VideoTaskQueue = ({
|
||||
<div
|
||||
style={{
|
||||
padding: !isCompact ? '12px 16px' : '8px 12px',
|
||||
borderBottom: '1px solid var(--semi-color-border)',
|
||||
borderBottom: '1px solid var(--ui-color-border)',
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
|
||||
Reference in New Issue
Block a user