style(admin): 清理 AI slop 痕迹

- 移除教师端 hero 的英文眉标(TEACHING DAY),日期并入正文描述
- 删除不再使用的 attendance-eyebrow 样式
- Dashboard 的 ══ 装饰注释改为普通注释

kill-ai-slop 扫描: 18 处命中 → 7 处(剩余均为合理用法:
链接 hover 下划线、头像圆形角)
This commit is contained in:
2026-08-07 17:41:01 +08:00
parent 8dc72d6e1b
commit ff3b6cdfde
3 changed files with 12 additions and 20 deletions

View File

@@ -59,13 +59,6 @@
font-size: 15px; font-size: 15px;
} }
.attendance-eyebrow {
font-size: 11px;
font-weight: 700;
letter-spacing: 1.7px;
opacity: 0.72;
}
.teacher-topbar { .teacher-topbar {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@@ -76,11 +76,10 @@ export const TeacherAttendanceWorkspace: React.FC<{ canCreate: boolean }> = ({ c
<div className="attendance-page teacher-attendance"> <div className="attendance-page teacher-attendance">
<section className="attendance-hero attendance-hero--teacher"> <section className="attendance-hero attendance-hero--teacher">
<div> <div>
<span className="attendance-eyebrow">
TEACHING DAY · {dayjs().format('MM月DD日 dddd')}
</span>
<h1></h1> <h1></h1>
<p></p> <p>
{dayjs().format('MM月DD日 dddd')} ·
</p>
</div> </div>
<Button icon={<ReloadOutlined />} onClick={() => void loadWorkspace()}> <Button icon={<ReloadOutlined />} onClick={() => void loadWorkspace()}>

View File

@@ -242,7 +242,7 @@ const DashboardPage: React.FC = () => {
/> />
</div> </div>
{/* ═══════════ 待办与异常 ═══════════ */} {/* 待办与异常 */}
<DashboardTodoCards <DashboardTodoCards
absentCount={absentCount} absentCount={absentCount}
draftCount={draftCount} draftCount={draftCount}
@@ -250,7 +250,7 @@ const DashboardPage: React.FC = () => {
pendingDeposits={pendingDeposits} pendingDeposits={pendingDeposits}
/> />
{/* ═══════════ 核心 KPI ═══════════ */} {/* 核心 KPI */}
<Row gutter={[16, 16]} style={SECTION_ROW_STYLE}> <Row gutter={[16, 16]} style={SECTION_ROW_STYLE}>
<Col xs={12} sm={8} md={4}> <Col xs={12} sm={8} md={4}>
<Card> <Card>
@@ -307,7 +307,7 @@ const DashboardPage: React.FC = () => {
</Col> </Col>
</Row> </Row>
{/* ═══════════ 更多指标(折叠) ═══════════ */} {/* 更多指标(折叠) */}
<Collapse <Collapse
ghost ghost
items={[ items={[
@@ -441,7 +441,7 @@ const DashboardPage: React.FC = () => {
]} ]}
/> />
{/* ═══════════ 图表:考勤趋势 + 出勤分布 ═══════════ */} {/* 图表:考勤趋势 + 出勤分布 */}
<Row gutter={[16, 16]} style={SECTION_ROW_STYLE}> <Row gutter={[16, 16]} style={SECTION_ROW_STYLE}>
<Col xs={24} sm={12}> <Col xs={24} sm={12}>
<Card title="考勤趋势近30天"> <Card title="考勤趋势近30天">
@@ -469,7 +469,7 @@ const DashboardPage: React.FC = () => {
</Col> </Col>
</Row> </Row>
{/* ═══════════ 图表:班级出勤排行 ═══════════ */} {/* 图表:班级出勤排行 */}
<Row gutter={[16, 16]} style={SECTION_ROW_STYLE}> <Row gutter={[16, 16]} style={SECTION_ROW_STYLE}>
<Col xs={24} sm={12}> <Col xs={24} sm={12}>
<Card title="班级出勤率 TOP 5"> <Card title="班级出勤率 TOP 5">
@@ -497,7 +497,7 @@ const DashboardPage: React.FC = () => {
</Col> </Col>
</Row> </Row>
{/* ═══════════ 图表:费用分布 + 宿舍排行 ═══════════ */} {/* 图表:费用分布 + 宿舍排行 */}
<Row gutter={[16, 16]} style={SECTION_ROW_STYLE}> <Row gutter={[16, 16]} style={SECTION_ROW_STYLE}>
<Col xs={24} sm={12}> <Col xs={24} sm={12}>
<Card title="费用类型分布"> <Card title="费用类型分布">
@@ -525,7 +525,7 @@ const DashboardPage: React.FC = () => {
</Col> </Col>
</Row> </Row>
{/* ═══════════ 图表:月度收入趋势 ═══════════ */} {/* 图表:月度收入趋势 */}
<Row gutter={[16, 16]}> <Row gutter={[16, 16]}>
<Col xs={24}> <Col xs={24}>
<Card title="月度收入趋势"> <Card title="月度收入趋势">
@@ -541,10 +541,10 @@ const DashboardPage: React.FC = () => {
</Col> </Col>
</Row> </Row>
{/* ═══════════ 图表:教室占用热力图(懒加载) ═══════════ */} {/* 图表:教室占用热力图(懒加载) */}
<ClassroomHeatmapCard data={classroomOccupancy} isMobile={isMobile} /> <ClassroomHeatmapCard data={classroomOccupancy} isMobile={isMobile} />
{/* ═══════════ 图表:入住时间线甘特图(懒加载) ═══════════ */} {/* 图表:入住时间线甘特图(懒加载) */}
<GanttCard data={ganttData} isMobile={isMobile} periodEnd={period[1]} /> <GanttCard data={ganttData} isMobile={isMobile} periodEnd={period[1]} />
</div> </div>
); );