-
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
26afcb4
commit f54bacf
Showing
21 changed files
with
71 additions
and
65 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,66 @@ | ||
import "@/styles/globals.css"; | ||
import { Metadata, Viewport } from "next"; | ||
import clsx from "clsx"; | ||
import { PublicEnvScript } from "next-runtime-env"; | ||
|
||
import { Providers } from "./providers"; | ||
|
||
import { siteConfig } from "@/config/site"; | ||
import { fontSans } from "@/config/fonts"; | ||
import { Navbar } from "@/components/navbar"; | ||
import { Sidebar } from "@/components/sidebar"; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
default: siteConfig.name, | ||
template: `%s - ${siteConfig.name}`, | ||
}, | ||
description: siteConfig.description, | ||
icons: { | ||
icon: "/favicon.ico", | ||
}, | ||
}; | ||
|
||
export const viewport: Viewport = { | ||
themeColor: [ | ||
{ media: "(prefers-color-scheme: light)", color: "white" }, | ||
{ media: "(prefers-color-scheme: dark)", color: "black" }, | ||
], | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html suppressHydrationWarning lang="en"> | ||
<head> | ||
<PublicEnvScript /> | ||
<link | ||
href="https://unpkg.com/[email protected]/css/boxicons.min.css" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body | ||
className={clsx( | ||
"min-h-screen bg-background font-sans antialiased", | ||
fontSans.variable | ||
)} | ||
> | ||
<Providers themeProps={{ attribute: "class", defaultTheme: "light" }}> | ||
<div className="relative flex flex-col h-screen"> | ||
<Navbar /> | ||
<div className="flex flex-grow mx-6"> | ||
<Sidebar /> | ||
<main className="flex-grow container max-w-screen"> | ||
{children} | ||
</main> | ||
</div> | ||
<footer className="w-full flex items-center justify-center py-3" /> | ||
</div> | ||
</Providers> | ||
</body> | ||
</html> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,65 +1,12 @@ | ||
import "@/styles/globals.css"; | ||
import { Metadata, Viewport } from "next"; | ||
import clsx from "clsx"; | ||
import { PublicEnvScript } from "next-runtime-env"; | ||
|
||
import { Providers } from "./providers"; | ||
|
||
import { siteConfig } from "@/config/site"; | ||
import { fontSans } from "@/config/fonts"; | ||
import { Navbar } from "@/components/navbar"; | ||
import { Sidebar } from "@/components/sidebar"; | ||
|
||
export const metadata: Metadata = { | ||
title: { | ||
default: siteConfig.name, | ||
template: `%s - ${siteConfig.name}`, | ||
}, | ||
description: siteConfig.description, | ||
icons: { | ||
icon: "/favicon.ico", | ||
}, | ||
}; | ||
|
||
export const viewport: Viewport = { | ||
themeColor: [ | ||
{ media: "(prefers-color-scheme: light)", color: "white" }, | ||
{ media: "(prefers-color-scheme: dark)", color: "black" }, | ||
], | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html suppressHydrationWarning lang="en"> | ||
<head> | ||
<PublicEnvScript /> | ||
<link | ||
href="https://unpkg.com/[email protected]/css/boxicons.min.css" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body | ||
className={clsx( | ||
"min-h-screen bg-background font-sans antialiased", | ||
fontSans.variable | ||
)} | ||
> | ||
<Providers themeProps={{ attribute: "class", defaultTheme: "light" }}> | ||
<div className="relative flex flex-col h-screen"> | ||
<Navbar /> | ||
<div className="flex flex-grow mx-6"> | ||
<Sidebar /> | ||
<main className="flex-grow container max-w-screen"> | ||
{children} | ||
</main> | ||
</div> | ||
<footer className="w-full flex items-center justify-center py-3" /> | ||
</div> | ||
</Providers> | ||
<body> | ||
<div>{children}</div> | ||
</body> | ||
</html> | ||
); | ||
|
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
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