From 942a4c42c2236a8fea6c2e5526e5975a9da4307e Mon Sep 17 00:00:00 2001 From: James Pace Date: Sat, 7 Mar 2026 13:27:33 +0000 Subject: [PATCH] Change name. Hack on image. --- src/AppNav.tsx | 4 ++-- src/Home.tsx | 35 ++++++++++++++++++++--------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/src/AppNav.tsx b/src/AppNav.tsx index 9d52852..58f72d8 100644 --- a/src/AppNav.tsx +++ b/src/AppNav.tsx @@ -6,7 +6,7 @@ export function AppNav() { - N-DRIVE + J7-Bridge @@ -28,5 +28,5 @@ export function AppNav() { } export function Footer() { - return

Made with {"<3"} by James Pace.

; + return

Copyright 2026 James Pace

; } diff --git a/src/Home.tsx b/src/Home.tsx index 31a767a..7cd58e7 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -1,21 +1,21 @@ import { AppNav, Footer } from "./AppNav.tsx"; -import { Container, Row, Col, Image } from "react-bootstrap"; +import { Container, Row, Col, Image, Card } from "react-bootstrap"; import { atom, useAtom } from "jotai"; import { atomWithQuery } from "jotai-tanstack-query"; const costmapImageQuery = async () => { - const resp = await fetch("api/costmap_image"); - if (!resp.ok) { - throw new Error("Network response was not ok"); - } - const blob = await resp.blob(); - return URL.createObjectURL(blob); + const resp = await fetch("api/costmap_image"); + if (!resp.ok) { + throw new Error("Network response was not ok"); + } + const blob = await resp.blob(); + return URL.createObjectURL(blob); }; const costmapImageAtom = atomWithQuery(() => ({ - queryKey: ["costmap_image"], - queryFn: costmapImageQuery, - refetchInterval: 1000 // 1s + queryKey: ["costmap_image"], + queryFn: costmapImageQuery, + refetchInterval: 1000, // 1s })); export function Home() { @@ -23,18 +23,23 @@ export function Home() { let costmapImage = () => { if (isPending) { - return (

"Loading..."

); + return

"Loading..."

; } if (isError) { - return(

"Error!"

); + return

"Error!"

; } - return (); + return ; }; return (
- - { costmapImage() } + + + + {costmapImage()} + + +