@@ -3,12 +3,19 @@ import { Geist, Geist_Mono } from 'next/font/google';
33import {
44 BlankExperienceContentType ,
55 initContentTypeRegistry ,
6- initDisplayTemplateRegistry ,
7- } from '@episerver/cms-sdk' ;
8- import { initReactComponentRegistry } from '@episerver/cms-sdk/react/server' ;
6+ } from '@optimizely/cms-sdk' ;
7+ import { initReactComponentRegistry } from '@optimizely/cms-sdk/react/server' ;
98
109import './globals.css' ;
11- import Article from '@/components/Article' ;
10+ import Header from '@/components/base/Header' ;
11+ import Footer from '@/components/base/Footer' ;
12+ import Jumbotron , { JumbotronContentType } from '@/components/Jumbotron' ;
13+ import Teaser , { TeaserContentType } from '@/components/Teaser' ;
14+ import Editorial , { EditorialContentType } from '@/components/Editorial' ;
15+ import Contact , { ContactContentType } from '@/components/Contact' ;
16+ import StartPage , { StartPageContentType } from '@/components/StartPage' ;
17+ import Product , { ProductContentType } from '@/components/Product' ;
18+ import StandardPage from '@/components/StandardPage' ;
1219
1320const geistSans = Geist ( {
1421 variable : '--font-geist-sans' ,
@@ -25,10 +32,26 @@ export const metadata: Metadata = {
2532 description : 'Generated by create next app' ,
2633} ;
2734
28- initDisplayTemplateRegistry ( [ ] ) ;
29- initContentTypeRegistry ( [ BlankExperienceContentType ] ) ;
35+ initContentTypeRegistry ( [
36+ BlankExperienceContentType ,
37+ StartPageContentType ,
38+ JumbotronContentType ,
39+ TeaserContentType ,
40+ EditorialContentType ,
41+ ContactContentType ,
42+ ProductContentType ,
43+ ] ) ;
44+
3045initReactComponentRegistry ( {
31- resolver : { Article } ,
46+ resolver : {
47+ StartPage,
48+ Jumbotron,
49+ Teaser,
50+ Editorial,
51+ Contact,
52+ Product,
53+ StandardPage,
54+ } ,
3255} ) ;
3356
3457export default function RootLayout ( {
@@ -41,7 +64,9 @@ export default function RootLayout({
4164 < body
4265 className = { `${ geistSans . variable } ${ geistMono . variable } antialiased` }
4366 >
67+ < Header />
4468 { children }
69+ < Footer />
4570 </ body >
4671 </ html >
4772 ) ;
0 commit comments