REFACTOR(repo): simplify project structure
- Move services/nextjs to nextjs/ - Move deploy/docker/Dockerfile.prod to Dockerfile - Add GitHub Actions workflows (ci.yml, build.yml) - Remove deploy/, services/, scripts/ folders
This commit is contained in:
62
nextjs/app/layout.tsx
Normal file
62
nextjs/app/layout.tsx
Normal file
@@ -0,0 +1,62 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { ThemeProvider } from "@/src/app/providers/theme-provider";
|
||||
import { AuthProvider } from "@/src/app/providers/auth-provider";
|
||||
import NextTopLoader from 'nextjs-toploader';
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Jotion",
|
||||
description: "Generated by Jotion",
|
||||
icons: {
|
||||
icon: [
|
||||
{
|
||||
media: "(prefers-color-scheme: light)",
|
||||
url: "/next.svg",
|
||||
href: "/next.svg",
|
||||
},
|
||||
{
|
||||
media: "(prefers-color-scheme: dark)",
|
||||
url: "/next.svg",
|
||||
href: "/next.svg",
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={`${inter.className} bg-white dark:bg-[#1F1F1F]`}>
|
||||
<NextTopLoader
|
||||
color="#3b82f6"
|
||||
initialPosition={0.08}
|
||||
crawlSpeed={200}
|
||||
height={3}
|
||||
crawl={true}
|
||||
showSpinner={false}
|
||||
easing="ease"
|
||||
speed={200}
|
||||
shadow="0 0 10px #3b82f6,0 0 5px #3b82f6"
|
||||
/>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
storageKey="notion-theme"
|
||||
>
|
||||
<AuthProvider>
|
||||
{children}
|
||||
</AuthProvider>
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user