2024-01-27 17:07:38 +00:00
|
|
|
import "solid-devtools";
|
|
|
|
|
2024-01-27 16:05:19 +00:00
|
|
|
/* @refresh reload */
|
|
|
|
import { render } from "solid-js/web";
|
|
|
|
|
|
|
|
import "./index.css";
|
|
|
|
import "./assets/fonts/fonts.css";
|
|
|
|
import { Route, Router } from "@solidjs/router";
|
|
|
|
|
|
|
|
import RootLayout from "./layouts/RootLayout.tsx";
|
|
|
|
import Dashboard from "./pages/dashboard.tsx";
|
|
|
|
import Login from "./pages/auth/login.tsx";
|
|
|
|
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
|
|
|
|
render(() => (
|
|
|
|
<Router root={RootLayout}>
|
|
|
|
<Route path="/" component={Dashboard} />
|
|
|
|
<Route path="/auth/login" component={Login} />
|
|
|
|
</Router>
|
|
|
|
), root!);
|