From 74c24b93b3b32889abf40cbb334e54c6196f78dc Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sat, 14 Nov 2026 14:59:01 -0500 Subject: [PATCH] Put the style guide on the page shell The style guide dropped a PageTopbar and a tab strip into the padded content well, so its bar floated with a gutter on every side: the arrangement its own "Page headers" section warns against. It now uses PageLayout, with the sections as the bar's tabs. --- frontend/src/pages/StyleGuide.jsx | 39 ++++++++++++++++--------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/frontend/src/pages/StyleGuide.jsx b/frontend/src/pages/StyleGuide.jsx index 4b7a09b4..2696f3b8 100644 --- a/frontend/src/pages/StyleGuide.jsx +++ b/frontend/src/pages/StyleGuide.jsx @@ -11,6 +11,7 @@ import { GitBranch, WifiOff, Clock } from 'lucide-react'; import { PageTopbar, SearchField, CatalogCard, CatalogGrid } from '@/components/ds'; +import PageLayout from '@/layouts/PageLayout'; import CopyField from '../components/CopyField'; import PortField from '../components/PortField'; import EnvEditor from '../components/EnvEditor'; @@ -109,24 +110,24 @@ export default function StyleGuide() { const sections = SECTIONS; return ( -
- } - title={t('app.styleGuide.styleGuide', 'Style guide')} - meta="Design system reference — dev only" - /> - - - - {sections.map(s => ( - - - {s.label} - - ))} - - - + // The same frame as every standalone page: PageLayout pins the bar to + // the top of the content region and carries the sections as its tabs. + // This page used to drop a PageTopbar and a tab strip into the padded + // content well, the exact arrangement its own "Page headers" section + // warns against. + } + title={t('app.styleGuide.styleGuide', 'Style guide')} + navLabel={t('app.styleGuide.sections', 'Style guide sections')} + tabs={sections.map((section) => ({ + id: section.id, + label: section.label, + icon: , + active: activeSection === section.id, + onSelect: () => setActiveSection(section.id), + }))} + >
{/* ── COLORS ── */} @@ -1470,7 +1471,7 @@ export default function StyleGuide() {
)}
- + ); }