From 2190ea2af65e0872a492f9a4894494d12e85ec68 Mon Sep 17 00:00:00 2001 From: shangfangjian Date: Fri, 18 Sep 2026 11:24:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E7=BC=96=E8=BE=91=E6=8E=92?= =?UTF-8?q?=E7=89=88=E4=B8=89=E4=BB=B6=E5=A5=97=E4=B8=8E=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=95=88=E7=8E=87=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 报头升格:刊名 60px,Oxford 粗细双线,期号行(当年第几天)+体育版位 - 预测比分:主客队名纵排(writing-mode vertical-rl),右上「终裁」红印 - 五路专家倾向条:home_edge 分歧可视化,红=利主/墨=利客,条高=强度 - 强调色纪律:tab 激活态与后台导航选中改墨色,红只留 live/终裁/印章/错误 - 数字字形:serif 栈 Noto Serif SC 提到 Georgia 之前(直线数字),斜体只留给刊名(.wordmark) - 赛程行悬停左缘红书签;空态改双线「启事」框 --- frontend/src/App.tsx | 40 ++++++---- frontend/src/admin/AdminLayout.tsx | 8 +- frontend/src/index.css | 30 +++++++- frontend/src/pages/Matches.tsx | 119 +++++++++++++++++++++++++---- frontend/tailwind.config.js | 6 +- 5 files changed, 166 insertions(+), 37 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 815d65f..ecf83d2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -21,33 +21,47 @@ function dateLine(): string { }) } +/** 期号:当年第几天,报纸连载的仪式感 */ +function issueNo(): number { + const now = new Date() + const start = new Date(now.getFullYear(), 0, 0) + return Math.floor((now.getTime() - start.getTime()) / 86400000) +} + function HomePage() { return ( // grain: 纸张噪点氛围层;报头、赛程行、预测版各自带 rise-in 入场
- {/* ── 报头:粗线 + 居中刊名 + 报眉 ── */} + {/* ── 报头:Oxford 双线 + 大字刊名 + 期号报眉 ── */}
-
-

+
+

先知 - + Profeto

-

+

足球比分预测 · 五路专家 · 终裁汇总

- {dateLine()} - - - 管理后台 - + + 第 {issueNo()} 期 + + {dateLine()} + + + 体育版 + + + 管理后台 + +

diff --git a/frontend/src/admin/AdminLayout.tsx b/frontend/src/admin/AdminLayout.tsx index cf75856..0c2305d 100644 --- a/frontend/src/admin/AdminLayout.tsx +++ b/frontend/src/admin/AdminLayout.tsx @@ -90,14 +90,14 @@ export default function AdminLayout() {

先知 - + Profeto

ADMIN
- {/* 导航:选中项以印报红方块标记,同前台胜平负选中样式 */} + {/* 导航:选中项以墨色方块标记(红色只留给异常状态,与前台纪律一致) */}