chore(repo): initialize planarchy workspace
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import type { Metadata } from "next";
|
||||
import { TRPCProvider } from "~/lib/trpc/provider.js";
|
||||
import "./globals.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Planarchy — Resource Planning",
|
||||
description: "Interactive resource planning and project staffing tool",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<head>
|
||||
<script dangerouslySetInnerHTML={{__html: `
|
||||
try {
|
||||
var p = JSON.parse(localStorage.getItem('planarchy_theme') || '{}');
|
||||
if (p.mode === 'dark') document.documentElement.classList.add('dark');
|
||||
if (p.accent) document.documentElement.setAttribute('data-accent', p.accent);
|
||||
} catch(e) {}
|
||||
`}} />
|
||||
</head>
|
||||
<body className="min-h-screen bg-gray-50 font-sans antialiased">
|
||||
<TRPCProvider>{children}</TRPCProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user