Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/solid-motion-experiments.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import { MetaProvider, Title } from "@solidjs/meta";import { A, Router } from "@solidjs/router";import { FileRoutes } from "@solidjs/start/router";import { Suspense } from "solid-js";
import "./app.css";
const DEMO_PAGES = [ { href: "/", label: "Directory", }, { href: "/motion", label: "Motion", }, { href: "/presence", label: "Presence", }, { href: "/layout", label: "Layout", },] as const;
/** * Root application shell for the demo workspace. * * The router root owns the navigation frame so each capability route can focus on one * runtime contract while still sharing the same operator-facing directory and metadata. */export default function App() { return ( <Router root={props => ( <MetaProvider> <Title>Solid Motion Demos</Title> <nav class="app-nav" aria-label="Demo routes"> {DEMO_PAGES.map((page) => ( <A href={page.href}>{page.label}</A> ))} </nav> <Suspense>{props.children}</Suspense> </MetaProvider> )} > <FileRoutes /> </Router> );}