feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -25,7 +25,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
|
||||
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button, Skeleton, Tag } from '@douyinfe/semi-ui';
|
||||
import { Button, Skeleton, Tag } from '@/components/ui';
|
||||
import {
|
||||
AlertTriangle,
|
||||
Cpu,
|
||||
@@ -46,6 +46,7 @@ import { API } from '../../helpers/api';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { UserContext } from '../../context/User';
|
||||
import PageBackground from '../../components/common/PageBackground';
|
||||
import UserCenterBreadcrumb from '../../components/common/UserCenterBreadcrumb';
|
||||
import { useWeyAiWebEntry } from '../../hooks/common/useWeyAiWebEntry';
|
||||
import {
|
||||
PLATFORMS,
|
||||
@@ -576,6 +577,7 @@ const WeyAiDownload = ({ embedded = false }) => {
|
||||
<div className={rootClass}>
|
||||
{!embedded && <PageBackground grid />}
|
||||
<div className='weyai-download__inner'>
|
||||
{embedded && <UserCenterBreadcrumb />}
|
||||
<header className='wd-hero'>
|
||||
<div className='min-w-0'>
|
||||
<div className='wd-eyebrow'>
|
||||
|
||||
@@ -5,23 +5,23 @@
|
||||
--wd-muted: var(--text-secondary);
|
||||
--wd-line: var(--border-subtle);
|
||||
--wd-card: var(--surface-card);
|
||||
--wd-accent: var(--semi-color-primary);
|
||||
--wd-accent-deep: var(--semi-color-primary-active, var(--semi-color-primary));
|
||||
--wd-tint: color-mix(in srgb, var(--semi-color-primary) 8%, transparent);
|
||||
--wd-accent: var(--ui-color-primary);
|
||||
--wd-accent-deep: var(--ui-color-primary-active, var(--ui-color-primary));
|
||||
--wd-tint: color-mix(in srgb, var(--ui-color-primary) 8%, transparent);
|
||||
--wd-tint-strong: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 14%,
|
||||
var(--ui-color-primary) 14%,
|
||||
transparent
|
||||
);
|
||||
--wd-accent-line: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-primary) 28%,
|
||||
var(--ui-color-primary) 28%,
|
||||
transparent
|
||||
);
|
||||
--wd-danger: var(--semi-color-danger);
|
||||
--wd-danger: var(--ui-color-danger);
|
||||
--wd-danger-tint: color-mix(
|
||||
in srgb,
|
||||
var(--semi-color-danger) 8%,
|
||||
var(--ui-color-danger) 8%,
|
||||
transparent
|
||||
);
|
||||
position: relative;
|
||||
@@ -54,14 +54,14 @@
|
||||
padding: 32px;
|
||||
}
|
||||
}
|
||||
/* 嵌入用户中心:跟随内容区宽度,不再居中收窄;内边距对齐同级页面的 p-4 sm:p-6 */
|
||||
/* 嵌入用户中心:跟随内容区宽度,不再居中收窄;内边距与面包屑对齐 .uc-page 统一边距 */
|
||||
.weyai-download--embedded .weyai-download__inner {
|
||||
max-width: none;
|
||||
padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px)
|
||||
var(--uc-page-pad-bottom, 36px);
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.weyai-download--embedded .weyai-download__inner {
|
||||
padding: 24px;
|
||||
}
|
||||
.weyai-download--embedded .ui-user-center-breadcrumb {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* 「其他平台与架构」锚点:独立路由下顶栏 64px 与跑马灯 40px 都是 fixed,
|
||||
@@ -287,7 +287,7 @@
|
||||
.wd-feature:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 24px -12px
|
||||
color-mix(in srgb, var(--semi-color-primary) 45%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 45%, transparent);
|
||||
}
|
||||
.wd-feature__icon {
|
||||
flex-shrink: 0;
|
||||
@@ -451,7 +451,7 @@
|
||||
height: 28px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, var(--wd-accent), var(--wd-accent-deep));
|
||||
color: var(--semi-color-white, var(--surface-card));
|
||||
color: var(--ui-color-white, var(--surface-card));
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
@@ -531,6 +531,6 @@
|
||||
.weyai-download button:focus-visible,
|
||||
.weyai-download a:focus-visible {
|
||||
outline: 2px solid
|
||||
color-mix(in srgb, var(--semi-color-primary) 55%, transparent);
|
||||
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user