diff --git a/src/Home.tsx b/src/Home.tsx index 74466f4..a555522 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -16,26 +16,23 @@ const Home: Component = () => { }; return ( -
-

Washing Machine

-
- -
- - -
-
-
+
+ +
+ + +
+
); }; diff --git a/src/Wash.tsx b/src/Wash.tsx new file mode 100644 index 0000000..0839148 --- /dev/null +++ b/src/Wash.tsx @@ -0,0 +1,15 @@ +// @ts-types="solid-js" +import { Component } from "solid-js"; +import { useParams } from "@solidjs/router"; + +const Wash: Component = () => { + const params = useParams(); + + return ( +
+

Washing {params.handle} :3

+
+ ); +}; + +export default Wash; diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx new file mode 100644 index 0000000..5e6b041 --- /dev/null +++ b/src/components/Layout.tsx @@ -0,0 +1,16 @@ +// @ts-types="solid-js" +import { Component } from "solid-js"; +import { A, RouteSectionProps } from "@solidjs/router"; + +const Layout: Component = (props) => { + return ( +
+ +

Washing Machine

+
+ {props.children} +
+ ); +}; + +export default Layout; diff --git a/src/index.tsx b/src/index.tsx index 762ee27..2873918 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,6 +5,8 @@ import "solid-devtools"; import Home from "./Home.tsx"; import { Route, Router } from "@solidjs/router"; +import Wash from "./Wash.tsx"; +import Layout from "./components/Layout.tsx"; const root = document.getElementById("root"); @@ -16,9 +18,9 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) { render( () => ( - + -

:3

} /> +
), root!,