diff --git a/app/(root)/ask-question/page.tsx b/app/(app)/ask-question/page.tsx similarity index 100% rename from app/(root)/ask-question/page.tsx rename to app/(app)/ask-question/page.tsx diff --git a/app/(root)/collections/page.tsx b/app/(app)/collections/page.tsx similarity index 100% rename from app/(root)/collections/page.tsx rename to app/(app)/collections/page.tsx diff --git a/app/(root)/community/page.tsx b/app/(app)/community/page.tsx similarity index 100% rename from app/(root)/community/page.tsx rename to app/(app)/community/page.tsx diff --git a/app/(root)/jobs/page.tsx b/app/(app)/jobs/page.tsx similarity index 100% rename from app/(root)/jobs/page.tsx rename to app/(app)/jobs/page.tsx diff --git a/app/(root)/layout.tsx b/app/(app)/layout.tsx similarity index 88% rename from app/(root)/layout.tsx rename to app/(app)/layout.tsx index aefd44e..cbbdfd3 100644 --- a/app/(root)/layout.tsx +++ b/app/(app)/layout.tsx @@ -21,8 +21,8 @@ const RootLayout = async ({ children }: { children: React.ReactNode }) => { {/* Content + Right Sidebar row */}
-
- {children} +
+
{children}
diff --git a/app/(root)/page.tsx b/app/(app)/page.tsx similarity index 100% rename from app/(root)/page.tsx rename to app/(app)/page.tsx diff --git a/app/(root)/profile/page.tsx b/app/(app)/profile/page.tsx similarity index 100% rename from app/(root)/profile/page.tsx rename to app/(app)/profile/page.tsx diff --git a/app/(root)/question/[id]/page.tsx b/app/(app)/question/[id]/page.tsx similarity index 100% rename from app/(root)/question/[id]/page.tsx rename to app/(app)/question/[id]/page.tsx diff --git a/app/(root)/tags/[slug]/page.tsx b/app/(app)/tags/[slug]/page.tsx similarity index 100% rename from app/(root)/tags/[slug]/page.tsx rename to app/(app)/tags/[slug]/page.tsx diff --git a/app/(root)/tags/page.tsx b/app/(app)/tags/page.tsx similarity index 100% rename from app/(root)/tags/page.tsx rename to app/(app)/tags/page.tsx diff --git a/app/globals.css b/app/globals.css index e7ffeff..fa3c889 100644 --- a/app/globals.css +++ b/app/globals.css @@ -69,6 +69,7 @@ :root { /* Layout */ --top-bar-height: 4rem; /* 64px — desktop & mobile top navigation */ + --right-sidebar-width: 22rem; /* 352px — right sidebar width at xl+ */ /* Base */ --radius: 0.625rem; @@ -256,11 +257,6 @@ @apply invert dark:invert-0; } - /* Consistent horizontal padding for main content and top bar alignment */ - .layout-padding-x { - @apply px-6 md:px-8 lg:px-12; - } - /* Subtle directional shadow for navigation edges (light mode only) */ .shadow-light { box-shadow: -10px 10px 20px 0px oklch(0.877 0.006 17.26 / 10%); diff --git a/components/navigation/desktop-topbar.tsx b/components/navigation/desktop-topbar.tsx index 96c44fd..069a12e 100644 --- a/components/navigation/desktop-topbar.tsx +++ b/components/navigation/desktop-topbar.tsx @@ -4,12 +4,16 @@ import { Button } from "@/components/ui/button"; export function DesktopTopBar() { return ( -
-
-

Global Search

+
+ {/* Left section: matches main content structure (padding + max-w-5xl centering) */} +
+
+

Global Search

+
-
+ {/* Right section: matches right sidebar width on xl */} +
diff --git a/components/navigation/mobile-topbar.tsx b/components/navigation/mobile-topbar.tsx index 37cb033..8769632 100644 --- a/components/navigation/mobile-topbar.tsx +++ b/components/navigation/mobile-topbar.tsx @@ -4,7 +4,7 @@ import { ThemeToggle } from "@/components/navigation/theme-toggle"; export function MobileTopBar() { return ( -
+
{/* biome-ignore lint/a11y/useAltText: Decorative logo, aria-label on parent link */} {/* biome-ignore lint/performance/noImgElement: SVG logo doesn't benefit from next/image optimisation */} diff --git a/components/right-sidebar/right-sidebar.tsx b/components/right-sidebar/right-sidebar.tsx index 4a83a15..b6f99b4 100644 --- a/components/right-sidebar/right-sidebar.tsx +++ b/components/right-sidebar/right-sidebar.tsx @@ -27,8 +27,8 @@ export async function RightSidebar() { id="right-sidebar" side="right" collapsible="none" - width="22rem" - className="border-l shadow-light" + width="var(--right-sidebar-width)" + className="border-l bg-background" > diff --git a/components/tag-link.tsx b/components/tag-link.tsx index 1648fa7..9a22516 100644 --- a/components/tag-link.tsx +++ b/components/tag-link.tsx @@ -23,7 +23,7 @@ export function TagLink({ href={`/tags/${name}`} className="group flex items-center justify-between gap-2 rounded-md p-1 transition-transform duration-150 hover:-translate-y-0.5 hover:scale-[1.005]" > - + {showIcon && (iconClass ? (