style: 重做后台页头层级与页面命名

- 页头标题 24px 降到 20px,说明 14px 降到 13px,标题与说明间距 8px 收到 6px
- 页头到主体间距从 24px 提到 32px,与卡片间 16px 拉开层级
- 说明文字增加 880px 最大宽度,长句不再横跨整行
- 页面标题与侧栏导航用词对齐:信任内容、业务提供项、小程序页面、能力插件
- 信任内容页说明文案精简到一行内
- 概览页对象主标题降到 18px,避免与页面标题同级
- design.md 同步字号表、页头规范与导航命名约定
This commit is contained in:
que01 committed 2026-10-14 12:07:33 +08:00
1 parent ebab77057a
commit 47d6309cba
7 files changed
+29 -19

No files matched your search

@@ -11,7 +11,7 @@ export function AdminPageHeader({
}) {
return (
<header className="admin-page-header">
<div>
<div className="admin-page-header-text">
<h1 className="admin-page-header-title">{title}</h1>
{description ? <p className="admin-page-header-description">{description}</p> : null}
</div>
+1 -1
View File
@@ -54,7 +54,7 @@ export function BrandPage() {
{!brand.data ? null : (
<>
<AdminPageHeader
title="小程序工作台"
title="小程序页面"
description={
template.data?.description
? `先让访客理解你是谁、服务谁,以及为什么值得信任。${template.data.description}`
@@ -14,7 +14,7 @@ export function CapabilitiesPage() {
return (
<QueryState loading={query.isLoading} error={query.error} onRetry={() => void query.refetch()}>
<AdminPageHeader
title="能力管理"
title="能力插件"
description="以经营者视角调整模板能力的开关与展示设置;保存后进入草稿,发布后生效。"
/>
{query.data?.length ? (
@@ -92,7 +92,7 @@ export function ServicesPage() {
onRetry={retry}
>
<AdminPageHeader
title="小程序内容:业务展示与详情"
title="业务提供项"
description={`在「${offeringPageLabel(workspace.data?.templateContent ?? undefined)}」管理访客能选择的服务、产品或案例;每项内容的补充资料会显示在对应的「${detailPageLabel(workspace.data?.templateContent ?? undefined)}」。`}
extra={
<Button type="primary" onClick={() => editor.beginOffering()}>
@@ -57,8 +57,8 @@ export function TrustContentPage() {
onRetry={() => void Promise.all([query.refetch(), workspace.refetch()])}
>
<AdminPageHeader
title="小程序内容:品牌介绍与信任"
description={`填写真实的经历、案例、资历、流程和服务说明。这些内容会显示在${trustPlacement};保存后需发布品牌,小程序才会更新。`}
title="信任内容"
description={`填写真实的经历、案例、资历、流程与服务说明,发布品牌后即会展示在${trustPlacement}。`}
extra={
<Button type="primary" onClick={() => begin()}>
添加品牌内容
+15 -9
View File
@@ -171,22 +171,28 @@ body {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
gap: 24px;
margin-bottom: 32px;
}
.admin-page-header-text {
flex: 1 1 auto;
min-width: 0;
}
.admin-page-header-title {
margin: 0;
font-size: 24px;
font-size: 20px;
font-weight: 600;
line-height: 1.35;
line-height: 1.4;
color: var(--admin-text);
}
.admin-page-header-description {
margin: 8px 0 0;
font-size: 14px;
line-height: 1.5;
margin: 6px 0 0;
max-width: 880px;
font-size: 13px;
line-height: 1.6;
color: var(--admin-text-secondary);
}
@@ -495,9 +501,9 @@ body {
.admin-brand-title {
margin: 0;
font-size: 20px;
font-size: 18px;
font-weight: 600;
line-height: 1.4;
line-height: 1.45;
color: var(--admin-text);
}