From ca919608df1be71b2f05072b19b036ee7b9e65d6 Mon Sep 17 00:00:00 2001 From: MatthewHsu1 Date: Thu, 6 Jun 2024 18:30:25 -0700 Subject: [PATCH] Added front end for target matching mechanism. --- houston/src/App.tsx | 4 +- houston/src/pages/Layout.css | 2 +- houston/src/pages/Layout.tsx | 3 + houston/src/pages/TargetMatch.css | 95 +++++++++++++++++++++++++++++++ houston/src/pages/TargetMatch.tsx | 93 ++++++++++++++++++++++++++++++ 5 files changed, 195 insertions(+), 2 deletions(-) create mode 100644 houston/src/pages/TargetMatch.css create mode 100644 houston/src/pages/TargetMatch.tsx diff --git a/houston/src/App.tsx b/houston/src/App.tsx index db65b37..edc5156 100644 --- a/houston/src/App.tsx +++ b/houston/src/App.tsx @@ -12,13 +12,14 @@ import Layout from './pages/Layout'; import Report from './pages/Report'; import NoPage from './pages/NoPage'; import Settings from './pages/Settings' - +import TargetMatch from "./pages/TargetMatch"; import { ConnectionType, ConnectionStatus } from "./utilities/temp"; import { SettingsConfig, loadSettings } from "./utilities/settings"; import { LatLng } from "leaflet"; import Drop from "./pages/Drop"; + /** * Main React function * @returns App @@ -106,6 +107,7 @@ function App() { } /> } /> }/> + } /> } /> diff --git a/houston/src/pages/Layout.css b/houston/src/pages/Layout.css index 654ec50..9d3e358 100644 --- a/houston/src/pages/Layout.css +++ b/houston/src/pages/Layout.css @@ -52,7 +52,7 @@ li:has(a.active) { transition: background-color var(--std-transition); } -nav.topbar li:nth-child(6) { +nav.topbar li:nth-child(7) { margin-right: auto; } diff --git a/houston/src/pages/Layout.tsx b/houston/src/pages/Layout.tsx index 1bd8bd8..33fb9a4 100644 --- a/houston/src/pages/Layout.tsx +++ b/houston/src/pages/Layout.tsx @@ -136,6 +136,9 @@ function Layout({statuses}:{statuses:ConnectionStatus[]}) {
  • Drop
  • +
  • + Target +