migrate to radix ui, make header draft
This commit is contained in:
+14
-7
@@ -1,26 +1,33 @@
|
||||
import type { Metadata } from "next"
|
||||
import type { ReactNode } from "react"
|
||||
|
||||
import "@shared/styles/global.scss"
|
||||
import "bootstrap/dist/css/bootstrap.min.css"
|
||||
import { Open_Sans } from "next/font/google"
|
||||
|
||||
import { QueryClientProvider } from "@shared/context/QueryClientProvider"
|
||||
import "@shared/styles/global.scss"
|
||||
|
||||
import { AppProviders } from "@shared/context/AppProviders"
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Coffee Project",
|
||||
description: "Standalone Next.js app using FSD structure",
|
||||
}
|
||||
|
||||
const open_sans = Open_Sans({
|
||||
preload: true,
|
||||
display: "swap",
|
||||
variable: "--font-open-sans",
|
||||
})
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: ReactNode
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<QueryClientProvider>
|
||||
<body>{children}</body>
|
||||
</QueryClientProvider>
|
||||
<html lang="ru" className={open_sans.variable}>
|
||||
<body>
|
||||
<AppProviders>{children}</AppProviders>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
|
||||
+8
-1
@@ -1,7 +1,14 @@
|
||||
import { Header } from "@widgets/Header"
|
||||
|
||||
export default function EssentialTemplate({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
return children
|
||||
return (
|
||||
<div>
|
||||
<Header />
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user