2023-04-15 01:21:33 -04:00
|
|
|
// @refresh reload
|
|
|
|
import { Suspense } from "solid-js";
|
2023-04-21 08:32:26 -04:00
|
|
|
import { A, Body, ErrorBoundary, FileRoutes, Head, Html, Meta, Routes, Scripts, Title } from "solid-start";
|
2023-04-15 01:21:33 -04:00
|
|
|
import "./root.css";
|
2023-04-21 08:32:26 -04:00
|
|
|
import BadassMap from './components/BadassMap';
|
|
|
|
import { StationsProvider } from "./components/StationsContext";
|
2023-04-15 01:21:33 -04:00
|
|
|
|
|
|
|
export default function Root() {
|
2023-04-15 04:34:50 -04:00
|
|
|
return (
|
|
|
|
<Html lang="en">
|
|
|
|
<Head>
|
2023-04-15 21:16:17 -04:00
|
|
|
<Title>Ride the Lightning</Title>
|
2023-04-15 04:34:50 -04:00
|
|
|
<Meta charset="utf-8" />
|
|
|
|
<Meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
</Head>
|
|
|
|
<Body>
|
|
|
|
<Suspense>
|
|
|
|
<ErrorBoundary>
|
2023-04-21 08:32:26 -04:00
|
|
|
<StationsProvider>
|
|
|
|
<A href="/">Map</A>
|
|
|
|
<A href="/about">About</A>
|
|
|
|
<Routes>
|
|
|
|
<FileRoutes />
|
|
|
|
</Routes>
|
|
|
|
<BadassMap />
|
|
|
|
</StationsProvider>
|
2023-04-15 04:34:50 -04:00
|
|
|
</ErrorBoundary>
|
|
|
|
</Suspense>
|
|
|
|
<Scripts />
|
|
|
|
</Body>
|
|
|
|
</Html>
|
|
|
|
);
|
2023-04-21 08:32:26 -04:00
|
|
|
};
|