File tree Expand file tree Collapse file tree
playground/named-layouts/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export default function LandingLayout ( { children } : { children : React . ReactNode } ) {
2- return < div data-layout = "landing" > { children } </ div > ;
2+ return (
3+ < div data-layout = "landing" style = { { minHeight : '100vh' , margin : - 8 } } >
4+ < header
5+ style = { {
6+ boxSizing : 'border-box' ,
7+ width : '100%' ,
8+ padding : '16px 24px' ,
9+ background : '#305CDE' ,
10+ color : '#ffffff' ,
11+ fontWeight : 700 ,
12+ textAlign : 'center' ,
13+ } }
14+ >
15+ Landing
16+ </ header >
17+ < main style = { { padding : 16 } } > { children } </ main >
18+ </ div >
19+ ) ;
320}
Original file line number Diff line number Diff line change 11export default function ApiLayout ( { children } : { children : React . ReactNode } ) {
2- return < div data-layout = "api" > { children } </ div > ;
2+ return (
3+ < div data-layout = "api" style = { { minHeight : '100vh' , margin : - 8 } } >
4+ < header
5+ style = { {
6+ boxSizing : 'border-box' ,
7+ width : '100%' ,
8+ padding : '16px 24px' ,
9+ background : '#006400' ,
10+ color : '#ffffff' ,
11+ fontWeight : 700 ,
12+ textAlign : 'center' ,
13+ } }
14+ >
15+ API
16+ </ header >
17+ < main style = { { padding : 16 } } > { children } </ main >
18+ </ div >
19+ ) ;
320}
Original file line number Diff line number Diff line change 11export default function DocsLayout ( { children } : { children : React . ReactNode } ) {
2- return < div data-layout = "docs" > { children } </ div > ;
2+ return (
3+ < div data-layout = "docs" style = { { minHeight : '100vh' , margin : - 8 } } >
4+ < header
5+ style = { {
6+ boxSizing : 'border-box' ,
7+ width : '100%' ,
8+ padding : '16px 24px' ,
9+ background : '#FFCE1B' ,
10+ color : '#ffffff' ,
11+ fontWeight : 700 ,
12+ textAlign : 'center' ,
13+ } }
14+ >
15+ Docs
16+ </ header >
17+ < main style = { { padding : 16 } } > { children } </ main >
18+ </ div >
19+ ) ;
320}
Original file line number Diff line number Diff line change 11export default function RootLayout ( { children } : { children : React . ReactNode } ) {
2- return < div data-layout = "root" > { children } </ div > ;
2+ return (
3+ < div data-layout = "root" style = { { minHeight : '100vh' , margin : - 8 } } >
4+ < header
5+ style = { {
6+ boxSizing : 'border-box' ,
7+ width : '100%' ,
8+ padding : '16px 24px' ,
9+ background : '#dc2626' ,
10+ color : '#ffffff' ,
11+ fontWeight : 700 ,
12+ textAlign : 'center' ,
13+ } }
14+ >
15+ Layout
16+ </ header >
17+ < main style = { { padding : 16 } } > { children } </ main >
18+ </ div >
19+ ) ;
320}
You can’t perform that action at this time.
0 commit comments