diff options
Diffstat (limited to 'server/frontend/src/index.tsx')
-rw-r--r-- | server/frontend/src/index.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/server/frontend/src/index.tsx b/server/frontend/src/index.tsx index 610a78b..3009300 100644 --- a/server/frontend/src/index.tsx +++ b/server/frontend/src/index.tsx @@ -5,7 +5,7 @@ import 'solid-devtools'; import "./index.css"; import type { RouteDefinition } from "@solidjs/router"; import { Router } from "@solidjs/router"; -import { lazy } from "solid-js"; +import { lazy, onMount } from "solid-js"; const root = document.getElementById("root"); @@ -20,4 +20,11 @@ const routes: Array<RouteDefinition> = [ { path: "/analysis/:id", component: lazy(() => import("./Analysis.tsx")) }, ]; -render(() => <Router>{routes}</Router>, root!); +const Root = () => { + + return <div class="bg-gray-800 text-white min-h-[100vh]"> + <Router>{routes}</Router> + </div> +} + +render(() => <Root />, root!); |