style: reduce empty space on dev-env page

- Tighter vertical spacing (space-y-4, smaller header margins)
- Larger device mockup at all breakpoints (up to 700px monitor)
- Wider content area (max-w-5xl) for dev-env page
- Less padding in device hero section

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-14 08:39:15 +08:00
parent 1077c76366
commit 8d08383391
4 changed files with 13 additions and 13 deletions

View File

@@ -76,11 +76,11 @@ export default async function StaticPage({ params }: Props) {
<>
<JsonLd data={webPageSchema} />
<ReadingProgress />
<PostLayout hasToc={hasToc} contentKey={slug}>
<div className="space-y-8">
<PostLayout hasToc={hasToc} contentKey={slug} wide={slug === 'dev-env'}>
<div className={slug === 'dev-env' ? 'space-y-4' : 'space-y-8'}>
<SectionDivider>
<ScrollReveal>
<header className="mb-6 space-y-4 text-center">
<header className={slug === 'dev-env' ? 'mb-4 space-y-3 text-center' : 'mb-6 space-y-4 text-center'}>
{page.published_at && (
<p className="type-small text-slate-500 dark:text-slate-500">
{new Date(page.published_at).toLocaleDateString(