Initial import of weiyuan frontend

This commit is contained in:
qiubaishen
2026-10-15 16:33:46 +08:00
commit d8f3aee261
774 changed files with 374914 additions and 0 deletions
@@ -0,0 +1,71 @@
/*
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';
/**
* 企业中心签名渐变区(方案 A+ 签名层的核心组件)。
*
* 冲击力护栏:每页至多使用一次;品牌渐变全部走 --brand-* token,
* 随主题预设整套切换。亮色 = 品牌渐变实底;暗色 = midnight glow
* (深底 + 渐变辉光边缘),两套模式各有性格。
*
* @param {React.ReactNode} eyebrow 顶部小字(如时段问候/版块名)
* @param {React.ReactNode} title 大标题
* @param {React.ReactNode} [subtitle] 副文案
* @param {React.ReactNode} [actions] 右侧操作区
* @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'>
<div className='min-w-0'>
{eyebrow && (
<div className='mb-1 text-xs font-medium text-white/75 dark:text-brand-from/90'>
{eyebrow}
</div>
)}
<h1 className='text-xl sm:text-2xl font-bold tracking-tight truncate'>
{title}
</h1>
{subtitle && (
<p className='mt-1 max-w-2xl text-sm text-white/70 dark:text-gray-400'>
{subtitle}
</p>
)}
</div>
{actions && (
<div className='org-hero-actions flex items-center gap-2 flex-wrap justify-end'>
{actions}
</div>
)}
</div>
{children && <div className='mt-4'>{children}</div>}
</div>
</div>
);
export default OrgHero;