Add central layout.tsx for /learn/* and /parent/* routes
Next.js route-level layouts provide Sidebar + gradient background automatically for all sub-pages. Individual pages no longer need their own wrapper divs or Sidebar imports. - learn/layout.tsx: Sidebar + purple gradient for all learning pages - parent/layout.tsx: Same for all parent portal pages - LearnLayout.tsx: Reusable component for other pages - Fixed broken <LearnLayout>}> artifacts from previous refactoring - Removed duplicate Sidebar/wrapper code from 9 sub-pages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -95,7 +95,7 @@ export default function MatchPage() {
|
||||
const matchedTotal = round * 6 + matched.size
|
||||
|
||||
return (
|
||||
<div className={`min-h-screen flex flex-col ${isDark ? 'bg-gradient-to-br from-indigo-900 via-purple-900 to-pink-800' : 'bg-gradient-to-br from-slate-100 via-indigo-50 to-violet-100'}`}>
|
||||
<>
|
||||
{/* Header */}
|
||||
<div className={`${glassCard} border-0 border-b`}>
|
||||
<div className="max-w-2xl mx-auto px-6 py-4 flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user