migrate to radix ui, make header draft

This commit is contained in:
Daniil
2026-01-20 00:50:12 +03:00
parent 4688f65c5a
commit 3dfb9453ec
62 changed files with 1757 additions and 165 deletions
+14 -7
View File
@@ -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
View File
@@ -1,7 +1,14 @@
import { Header } from "@widgets/Header"
export default function EssentialTemplate({
children,
}: {
children: React.ReactNode
}) {
return children
return (
<div>
<Header />
{children}
</div>
)
}