From 5be4d5a5e9e9a3ec1fbb2c3153a2b9ac01b54845 Mon Sep 17 00:00:00 2001 From: tianywan819 <57418894+tianywan819@users.noreply.github.com> Date: Fri, 25 Aug 2023 12:22:56 -0400 Subject: [PATCH] Icons reformatted for Nav Bar. fix #164 --- client/src/App.css | 21 +- .../src/components/builder/usabilityDomain.js | 1 - client/src/components/home/Documentation.js | 7 +- client/src/images/api.jpeg | Bin 0 -> 12108 bytes client/src/layouts/MainLayout/AppDropDown.js | 66 +++++ client/src/layouts/MainLayout/DocDropDown.js | 77 ++++++ client/src/layouts/MainLayout/HelpDropDown.js | 58 +++++ client/src/layouts/MainLayout/NavBar.js | 246 ++++++++++-------- 8 files changed, 361 insertions(+), 115 deletions(-) create mode 100644 client/src/images/api.jpeg create mode 100644 client/src/layouts/MainLayout/AppDropDown.js create mode 100644 client/src/layouts/MainLayout/DocDropDown.js create mode 100644 client/src/layouts/MainLayout/HelpDropDown.js diff --git a/client/src/App.css b/client/src/App.css index 837a7d95..b0939eb7 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -88,4 +88,23 @@ justify-content: space-between; flex-wrap: wrap; margin: 0 -15px; -} \ No newline at end of file +} + +.nav-link { + text-decoration: none; + color: inherit; /* Inherits the color from its parent */ + /* Add any additional styling you want */ +} + +.hover-background { + color: inherit; + transition: background-color 0.3s ease; +} + +.white-icon { + color: white; +} + +.hover-background:hover { + background-color: inherit; /* Change to the desired background color on hover */ +} diff --git a/client/src/components/builder/usabilityDomain.js b/client/src/components/builder/usabilityDomain.js index bfe66d63..9974a136 100644 --- a/client/src/components/builder/usabilityDomain.js +++ b/client/src/components/builder/usabilityDomain.js @@ -65,7 +65,6 @@ export const UsabilityDomain = ({onSave}) => { )} -
) diff --git a/client/src/components/home/Documentation.js b/client/src/components/home/Documentation.js index acdd1543..5af7ee4b 100644 --- a/client/src/components/home/Documentation.js +++ b/client/src/components/home/Documentation.js @@ -10,6 +10,7 @@ import { } from "@material-ui/core"; import mediaWiki from "../../images/mediawikiwiki.svg"; +import api from "../../images/api.jpeg"; const useStyles = makeStyles({ bullet: { @@ -54,12 +55,10 @@ export default function Documentation() { global.window.open(docsLink)}> - BCO Docs Site + MediaWiki logo + API
- - User Guide, Best Practices, tutorial -

diff --git a/client/src/images/api.jpeg b/client/src/images/api.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..97ceab260278d986b932594cbb23504d49c3399e GIT binary patch literal 12108 zcmaL7WmH`~)GoR<8!PTm+@V-;mkkszZbe&MHtx=D(c(^vyB2qc0>zzD+}&M@9r~U- zzI*Taak54-GS|$SGcvOBJV~BspH~4ad1*Om00aU6(8~inF93nSD?}t*EF64XTwHv7 zd_p2ZLZW{WpBSHrh=}-~j887P;-3jo2v!yzHSBO)Qega2#Kix!&-hXVl-S6tP|5s#Yl zb1YJJRTqtfnz7TV^Ov~lpA&1e+>+`!HD_EV-Rl|wx%e-Zh+jGb?w^7GH^3vnff4_C z5q_x-=*28D0vHYv4*ajgKM~=d8*x=!BgfCN*;NzNoLy_DcoI(BYWOr#TYnnl_Wq`(qEG!$zUSP+RA0BM+j%NgDrT@ZYrve|jG}w3EE&PO%~jy^W)2m?p>G2?-TvEKgNg})cyglT^g$ij7z zSU~Rwb2J`%QSzS!uOK#mlFv~Nc$X$Ws*6zxT6sCOb z1P`{ib6zoQ_JVvh=ubhs^i9gR>YQs6KPV7OdxPfR&K(>>++8z|FOiq*(w~9NmWhyC z)it-w2fy|;gPErjiK&vmPd5UU1r9fnBzS1t43yX5Dv#On4$CF>m6}9N<7?gi0e?N? zj!sg&d4v@~k$uk1L+LD?XJ6I;tsXXRfq(5_gDKaN%Ob#I+4ll6?^r7b0CP0YV+c|M zLf<=(9#(Uo7jO?60WvLxW56#3!EPCbm%!|Ln==H>gEiw4I6E&)0X}v4jDv0U)P*RK z%y*6<7!yOwFcKE+GA0;NrJl$G7F^?<`UsG)P|v=CmC6z2xH}Vnt}_+9xPjlBzdlBL zuJ|n}D1pnFeXTL2*VoW}x!m(0{jU6Y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I`458!swhO~)N`R|+V7O=l zem4bzH^GG4URh-SZ8U@4{P+pT?`* + }> + + + + + + + + + + Builder + + + + + + Prefix Registry + + + + + + BCODB + + + + ); +} diff --git a/client/src/layouts/MainLayout/DocDropDown.js b/client/src/layouts/MainLayout/DocDropDown.js new file mode 100644 index 00000000..e292e38e --- /dev/null +++ b/client/src/layouts/MainLayout/DocDropDown.js @@ -0,0 +1,77 @@ +import * as React from "react"; +import IconButton from "@mui/joy/IconButton"; +import Menu from "@mui/joy/Menu"; +import MenuItem from "@mui/joy/MenuItem"; +import MenuButton from "@mui/joy/MenuButton"; +import Dropdown from "@mui/joy/Dropdown"; +import DescriptionOutlinedIcon from "@mui/icons-material/DescriptionOutlined"; +import { Tooltip } from "@material-ui/core"; +import ArrowDropDown from '@mui/icons-material/ArrowDropDown'; +import ApiOutlinedIcon from '@mui/icons-material/ApiOutlined'; +import WebhookOutlinedIcon from '@mui/icons-material/WebhookOutlined'; +import SettingsInputAntennaIcon from '@mui/icons-material/SettingsInputAntenna'; +import { ListItemDecorator } from "@mui/joy"; +import AutoStoriesOutlinedIcon from '@mui/icons-material/AutoStoriesOutlined'; + +export default function DocDropDown() { + return ( + + } + > + + + + + + + + + + Quick Start Guide + + + + + + BioCompute API + + + + + + Wiki + + + + + + BCO Resources + + + + ); +} diff --git a/client/src/layouts/MainLayout/HelpDropDown.js b/client/src/layouts/MainLayout/HelpDropDown.js new file mode 100644 index 00000000..8bf8b12f --- /dev/null +++ b/client/src/layouts/MainLayout/HelpDropDown.js @@ -0,0 +1,58 @@ +import * as React from "react"; +import MenuButton from "@mui/joy/MenuButton"; +import Menu from "@mui/joy/Menu"; +import MenuItem from "@mui/joy/MenuItem"; +import Apps from "@mui/icons-material/Apps"; +import Dropdown from "@mui/joy/Dropdown"; +// import AppRegistrationOutlinedIcon from "@mui/icons-material/AppRegistrationOutlined"; +import ModeEditOutlineOutlinedIcon from '@mui/icons-material/ModeEditOutlineOutlined'; +import SearchOutlinedIcon from '@mui/icons-material/SearchOutlined'; +import { ListItemDecorator } from "@mui/joy"; +import GroupOutlinedIcon from '@mui/icons-material/GroupOutlined'; +import IconButton from "@mui/joy/IconButton"; +import { Tooltip } from "@material-ui/core"; +// import { Mode } from "@mui/icons-material"; +import ArrowDropDown from '@mui/icons-material/ArrowDropDown'; +import HelpOutlineOutlinedIcon from '@mui/icons-material/HelpOutlineOutlined'; +import BugReportOutlinedIcon from '@mui/icons-material/BugReportOutlined'; +import ContactPageOutlinedIcon from '@mui/icons-material/ContactPageOutlined'; + +export default function APP() { + return ( + + }> + + + + + + + + + + Report an issue + + + + + + Contact Us + + + + ); +} diff --git a/client/src/layouts/MainLayout/NavBar.js b/client/src/layouts/MainLayout/NavBar.js index 7169b3b3..15ca324d 100644 --- a/client/src/layouts/MainLayout/NavBar.js +++ b/client/src/layouts/MainLayout/NavBar.js @@ -1,4 +1,4 @@ -import React from "react"; +import React , {useState} from "react"; import { makeStyles } from "@material-ui/core/styles"; import { Button } from "@material-ui/core"; import AppBar from "@material-ui/core/AppBar"; @@ -12,22 +12,22 @@ import Menu from "@material-ui/core/Menu"; import Tooltip, { tooltipClasses } from "@mui/material/Tooltip"; import LoginIcon from '@mui/icons-material/Login'; import AccountCircle from "@material-ui/icons/AccountCircle"; -// import EditOutlinedIcon from "@mui/icons-material/Construction"; -// import SearchIcon from "@mui/icons-material/DataObject"; -import BugReportIcon from "@mui/icons-material/BugReport"; -// import GroupIcon from "@mui/icons-material/AppRegistration"; +import ConstructionIcon from "@mui/icons-material/Construction"; +import DataObjectIcon from "@mui/icons-material/DataObject"; +import AppRegistrationIcon from "@mui/icons-material/AppRegistration"; import { useSelector } from "react-redux"; import MoreIcon from "@material-ui/icons/MoreVert"; import { Link } from "react-router-dom"; -// import SettingsInputAntennaIcon from "@mui/icons-material/MiscellaneousServices"; +import MiscellaneousServicesIcon from "@mui/icons-material/MiscellaneousServices"; import ContactPageIcon from "@mui/icons-material/ContactPage"; import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; -import { Info } from "@mui/icons-material"; -import SettingsInputAntennaIcon from '@mui/icons-material/SettingsInputAntenna'; -// import SearchIcon from '@mui/icons-material/Storage'; -import SearchIcon from '@mui/icons-material/Search'; -import GroupIcon from '@mui/icons-material/Group'; -import EditOutlinedIcon from '@mui/icons-material/EditOutlined'; +import DescriptionOutlinedIcon from '@mui/icons-material/DescriptionOutlined'; +import DocDropDown from "./DocDropDown"; +import AppDropDown from "./AppDropDown"; +import BugReportOutlinedIcon from '@mui/icons-material/BugReportOutlined'; +import SearchIcon from "@mui/icons-material/Search"; // Import the search icon +import InputBase from "@mui/material/InputBase"; +import HelpDropDown from "./HelpDropDown"; const useStyles = makeStyles((theme) => ({ grow: { @@ -66,7 +66,38 @@ const useStyles = makeStyles((theme) => ({ [theme.breakpoints.up("sm")]: { display: "none" } - } + }, + search: { + position: "relative", + borderRadius: theme.shape.borderRadius, + backgroundColor: "#ffffff", // White background color + marginRight: theme.spacing(2), + marginLeft: 0, + width: "150px", + [theme.breakpoints.up("sm")]: { + marginLeft: theme.spacing(3), + width: "auto", + }, + }, + searchIcon: { + padding: theme.spacing(0, 2), + height: "80%", + position: "absolute", + pointerEvents: "none", + display: "flex", + alignItems: "center", + justifyContent: "center", + }, + inputRoot: { + color: "inherit", + }, + inputInput: { + padding: theme.spacing(1), + paddingLeft: `calc(1em + ${theme.spacing(4)})`, + transition: theme.transitions.create("width"), + width: "100%", + textAlign:"center" + }, })); const NavBar = () => { @@ -84,7 +115,39 @@ const NavBar = () => { const handleMobileMenuClose = () => { setMobileMoreAnchorEl(null); }; + const [documentationAnchorEL, setDocumentationAnchorEL] = React.useState(null); + + const handleDocumentationOpen = (event) => { + setDocumentationAnchorEL(event.currentTraget); + }; + + const handleDocumentationClose = () => { + setDocumentationAnchorEL(null); + }; + + const [open, setOpen] = React.useState(false); + const anchorRef = React.useRef(null); + const [selectedIndex, setSelectedIndex] = React.useState(1); + const handleClick = () => { + console.info(`You clicked ${options[selectedIndex]}`); + }; + + const handleMenuItemClick = (event, index) => { + setSelectedIndex(index); + setOpen(false); + }; + + const handleToggle = () => { + setOpen((prevOpen) => !prevOpen); + }; + const handleClose = (event) => { + if (anchorRef.current && anchorRef.current.contains(event.target)) { + return; + } + + setOpen(false); + }; const mobileMenuId = "menu-mobile"; /*Need to add switch in here */ const renderMobileMenu = ( @@ -105,18 +168,10 @@ const NavBar = () => {

Home

- - - - - - -

BCO Resources

-
- +

BCO Builder

@@ -124,7 +179,7 @@ const NavBar = () => { - +

Prefix Registry

@@ -132,7 +187,7 @@ const NavBar = () => { - +

BCO DB

@@ -149,7 +204,7 @@ const NavBar = () => { - +

Bug Report

@@ -198,18 +253,10 @@ const NavBar = () => {

Home

- - - - - - -

BCO Resources

-
- +

BCO Builder

@@ -217,7 +264,7 @@ const NavBar = () => { - +

Prefix Registry

@@ -225,7 +272,7 @@ const NavBar = () => { - +

BCO DB

@@ -242,7 +289,7 @@ const NavBar = () => { - +

Bug Report

@@ -276,44 +323,20 @@ const NavBar = () => { - BioCompute Object Portal + BioCompute Object Portal
{auth.user ? ( <> - - - - - - - - - - - + + - - - - - - + + - - - - - - - - - - - - - + + @@ -321,12 +344,12 @@ const NavBar = () => { - - + + {/* - + @@ -335,11 +358,25 @@ const NavBar = () => { - + - + */} + {/*
+
+ +
+ +
*/} + { ) : ( <> - - - - - - - - - - - + + - - - - - - + + - - - - - - - - - - - - - + + - + - - + + + {/* - + @@ -413,11 +427,24 @@ const NavBar = () => { - + - + */} + {/*
+
+ +
+ +
*/} Log in @@ -426,6 +453,7 @@ const NavBar = () => { )}
+
{auth.user ? ( <>