From 3262a5d183e5c8780e25f1acc010db77d321edfa Mon Sep 17 00:00:00 2001 From: Radiumcoders Date: Tue, 25 Aug 2026 19:35:22 +0530 Subject: [PATCH 1/5] feat: redesign docs layout with pinned content window frame - Sidebar fully merged into the page background (no border, no card chrome) - Content framed as a floating rounded window whose ring, corners, and shadow stay pinned while content scrolls underneath (sticky overlay layers + masked edge band) - Frosted sticky header inside the window; no extra divider borders - Pager cards restyled to the shared quiet block language - Exclude tmp-demos scratch projects from typecheck so builds pass --- app/globals.css | 17 +++++++++++++++++ components/docs-pager.tsx | 8 ++++---- components/docs-shell.tsx | 17 +++++++++++++---- components/docs-sidebar.tsx | 4 ++-- tsconfig.json | 2 +- 5 files changed, 37 insertions(+), 11 deletions(-) diff --git a/app/globals.css b/app/globals.css index f01ff0c..0d9cfa8 100644 --- a/app/globals.css +++ b/app/globals.css @@ -98,6 +98,23 @@ } } +/* Pinned docs window: opaque band around the card edges (top/bottom strips + and outside-corner zones) so scrolling content never crosses the frame. */ +.docs-window-mask { + background-color: var(--background); + mask-image: + linear-gradient(#000 0 0), + linear-gradient(#000 0 0); + mask-size: + 100% 100%, + 100% calc(100% - 16px); + mask-position: + 0 0, + 0 8px; + mask-repeat: no-repeat; + mask-composite: exclude; +} + :root { --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); diff --git a/components/docs-pager.tsx b/components/docs-pager.tsx index 1f1f090..abcbb41 100644 --- a/components/docs-pager.tsx +++ b/components/docs-pager.tsx @@ -25,9 +25,9 @@ function PagerLink({ @@ -63,7 +63,7 @@ export function DocsPager({ return (