Refactor api requests and components out of pages

This commit is contained in:
Aaron William Po
2023-01-28 21:05:20 -05:00
parent a182f55280
commit fe277d5964
32 changed files with 1455 additions and 302 deletions

15
components/ui/Layout.tsx Normal file
View File

@@ -0,0 +1,15 @@
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="top-0">
<Navbar />
</header>
<div className="animate-in fade-in top-0 h-full flex-1">{children}</div>
</div>
);
};
export default Layout;