feat: navbar and footer
This commit is contained in:
@ -5,6 +5,7 @@ import "swiper/css/pagination";
|
||||
import "swiper/css/scrollbar";
|
||||
import { ReactNode } from "react";
|
||||
import {
|
||||
AppShell,
|
||||
ColorSchemeScript,
|
||||
mantineHtmlProps,
|
||||
MantineProvider,
|
||||
@ -13,6 +14,11 @@ import { theme } from "@/theme";
|
||||
import "@/app/global.css";
|
||||
import { ModalsProvider } from "@mantine/modals";
|
||||
import { Notifications } from "@mantine/notifications";
|
||||
import AppShellFooterWrapper from "@/components/layout/AppShellWrappers/AppShellFooterWrapper";
|
||||
import AppShellMainWrapper from "@/components/layout/AppShellWrappers/AppShellMainWrapper";
|
||||
import AppShellNavbarWrapper from "@/components/layout/AppShellWrappers/AppShellNavbarWrapper";
|
||||
import Footer from "@/components/layout/Footer/Footer";
|
||||
import Navbar from "@/components/layout/Navbar/Navbar";
|
||||
import { modals } from "@/modals/modals";
|
||||
import { ReactQueryProvider } from "@/providers/ReactQueryProvider";
|
||||
import ReduxProvider from "@/providers/ReduxProvider";
|
||||
@ -58,7 +64,27 @@ export default function RootLayout({ children }: Props) {
|
||||
<ModalsProvider
|
||||
labels={{ confirm: "Да", cancel: "Нет" }}
|
||||
modals={modals}>
|
||||
{children}
|
||||
<AppShell
|
||||
layout={"alt"}
|
||||
withBorder={false}
|
||||
navbar={{
|
||||
width: 160,
|
||||
breakpoint: "sm",
|
||||
collapsed: {
|
||||
desktop: false,
|
||||
mobile: true,
|
||||
},
|
||||
}}>
|
||||
<AppShellNavbarWrapper>
|
||||
<Navbar />
|
||||
</AppShellNavbarWrapper>
|
||||
<AppShellMainWrapper>
|
||||
{children}
|
||||
</AppShellMainWrapper>
|
||||
<AppShellFooterWrapper>
|
||||
<Footer />
|
||||
</AppShellFooterWrapper>
|
||||
</AppShell>
|
||||
</ModalsProvider>
|
||||
</ReduxProvider>
|
||||
<Notifications position="bottom-right" />
|
||||
|
||||
Reference in New Issue
Block a user