diff --git a/frontend/index.html b/frontend/index.html index 796f71b..67a2fff 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,5 +1,5 @@ - +
diff --git a/frontend/public/images/icons/close.svg b/frontend/public/images/icons/close.svg new file mode 100644 index 0000000..3446b59 --- /dev/null +++ b/frontend/public/images/icons/close.svg @@ -0,0 +1,14 @@ + diff --git a/frontend/public/images/icons/dark-mode.svg b/frontend/public/images/icons/dark-mode.svg new file mode 100644 index 0000000..6de1aee --- /dev/null +++ b/frontend/public/images/icons/dark-mode.svg @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/frontend/public/images/icons/light-mode.svg b/frontend/public/images/icons/light-mode.svg new file mode 100644 index 0000000..93058fd --- /dev/null +++ b/frontend/public/images/icons/light-mode.svg @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/frontend/public/images/icons/menu.svg b/frontend/public/images/icons/menu.svg new file mode 100644 index 0000000..56cbb07 --- /dev/null +++ b/frontend/public/images/icons/menu.svg @@ -0,0 +1,3 @@ + diff --git a/frontend/src/components/HardwareImg.tsx b/frontend/src/components/HardwareImg.tsx index dfa1300..a97f933 100644 --- a/frontend/src/components/HardwareImg.tsx +++ b/frontend/src/components/HardwareImg.tsx @@ -18,7 +18,7 @@ export const HardwareImg = ({ model }: { model: number }) => { src={`${import.meta.env.BASE_URL}images/hardware/${image}`} alt={modelName} title={modelName} - className="w-8 h-8 object-cover" + className="w-8 h-8 object-cover dark:brightness-5" /> ); }; diff --git a/frontend/src/components/HeardBy.tsx b/frontend/src/components/HeardBy.tsx index c1582b6..c8d44f4 100644 --- a/frontend/src/components/HeardBy.tsx +++ b/frontend/src/components/HeardBy.tsx @@ -9,7 +9,10 @@ export const HeardBy = () => { <> {" "} that have been heard by the mesh by{" "} - + {config?.server?.node_id} {" "} ({config?.server?.node_id}) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 26d15b0..f4b056d 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -1,226 +1,57 @@ -import { Link, useLocation } from "react-router-dom"; +import { useEffect, useState } from "react"; +import { useLocation } from "react-router-dom"; -import { useGetConfigQuery } from "../slices/apiSlice"; - -const defaultTools = [ - { name: "Armooo's MeshView", url: "https://meshview.armooo.net" }, - { name: "Liam's Meshtastic Map", url: "https://meshtastic.liamcottle.net" }, - { name: "MeshMap", url: "https://meshmap.net" }, - { name: "Bay Mesh Explorer", url: "https://app.bayme.sh" }, - { name: "HWT Path Profiler", url: "https://heywhatsthat.com/profiler.html" }, -]; +import { Menu } from "./Menu"; export const Layout = ({ children }: { children: React.ReactNode }) => { const { pathname } = useLocation(); - const { data: config } = useGetConfigQuery(); - - return ( - <> -