feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
Copyright (C) 2025 QuantumNous
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import UserCenterBreadcrumb from './UserCenterBreadcrumb';
|
||||
|
||||
/**
|
||||
* 个人端子页面统一标题区:面包屑 + 28px 标题 + 14px 副标题(+ 可选右侧操作)。
|
||||
* 几何与配色见 src/styles/user-center.css,来源为原型图.zip 中的
|
||||
* 使用记录、在线充值、个人设置截图。只负责呈现,不承载业务状态。
|
||||
*/
|
||||
export default function UserCenterPageHeader({
|
||||
title,
|
||||
subtitle,
|
||||
extra,
|
||||
breadcrumb,
|
||||
className = '',
|
||||
}) {
|
||||
return (
|
||||
<header className={`uc-page-header ${className}`.trim()}>
|
||||
{breadcrumb === undefined ? <UserCenterBreadcrumb /> : breadcrumb}
|
||||
<div className='uc-page-header-main'>
|
||||
<div className='uc-page-header-text'>
|
||||
<h1 className='uc-page-title'>{title}</h1>
|
||||
{subtitle ? <p className='uc-page-subtitle'>{subtitle}</p> : null}
|
||||
</div>
|
||||
{extra ? <div className='uc-page-header-extra'>{extra}</div> : null}
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user