forked from YJU-OKURA/project_minori-next-deployment-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
34 lines (30 loc) · 979 Bytes
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type {Metadata} from 'next';
import {Inter} from 'next/font/google';
import {Navbar} from '../components/navbar';
import {Footer} from '../components/footer';
import RecoilRootContainer from '../components/RecoilRootContainer';
import './globals.css';
import '@/src/styles/variable.css';
const inter = Inter({subsets: ['latin']});
export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
};
const RootLayout = ({children}: {children: React.ReactNode}) => {
return (
<html lang="en">
<body className={inter.className}>
<RecoilRootContainer>
<div className="flex h-full relative">
<Navbar />
<div className="grow overflow-x-auto overflow-y-auto">
<div className="mainContainer">{children}</div>
<Footer />
</div>
</div>
</RecoilRootContainer>
</body>
</html>
);
};
export default RootLayout;