tcmd: Fixes regex reuse in inline tokenizer,
tcmd: changes popover syntax to allow for embeddable markdown
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
Cog8ToothIcon,
|
||||
PuzzlePieceIcon,
|
||||
} from "@heroicons/react/24/solid";
|
||||
import Link from "next/link";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
@@ -20,6 +21,29 @@ export default function RootLayout({
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const navItems = [
|
||||
{
|
||||
to: "/schemas",
|
||||
icon: CircleStackIcon,
|
||||
text: "Schemas",
|
||||
},
|
||||
{
|
||||
to: "/game-systems",
|
||||
icon: PuzzlePieceIcon,
|
||||
text: "Game Systems",
|
||||
},
|
||||
{
|
||||
to: "/publications",
|
||||
icon: BookOpenIcon,
|
||||
text: "Publications",
|
||||
},
|
||||
{
|
||||
to: "/settings",
|
||||
icon: Cog8ToothIcon,
|
||||
text: "Settings",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={inter.className + " flex min-h-[100vh]"}>
|
||||
@@ -28,18 +52,17 @@ export default function RootLayout({
|
||||
Tabletop Commander
|
||||
</h1>
|
||||
<ul className="my-6 flex flex-col gap-6">
|
||||
<li className="flex items-center gap-2">
|
||||
<CircleStackIcon className="w-6 h-6" />Schemas
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<PuzzlePieceIcon className="w-6 h-6" />Game Systems
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<BookOpenIcon className="w-6 h-6" />Publications
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<Cog8ToothIcon className="w-6 h-6" />Settings
|
||||
</li>
|
||||
{navItems.map((n) => (
|
||||
<li key={"nav-item" + n.text}>
|
||||
<Link
|
||||
href={n.to}
|
||||
className="flex items-center gap-2 group hover:text-purple-300 transition-colors"
|
||||
>
|
||||
<n.icon className="w-6 h-6 group-hover:fill-purple-300 transition-colors" />
|
||||
{n.text}
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
<main className="p-8 w-full ml-64">
|
||||
|
Reference in New Issue
Block a user