basic shape
This commit is contained in:
35
packages/client/src/app.tsx
Normal file
35
packages/client/src/app.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import "./app.css";
|
||||
import { Route, Router } from "@solidjs/router";
|
||||
import { Suspense } from "solid-js";
|
||||
import pkg from "../package.json";
|
||||
|
||||
const Version = () => (
|
||||
<div class="full free clear">
|
||||
<span
|
||||
style={{
|
||||
margin: "5px",
|
||||
"font-size": "0.8rem",
|
||||
"font-family": "monospace",
|
||||
"pointer-events": "all",
|
||||
}}
|
||||
class="fixed-br"
|
||||
>
|
||||
v{pkg.version}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<Router
|
||||
root={(props) => (
|
||||
<>
|
||||
<Suspense>{props.children}</Suspense>
|
||||
<Version />
|
||||
</>
|
||||
)}
|
||||
>
|
||||
<Route path="/" component={() => "tesingt"} />
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user