From 6066f61c12c7d60b5e51647f6aa6d1a0af905e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9stor?= Date: Fri, 10 Jul 2026 16:40:59 +0700 Subject: [PATCH] fix(website): center homepage and hide blog navigation --- apps/website/docs/_nav.json | 5 ----- apps/website/src/styles/index.css | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/apps/website/docs/_nav.json b/apps/website/docs/_nav.json index 05fd4e03..d406a451 100644 --- a/apps/website/docs/_nav.json +++ b/apps/website/docs/_nav.json @@ -8,10 +8,5 @@ "text": "Playground", "link": "/playground/", "activeMatch": "^/playground/" - }, - { - "text": "Blog", - "link": "/blog/perf-swc-vs-babel", - "activeMatch": "^/blog/" } ] diff --git a/apps/website/src/styles/index.css b/apps/website/src/styles/index.css index 7f572da9..a2023cec 100644 --- a/apps/website/src/styles/index.css +++ b/apps/website/src/styles/index.css @@ -69,6 +69,20 @@ padding-top: 1rem; } +@media (width >= 1280px) { + /* Balance the outline rail so the homepage stays centered in the viewport. */ + .rp-doc-layout__container:has(.swc-home) + > .rp-doc-layout__sidebar-placeholder { + width: var(--rp-outline-width); + margin-left: var(--rp-outline-margin-right); + } + + .rp-doc-layout__doc-container:has(.swc-home) { + padding-right: 1.5rem; + padding-left: 1.5rem; + } +} + .swc-home { width: 100%; max-width: 52rem;