From 7f516accb8dba0f3535413cdfd4cf53643bedf94 Mon Sep 17 00:00:00 2001 From: Jessica Nash Date: Thu, 5 Oct 2023 11:46:13 -0400 Subject: [PATCH 1/3] remove unused files --- frontend/src/Album.js | 148 ----------------------------------------- frontend/src/Album.tsx | 137 -------------------------------------- 2 files changed, 285 deletions(-) delete mode 100644 frontend/src/Album.js delete mode 100644 frontend/src/Album.tsx diff --git a/frontend/src/Album.js b/frontend/src/Album.js deleted file mode 100644 index e78dde2..0000000 --- a/frontend/src/Album.js +++ /dev/null @@ -1,148 +0,0 @@ -import * as React from 'react'; -import AppBar from '@mui/material/AppBar'; -import Button from '@mui/material/Button'; -import CameraIcon from '@mui/icons-material/PhotoCamera'; -import Card from '@mui/material/Card'; -import CardActions from '@mui/material/CardActions'; -import CardContent from '@mui/material/CardContent'; -import CardMedia from '@mui/material/CardMedia'; -import CssBaseline from '@mui/material/CssBaseline'; -import Grid from '@mui/material/Grid'; -import Stack from '@mui/material/Stack'; -import Box from '@mui/material/Box'; -import Toolbar from '@mui/material/Toolbar'; -import Typography from '@mui/material/Typography'; -import Container from '@mui/material/Container'; -import Link from '@mui/material/Link'; -import { createTheme, ThemeProvider } from '@mui/material/styles'; - -import MyPlot from "./Graph.js"; - -function Copyright() { - return ( - - {'Copyright © '} - - Your Website - {' '} - {new Date().getFullYear()} - {'.'} - - ); -} - -const cards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; - -const theme = createTheme(); - -export default function Album() { - return ( - - - - - - - Album layout - - - -
- {/* Hero unit */} - - - - Album layout - - - Something short and leading about the collection below—its contents, - the creator, etc. Make it short and sweet, but not too short so folks - don't simply skip over it entirely! - - - - - - - - - - - - - - - - {/* End hero unit */} - - {cards.map((card) => ( - - - - - - Heading - - - This is a media card. You can use this section to describe the - content. - - - - - - - - - ))} - - -
- {/* Footer */} - - - Footer - - - Something here to give the footer a purpose! - - - - {/* End footer */} -
- ); -} \ No newline at end of file diff --git a/frontend/src/Album.tsx b/frontend/src/Album.tsx deleted file mode 100644 index eb73d7e..0000000 --- a/frontend/src/Album.tsx +++ /dev/null @@ -1,137 +0,0 @@ -import * as React from 'react'; -import AppBar from '@mui/material/AppBar'; -import Button from '@mui/material/Button'; -import CameraIcon from '@mui/icons-material/PhotoCamera'; -import Card from '@mui/material/Card'; -import CardActions from '@mui/material/CardActions'; -import CardContent from '@mui/material/CardContent'; -import CardMedia from '@mui/material/CardMedia'; -import CssBaseline from '@mui/material/CssBaseline'; -import Grid from '@mui/material/Grid'; -import Stack from '@mui/material/Stack'; -import Box from '@mui/material/Box'; -import Toolbar from '@mui/material/Toolbar'; -import Typography from '@mui/material/Typography'; -import Container from '@mui/material/Container'; -import Link from '@mui/material/Link'; -import { createTheme, ThemeProvider } from '@mui/material/styles'; - -function Copyright() { - return ( - - {'Copyright © '} - - Your Website - {' '} - {new Date().getFullYear()} - {'.'} - - ); -} - -const cards = [1, 2, 3, 4, 5, 6, 7, 8, 9]; - -const theme = createTheme(); - -export default function Album() { - return ( - - - - - - - Album layout - - - -
- {/* Hero unit */} - - - - Album layout - - - Something short and leading about the collection below—its contents, - the creator, etc. Make it short and sweet, but not too short so folks - don't simply skip over it entirely. - - - - - - - - - {/* End hero unit */} - - {cards.map((card) => ( - - - - - - Heading - - - This is a media card. You can use this section to describe the - content. - - - - - - - - - ))} - - -
- {/* Footer */} - - - Footer - - - Something here to give the footer a purpose! - - - - {/* End footer */} -
- ); -} \ No newline at end of file From e8233416e61824f099d9fe06285df0d28567b86d Mon Sep 17 00:00:00 2001 From: Jessica Nash Date: Thu, 5 Oct 2023 11:46:45 -0400 Subject: [PATCH 2/3] move theming options to outer level --- frontend/src/App.jsx | 13 +++++++++++++ frontend/src/common/MoleculeUtils.jsx | 6 +++--- frontend/src/common/Navbar.jsx | 2 +- frontend/src/components/KetcherPopup.jsx | 4 ---- frontend/src/pages/Home.jsx | 6 ++++-- frontend/src/pages/Molecule.jsx | 4 ++-- frontend/src/pages/Neighbors.jsx | 6 +++--- frontend/src/pages/SearchHook.jsx | 4 +--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 9fef449..faceb32 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -8,6 +8,17 @@ import { Box } from '@mui/material' import Home from './pages/Home'; + +import { createTheme, ThemeProvider } from '@mui/material/styles'; + +const theme = createTheme({ + palette: { + primary: { + main: "#393536", + } + }, +}); + const Search = lazy(() => import('./pages/SearchHook')); const NeighborSearch = lazy(() => import('./pages/Neighbors')); const Library_Details = lazy(() => import('./pages/Library_Details')) @@ -35,9 +46,11 @@ function App() { return ( <> + +