File tree 5 files changed +38
-25
lines changed
5 files changed +38
-25
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
+ < main id = "main-content" className = "flex-grow" >
14
+ { children }
15
+ </ main >
16
+ < HealFooter />
17
+ </ >
18
+ ) ;
19
+ }
Original file line number Diff line number Diff line change 1
1
import Document , {
2
2
DocumentContext ,
3
3
DocumentInitialProps ,
4
- Html ,
5
- Head ,
6
- Main ,
7
- NextScript ,
8
4
} from 'next/document' ;
9
5
import { ColorSchemeScript } from '@mantine/core' ;
10
- import HealHeader from '@/lib/HealNav/HealHeader' ;
11
- import HealFooter from '@/lib/HealNav/HealFooter' ;
12
6
13
7
class Gen3Document extends Document {
14
8
static async getInitialProps (
@@ -25,22 +19,6 @@ class Gen3Document extends Document {
25
19
) ,
26
20
} ;
27
21
}
28
-
29
- render ( ) {
30
- return (
31
- < Html lang = "en" >
32
- < Head />
33
- < body className = "flex flex-col min-h-screen" >
34
- < HealHeader />
35
- < main id = "main-content" className = "flex-grow" >
36
- < Main />
37
- < NextScript />
38
- </ main >
39
- < HealFooter />
40
- </ body >
41
- </ Html >
42
- ) ;
43
- }
44
22
}
45
23
46
24
export default Gen3Document ;
Original file line number Diff line number Diff line change
1
+ import { GetServerSideProps } from 'next' ;
1
2
import React from 'react' ;
2
3
import HealFooter from '@/lib/HealNav/HealFooter' ;
3
4
@@ -9,4 +10,10 @@ const StandaloneFooterPage = () => {
9
10
) ;
10
11
} ;
11
12
13
+ export const getServerSideProps : GetServerSideProps = async ( ) => {
14
+ return {
15
+ props : { } ,
16
+ } ;
17
+ } ;
18
+
12
19
export default StandaloneFooterPage ;
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