Feat: 更新 UI 细节

页眉样式修改,增加社交媒体按钮
调整卡片内间距和整体宽度
修复手机版文章卡片插图展示异常
This commit is contained in:
2026-05-20 19:01:12 +08:00
parent 13a09d6995
commit 7d0ac45e8a
9 changed files with 45 additions and 18 deletions
+2 -2
View File
@@ -28,12 +28,12 @@ export default function DynamicPage({ loaderData }: Route.ComponentProps) {
const page = loaderData;
return (
<main className="px-2 py-24 max-w-3xl mx-auto">
<main className="px-2 py-24 max-w-4xl mx-auto">
<section className="mb-12">
<h1 className="text-center text-5xl/tight md:text-7xl/tight mb-4">{page.data.title}</h1>
<p className="text-center opacity-60">{page.data.desc}</p>
</section>
<section className="p-5 bg-white rounded-xl border-b-4 border-b-cyan-200">
<section className="p-5 md:p-12 bg-white rounded-xl border-b-4 border-b-cyan-200">
<Article html={page.data.content} />
</section>
</main>