From 2a7dffc3be5e9caeadc58cc61954f37b4f68435b Mon Sep 17 00:00:00 2001 From: Imbus Date: Thu, 19 Oct 2023 08:11:52 +0200 Subject: [PATCH] Polishing solid implementation --- client-solid/src/Root.tsx | 103 ++++++++++++++++++++++++++++---------- client-solid/src/api.ts | 12 ++--- 2 files changed, 82 insertions(+), 33 deletions(-) diff --git a/client-solid/src/Root.tsx b/client-solid/src/Root.tsx index f24b745..254424a 100644 --- a/client-solid/src/Root.tsx +++ b/client-solid/src/Root.tsx @@ -1,7 +1,9 @@ import { createSignal } from "solid-js"; import { createContext } from "solid-js"; -import { createPost, getPosts, getPost } from "./api"; +import { Route, Routes, A } from "@solidjs/router"; + +import { createPost, getPosts } from "./api"; import { Post, NewPost } from "./api"; export const TestContext = createContext("Test123"); @@ -10,23 +12,51 @@ function Root() { return ( <> - +
+ +
+ +
+
); } +function Navbar() { + return ( + + ); +} + function Menu() { return ( -