subman-nextjs/src/app/layout.tsx

34 lines
861 B
TypeScript
Raw Normal View History

2024-06-11 08:16:34 +00:00
import type { Metadata } from "next";
import { Inter } from "next/font/google";
2024-06-14 09:25:18 +00:00
import { Toaster } from "@/components/ui/toaster";
2024-06-12 12:48:37 +00:00
import "./tailwind.css";
2024-06-19 21:21:56 +00:00
import Link from "next/link";
2024-06-11 08:16:34 +00:00
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
2024-06-12 12:59:21 +00:00
title: "Subman",
description: "A self-hosted literary submission tracker."
2024-06-11 08:16:34 +00:00
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
2024-06-11 13:37:22 +00:00
<body className={inter.className}>
2024-06-19 21:21:56 +00:00
<div id="layout-container" className="flex">
<div id="sidebar" >
<Link href="/story/create"><h1>Create Story</h1></Link>
<Link href="/publication/create"><h1>Create Publication</h1></Link>
</div>
{children}
2024-06-11 13:37:22 +00:00
</div>
2024-06-14 09:25:18 +00:00
<Toaster />
</body>
2024-06-19 21:21:56 +00:00
</html >
2024-06-11 08:16:34 +00:00
);
}