-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: introduce shared root layout
- Loading branch information
Showing
8 changed files
with
39 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
import { Metadata } from 'next'; | ||
import React, { ReactNode } from 'react'; | ||
import { inter } from '@local/ui/fonts'; | ||
import '@local/styles/home-globals.scss'; | ||
import '@local/ui/home.globals.scss'; | ||
import { Header } from '@local/ui/Header'; | ||
import { Inner } from '@local/ui/Inner'; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
template: '%s | Home | Litera.me', | ||
default: 'Litera.me', | ||
}, | ||
description: 'Home of the Litera Family', | ||
metadataBase: new URL('https://litera.me'), | ||
}; | ||
|
||
export default function HomeLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<body className={`${inter.className} antialiased`}> | ||
<Header /> | ||
<Inner>{children}</Inner> | ||
</body> | ||
</html> | ||
<> | ||
<Header /> | ||
<Inner>{children}</Inner> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,6 @@ | ||
import { Metadata } from 'next'; | ||
import { ReactNode } from 'react'; | ||
import '@local/styles/globals.scss'; | ||
import { inter } from '@local/ui/fonts'; | ||
import React from 'react'; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
template: '%s | Litera.me', | ||
default: 'Litera.me', | ||
}, | ||
description: 'Litera Family', | ||
metadataBase: new URL('https://litera.me'), | ||
}; | ||
import '@local/ui/homepage.globals.scss'; | ||
|
||
export default function HomepageLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<body className={`${inter.className} antialiased`}>{children}</body> | ||
</html> | ||
); | ||
return children; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Metadata } from 'next'; | ||
import { ReactNode } from 'react'; | ||
import { inter } from '@local/ui/fonts'; | ||
import React from 'react'; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
template: '%s | Litera.me', | ||
default: 'Litera.me', | ||
}, | ||
description: 'Litera Family', | ||
metadataBase: new URL('https://litera.me'), | ||
}; | ||
|
||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<body className={`${inter.className} antialiased`}>{children}</body> | ||
</html> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.