feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -19,11 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React from 'react';
|
||||
|
||||
/**
|
||||
* 企业中心签名渐变区(方案 A+ 签名层的核心组件)。
|
||||
*
|
||||
* 冲击力护栏:每页至多使用一次;品牌渐变全部走 --brand-* token,
|
||||
* 随主题预设整套切换。亮色 = 品牌渐变实底;暗色 = midnight glow
|
||||
* (深底 + 渐变辉光边缘),两套模式各有性格。
|
||||
* 企业工作台横幅,背景与轮廓来自原型 .ew-hero。
|
||||
*
|
||||
* @param {React.ReactNode} eyebrow 顶部小字(如时段问候/版块名)
|
||||
* @param {React.ReactNode} title 大标题
|
||||
@@ -32,29 +28,29 @@ import React from 'react';
|
||||
* @param {React.ReactNode} [children] 底部扩展槽(如 KPI 行)
|
||||
* @param {string} [className]
|
||||
*/
|
||||
const OrgHero = ({ eyebrow, title, subtitle, actions, children, className = '' }) => (
|
||||
<div
|
||||
className={`relative overflow-hidden rounded-xl border border-brand/20 bg-gradient-to-br from-brand-from via-brand-via to-brand-to text-white shadow-[var(--elevation-md)] dark:border-white/10 dark:from-brand-via/30 dark:via-neutral-950 dark:to-neutral-950 ${className}`}
|
||||
>
|
||||
{/* 暗色 midnight glow:左上角品牌辉光,亮色下渐变实底本身就是签名,不再叠加 */}
|
||||
<div className='pointer-events-none absolute -left-16 -top-24 hidden h-56 w-56 rounded-full bg-brand-from/25 blur-3xl dark:block' />
|
||||
<div className='pointer-events-none absolute inset-x-0 top-0 hidden h-px bg-gradient-to-r from-transparent via-white/25 to-transparent dark:block' />
|
||||
|
||||
<div className='relative px-5 py-5 sm:px-6 sm:py-6'>
|
||||
<div className='flex items-start justify-between gap-4 flex-wrap'>
|
||||
const OrgHero = ({
|
||||
eyebrow,
|
||||
title,
|
||||
subtitle,
|
||||
actions,
|
||||
children,
|
||||
className = '',
|
||||
}) => (
|
||||
<div className={`org-workbench-hero ${className}`}>
|
||||
<div className='org-workbench-hero-art' aria-hidden='true'>
|
||||
<i />
|
||||
<i />
|
||||
<i />
|
||||
</div>
|
||||
<div className='org-workbench-hero-content'>
|
||||
<div className='org-workbench-hero-heading'>
|
||||
<div className='min-w-0'>
|
||||
{eyebrow && (
|
||||
<div className='mb-1 text-xs font-medium text-white/75 dark:text-brand-from/90'>
|
||||
{eyebrow}
|
||||
</div>
|
||||
<div className='org-workbench-hero-greeting'>{eyebrow}</div>
|
||||
)}
|
||||
<h1 className='text-xl sm:text-2xl font-bold tracking-tight truncate'>
|
||||
{title}
|
||||
</h1>
|
||||
<h1>{title}</h1>
|
||||
{subtitle && (
|
||||
<p className='mt-1 max-w-2xl text-sm text-white/70 dark:text-gray-400'>
|
||||
{subtitle}
|
||||
</p>
|
||||
<p className='org-workbench-hero-subtitle'>{subtitle}</p>
|
||||
)}
|
||||
</div>
|
||||
{actions && (
|
||||
|
||||
Reference in New Issue
Block a user