diff --git a/frontend/index.html b/frontend/index.html index c751f94..1d9b0d9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,28 @@ + + + + + + + + + Walkup diff --git a/frontend/public/apple-splash-1125x2436.png b/frontend/public/apple-splash-1125x2436.png new file mode 100644 index 0000000..314ea2a Binary files /dev/null and b/frontend/public/apple-splash-1125x2436.png differ diff --git a/frontend/public/apple-splash-1170x2532.png b/frontend/public/apple-splash-1170x2532.png new file mode 100644 index 0000000..ef29d24 Binary files /dev/null and b/frontend/public/apple-splash-1170x2532.png differ diff --git a/frontend/public/apple-splash-1290x2796.png b/frontend/public/apple-splash-1290x2796.png new file mode 100644 index 0000000..ac07922 Binary files /dev/null and b/frontend/public/apple-splash-1290x2796.png differ diff --git a/frontend/public/apple-touch-icon.png b/frontend/public/apple-touch-icon.png new file mode 100644 index 0000000..7850407 Binary files /dev/null and b/frontend/public/apple-touch-icon.png differ diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico new file mode 100644 index 0000000..3ad463f Binary files /dev/null and b/frontend/public/favicon.ico differ diff --git a/frontend/public/icon-192.png b/frontend/public/icon-192.png new file mode 100644 index 0000000..137c746 Binary files /dev/null and b/frontend/public/icon-192.png differ diff --git a/frontend/public/icon-512.png b/frontend/public/icon-512.png new file mode 100644 index 0000000..c34709e Binary files /dev/null and b/frontend/public/icon-512.png differ diff --git a/frontend/public/icon.svg b/frontend/public/icon.svg index fbba96b..c25e4a6 100644 --- a/frontend/public/icon.svg +++ b/frontend/public/icon.svg @@ -1,8 +1,7 @@ - - + diff --git a/frontend/public/splash-art.svg b/frontend/public/splash-art.svg new file mode 100644 index 0000000..059fe28 --- /dev/null +++ b/frontend/public/splash-art.svg @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Walkup + + + Offline clip cache for the dugout + + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index aa3b4b8..9a65804 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,5 +1,5 @@ import { Component, useEffect, useState, type ErrorInfo, type ReactElement, type ReactNode } from "react"; -import { NavLink, Navigate, Route, Routes, useLocation } from "react-router-dom"; +import { Navigate, Route, Routes, useLocation, useNavigate } from "react-router-dom"; import { WalkupProvider, useWalkupContext } from "./hooks/useWalkupContext"; import { useSession } from "./hooks/useSession"; @@ -228,6 +228,7 @@ function ShellLayout() { const [navOpen, setNavOpen] = useState(false); const walkup = useWalkupContext(); const location = useLocation(); + const navigate = useNavigate(); const isOnline = useOnlineStatus(); const currentPageLabel = getNavbarPageLabel(location.pathname); const showNavbar = walkup.sessionQuery.data?.authenticated === true; @@ -250,12 +251,17 @@ function ShellLayout() { }; }, [showTeamSelectionModal]); + function goTo(pathname: string) { + setNavOpen(false); + navigate(pathname); + } + return (
{showNavbar ? (