File tree 4 files changed +30
-8
lines changed
4 files changed +30
-8
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import HealHeader from './HealNav/HealHeader' ;
3
+ import HealFooter from './HealNav/HealFooter' ;
4
+
5
+ export default function Layout ( {
6
+ children,
7
+ } : {
8
+ children : React . ReactNode
9
+ } ) {
10
+ return (
11
+ < >
12
+ < HealHeader />
13
+ { children }
14
+ < HealFooter />
15
+ </ >
16
+ ) ;
17
+ }
Original file line number Diff line number Diff line change 1
1
import Document , {
2
2
DocumentContext ,
3
3
DocumentInitialProps ,
4
- Html ,
5
4
Head ,
5
+ Html ,
6
6
Main ,
7
7
NextScript ,
8
8
} from 'next/document' ;
9
9
import { ColorSchemeScript } from '@mantine/core' ;
10
- import HealHeader from '@/lib/HealNav/HealHeader' ;
11
- import HealFooter from '@/lib/HealNav/HealFooter' ;
12
10
13
11
class Gen3Document extends Document {
14
12
static async getInitialProps (
@@ -31,12 +29,10 @@ class Gen3Document extends Document {
31
29
< Html lang = "en" >
32
30
< Head />
33
31
< body className = "flex flex-col min-h-screen" >
34
- < HealHeader />
35
32
< main id = "main-content" className = "flex-grow" >
36
33
< Main />
37
34
< NextScript />
38
35
</ main >
39
- < HealFooter />
40
36
</ body >
41
37
</ Html >
42
38
) ;
Original file line number Diff line number Diff line change
1
+ import Layout from '@/lib/Layouts' ;
1
2
import HealLandingPage from './Home' ;
2
- export default HealLandingPage ;
3
+
4
+ export default function IndexPage ( ) {
5
+ return (
6
+ < Layout >
7
+ < HealLandingPage />
8
+ </ Layout >
9
+ ) ;
10
+ }
Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ import React from 'react';
2
2
import CardedPageContent from '@/lib/NewlyAvailableDatasets/CardedPageContent' ;
3
3
import newDatasetsPageConfig from '../../config/heal/newDatasets.json' ;
4
4
import PageTitle from '@/lib/HealNav/PageTitle' ;
5
+ import Layout from '@/lib/Layouts' ;
5
6
6
7
const NewlyAvailableDatasetsPage = ( ) => {
7
8
return (
8
- < >
9
+ < Layout >
9
10
< PageTitle pageName = "Newly Available Datasets" />
10
11
< div className = "flex flex-row justify-items-center" >
11
12
< div className = "sm:prose-base lg:prose-lg xl:prose-xl 2xl:prose-xl mx-20" >
12
13
< CardedPageContent { ...newDatasetsPageConfig } />
13
14
</ div >
14
15
</ div >
15
- </ >
16
+ </ Layout >
16
17
) ;
17
18
} ;
18
19
You can’t perform that action at this time.
0 commit comments