feat: homepage

This commit is contained in:
TresAbhi committed 2023-09-12 02:38:50 +00:00
1 parent 986a32b3ce
commit 02a07f3a8a
12 files changed
+214 -14

No files matched your search

+11 -2
View File
@@ -1,3 +1,4 @@
import { Roboto_Flex } from 'next/font/google';
import { ReactNode } from 'react';
import Navbar from '../components/Navbar';
@@ -5,9 +6,14 @@ interface RootLayoutProps {
children: ReactNode;
}
const robotoFlex = Roboto_Flex({
subsets: ['latin'],
display: 'swap',
});
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html>
<html lang="en" className={robotoFlex.className}>
<body
style={{
margin: 0,
@@ -20,11 +26,14 @@ export default function RootLayout({ children }: RootLayoutProps) {
display: 'flex',
flexDirection: 'column',
background: 'url(https://i.imgur.com/PhS06NJ.png)',
alignItems: 'center',
}}
>
<Navbar />
{children}
<div style={{ flex: 1, maxWidth: 780, width: '100%' }}>
{children}
</div>
</div>
</body>
</html>