-
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.
- Loading branch information
1 parent
00b324d
commit 8989387
Showing
9 changed files
with
171 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { PropsWithChildren } from "react"; | ||
|
||
export const CoreLayout = ({ children }: PropsWithChildren) => { | ||
return <div className="h-screen-safe relative">{children}</div>; | ||
}; |
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 @@ | ||
export * from "./CoreLayout"; |
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 @@ | ||
export * from './inter'; |
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,6 @@ | ||
import { Inter } from "next/font/google"; | ||
|
||
export const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-inter", | ||
}); |
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,6 +1,26 @@ | ||
import "@/styles/globals.scss"; | ||
import { CoreLayout } from "@/common/components/CoreLayout"; | ||
import { inter } from "@/common/fonts"; | ||
|
||
import type { AppProps } from "next/app"; | ||
|
||
import "@/styles/globals.scss"; | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
return <Component {...pageProps} />; | ||
const Layout = (Component as any).layout | ||
? (Component as any).layout | ||
: CoreLayout; | ||
|
||
return ( | ||
<> | ||
{/* This is required for fonts to work in Portal too */} | ||
<style global jsx>{` | ||
:root { | ||
--font-inter: ${inter.style.fontFamily}; | ||
} | ||
`}</style> | ||
<Layout> | ||
<Component {...pageProps} /> | ||
</Layout> | ||
</> | ||
); | ||
} |
Oops, something went wrong.