From 75dab3512decc8448ad0cd4d15ec13f359e52eab Mon Sep 17 00:00:00 2001 From: yangchen Date: Fri, 12 Sep 2025 17:58:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B0=86=E5=86=85=E8=81=94=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=90=88=E5=85=A5globals.css=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=95=B4=E4=BD=93=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ app/page.tsx | 12 ++++----- 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/app/globals.css b/app/globals.css index 13d40b8..68aecaf 100644 --- a/app/globals.css +++ b/app/globals.css @@ -25,3 +25,73 @@ body { text-wrap: balance; } } + +/* globals.css */ + +:root { + --max-width: 800px; + --page-padding: 16px; + --heading-font-size: 28px; + --heading-font-weight: 700; + --heading-margin-bottom: 16px; + --card-border: 1px solid #eee; + --card-radius: 8px; + --card-padding: 16px; + --list-gap: 12px; +} + +/* 全局 main 容器 */ +.main-container { + max-width: var(--max-width); + margin: 40px auto; + padding: var(--page-padding); +} + +/* 标题 */ +.page-title { + font-size: var(--heading-font-size); + font-weight: var(--heading-font-weight); + margin-bottom: var(--heading-margin-bottom); +} + +/* 列表 */ +.doc-list { + display: grid; + gap: var(--list-gap); + list-style: none; + padding: 0; +} + +/* 卡片 */ +.doc-card { + border: var(--card-border); + border-radius: var(--card-radius); + padding: var(--card-padding); +} + +/* 链接 */ +.doc-link { + font-weight: 600; + text-decoration: none; +} +.doc-link:hover { + text-decoration: underline; +} + +input[type="text"] { + padding: 8px; + border: 1px solid #ccc; + border-radius: 6px; +} + +button { + padding: 8px 12px; + border-radius: 6px; + border: 1px solid #ddd; + background: #f5f5f5; + cursor: pointer; +} + +button:hover { + background: #eee; +} \ No newline at end of file diff --git a/app/page.tsx b/app/page.tsx index 95b21d3..fcc1922 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,12 +7,12 @@ export default function DocsIndex() { ) return ( -
-

Docs

-