From 80051bd1e45ef51b4a9b382dc307027ddea7c79d Mon Sep 17 00:00:00 2001 From: Jessica Nash Date: Tue, 22 Aug 2023 23:34:36 -0400 Subject: [PATCH] fixes several frontend issues including download page, spacing --- frontend/src/App.css | 1 - frontend/src/App.jsx | 31 +++++++++------------- frontend/src/assets/custom.css | 2 +- frontend/src/common/Footer.jsx | 17 ++++++------ frontend/src/components/Graph.jsx | 9 ++++--- frontend/src/pages/Download.jsx | 2 +- frontend/src/pages/Home.jsx | 43 ++++++++++++++++++------------- 7 files changed, 53 insertions(+), 52 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index d3ece5e..b1d2c29 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -1,6 +1,5 @@ .App { text-align: center; - height: 100vh; } .App-logo { diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 9a54dae..8db9953 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -4,14 +4,10 @@ import { BrowserRouter as Router, useLocation } from 'react-router-dom'; import ResponsiveAppBar from './common/Navbar'; import { AppRoutes } from './common/Routes'; import Footer from './common/Footer'; +import { Box } from '@mui/material' -import Home from './pages/Home' -//import Download from './pages/Download' -//import Search from './pages/SearchHook' -//import NeighborSearch from './pages/Neighbors' +import Home from './pages/Home'; -// Lazy loading for improved performance -const Download = lazy(() => import('./pages/Download')); const Search = lazy(() => import('./pages/SearchHook')); const NeighborSearch = lazy(() => import('./pages/Neighbors')); @@ -19,34 +15,31 @@ const pages = { 'Home': , 'Search': , 'Neighbors': , - 'Download': , }; function Content() { const location = useLocation(); return ( -
+ <> {location.pathname !== "/" && location.pathname !== "/home" && } Loading...
}> - + ); } - function App() { return ( -
- -
- -
-
- -
+ <> + + + + + +