mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 18:52:06 +00:00
Switch google fonts to use Next.js font optimization, animate comment fade in, and refactor beer like handler and comment submit handler.
16 lines
383 B
TypeScript
16 lines
383 B
TypeScript
import { FC, ReactNode } from 'react';
|
|
import Navbar from './Navbar';
|
|
|
|
const Layout: FC<{ children: ReactNode }> = ({ children }) => {
|
|
return (
|
|
<div className="flex h-screen flex-col">
|
|
<header className="sticky top-0 z-50">
|
|
<Navbar />
|
|
</header>
|
|
<div className="relative top-0 h-full flex-1">{children}</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|