-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from zainsci/main
feat(app): Migrate down to Pages Router
- Loading branch information
Showing
34 changed files
with
991 additions
and
899 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 +1,16 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "@/styles/globals.css", | ||
"baseColor": "gray", | ||
"cssVariables": true | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "@/styles/globals.css", | ||
"baseColor": "gray", | ||
"cssVariables": true | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import Footer from "@/components/footer" | ||
import TopNavigationBar from "@/components/navigation/TopNavigationBar" | ||
import { ThemeProvider } from "@/components/ui/theme-provider" | ||
import { Metadata } from "next" | ||
import { Ubuntu } from "next/font/google" | ||
import Head from "next/head" | ||
|
||
const inter = Ubuntu({ weight: ["400", "700"], subsets: ["cyrillic"] }) | ||
|
||
export default function RootLayout({ | ||
children, | ||
title, | ||
}: { | ||
children: React.ReactNode | ||
title: string | ||
}) { | ||
return ( | ||
<> | ||
<Head> | ||
<title>JavaScript Kampala | {title}</title> | ||
</Head> | ||
<div | ||
className={`${inter.className} w-screen min-h-screen overflow-x-hidden`} | ||
> | ||
<ThemeProvider | ||
attribute="class" | ||
defaultTheme="system" | ||
enableSystem | ||
disableTransitionOnChange | ||
> | ||
<TopNavigationBar /> | ||
|
||
<main className="container max-w-5xl mx-auto py-20 flex flex-col"> | ||
{children} | ||
</main> | ||
|
||
<Footer /> | ||
</ThemeProvider> | ||
</div> | ||
</> | ||
) | ||
} |
Oops, something went wrong.