From 939cdd5635834ca2b9b78bf2ba3f0a258ae88737 Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Tue, 23 Jul 2024 13:06:27 -0700 Subject: [PATCH 1/9] Modify navbar icon styles --- src/features/layout/LeftNavBar.module.scss | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/features/layout/LeftNavBar.module.scss b/src/features/layout/LeftNavBar.module.scss index b18787f1..bbd615c4 100644 --- a/src/features/layout/LeftNavBar.module.scss +++ b/src/features/layout/LeftNavBar.module.scss @@ -13,12 +13,17 @@ ul.nav_list { li.nav_item { align-items: center; background: use-color("white"); + border-radius: 4px; + color: use-color("base-darker"); display: flex; flex-flow: column nowrap; - margin: 3px 0; - padding: 3px; + margin-top: 1rem; + margin-left: 0.25rem; + margin-right: 0.25rem; + padding: 0.25rem; position: relative; text-align: center; + transition: 0.25s; // Items contain links, so lets remove the default link styles a { @@ -28,20 +33,20 @@ ul.nav_list { } &.active { - background: use-rgba-color("silver", 0.5); + background: use-color("base-lighter"); } - &:hover { - background: use-rgba-color("silver", 0.7); + &:hover:not(.active) { + background: use-rgba-color("silver", 0.5); } .nav_icon { - font-size: 42px; + font-size: 2rem; width: 100%; } .nav_desc { - font-size: 14px; + font-size: 0.75rem; } .nav_notifs { From f607cfe0ea6b5b9346c7cf8079c1b86b24abf5de Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Tue, 23 Jul 2024 14:01:37 -0700 Subject: [PATCH 2/9] Modify top navbar --- src/app/App.module.scss | 2 +- src/features/layout/LeftNavBar.module.scss | 2 +- src/features/layout/TopBar.module.scss | 23 ++- src/features/layout/TopBar.tsx | 180 ++++++++++----------- 4 files changed, 105 insertions(+), 102 deletions(-) diff --git a/src/app/App.module.scss b/src/app/App.module.scss index 4d5a5181..eaf6f08a 100644 --- a/src/app/App.module.scss +++ b/src/app/App.module.scss @@ -21,7 +21,7 @@ background-color: use-color("white"); flex-grow: 0; flex-shrink: 0; - height: 70px; + height: 50px; position: relative; width: 100%; } diff --git a/src/features/layout/LeftNavBar.module.scss b/src/features/layout/LeftNavBar.module.scss index bbd615c4..6ea8ae6c 100644 --- a/src/features/layout/LeftNavBar.module.scss +++ b/src/features/layout/LeftNavBar.module.scss @@ -17,9 +17,9 @@ ul.nav_list { color: use-color("base-darker"); display: flex; flex-flow: column nowrap; - margin-top: 1rem; margin-left: 0.25rem; margin-right: 0.25rem; + margin-top: 1rem; padding: 0.25rem; position: relative; text-align: center; diff --git a/src/features/layout/TopBar.module.scss b/src/features/layout/TopBar.module.scss index ecbeccd3..da10a5dc 100644 --- a/src/features/layout/TopBar.module.scss +++ b/src/features/layout/TopBar.module.scss @@ -2,25 +2,33 @@ .topbar { align-items: center; - border-bottom: 5px solid #e0e0e0; + border-bottom: 1px solid; + border-bottom-color: use-color("silver"); display: flex; height: 100%; justify-content: stretch; + padding: 0 1rem; position: relative; z-index: 100; .topbar_item { + display: flex; flex-grow: 0; flex-shrink: 0; height: auto; position: relative; vertical-align: middle; + white-space: nowrap; &.stretch { flex-grow: 1; flex-shrink: 1; overflow: hidden; } + + img { + height: 40px; + } } } @@ -39,11 +47,13 @@ } .page_title { + border-left: 1px solid; + border-left-color: use-color("silver"); color: use-color("black"); - font-size: 2rem; - font-weight: bold; + font-size: 1.5rem; + margin-left: 1rem; overflow: hidden; - padding-left: 10px; + padding-left: 1rem; text-overflow: ellipsis; white-space: nowrap; } @@ -52,13 +62,14 @@ align-items: center; display: flex; flex-flow: column nowrap; + font-size: 0.75rem; font-weight: bold; justify-content: center; - padding: 0 12px 0 5px; + padding: 0 1rem 0 5px; >svg { color: use-color("mid-blue"); - font-size: 2rem; + font-size: 1.5rem; } } diff --git a/src/features/layout/TopBar.tsx b/src/features/layout/TopBar.tsx index 49df4584..ee95feed 100644 --- a/src/features/layout/TopBar.tsx +++ b/src/features/layout/TopBar.tsx @@ -1,31 +1,21 @@ import { - faBars, - faEnvelope, - faFile, faFlask, faIdCard, - faInfo, - faPlus, - faQuestion, faQuestionCircle, - faSearch, - faServer, - faSignIn, faSignOutAlt, faSortDown, faUser, faWrench, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome'; +import { Button, Stack } from '@mui/material'; import { FC, useMemo } from 'react'; -import { useNavigate } from 'react-router-dom'; - import { toast } from 'react-hot-toast'; -import { Link } from 'react-router-dom'; +import { Link, useNavigate } from 'react-router-dom'; import { resetStateAction } from '../../app/store'; import { revokeToken } from '../../common/api/authService'; import { getUserProfile } from '../../common/api/userProfileApi'; -import logo from '../../common/assets/logo/46_square.png'; +import logo from '../../common/assets/logo/circles.png'; import { Dropdown } from '../../common/components'; import { useAppDispatch, useAppSelector } from '../../common/hooks'; import { authUsername, setAuth } from '../auth/authSlice'; @@ -38,9 +28,7 @@ export default function TopBar() { return (
- -
-
+ {/* TODO: replace with recntagular logo without tagline */}
@@ -57,10 +45,14 @@ export default function TopBar() { } const LoginPrompt: FC = () => ( - - - Sign In - + + + + + + + + ); const UserMenu: FC = () => { @@ -166,80 +158,80 @@ const useLogout = () => { }; }; -const HamburgerMenu: FC = () => { - const navigate = useNavigate(); - return ( -
- , - label: 'Narrative Interface', - }, - { - value: '/legacy/narrativemanager/new', - icon: , - label: 'New Narrative', - }, - { - value: '/legacy/jgi-search', - icon: , - label: 'JGI Search', - }, - { - value: '/legacy/biochem-search', - icon: , - label: 'Biochem Search', - }, - ], - }, - { - options: [ - { - value: '/legacy/about/services', - icon: , - label: 'KBase Services Status', - }, - ], - }, - { - options: [ - { - value: '/legacy/about', - icon: , - label: 'About', - }, - { - value: 'https://kbase.us/contact-us', - icon: , - label: 'Contact KBase', - }, - { - value: 'https://kbase.us/narrative-guide/', - icon: , - label: 'Support', - }, - ], - }, - ]} - onChange={(opt) => { - if (typeof opt?.[0]?.value === 'string') { - if (opt[0].value.startsWith('http')) { - window.location.href = opt[0].value; - } else { - navigate(opt[0].value, { relative: 'path' }); - } - } - }} - > - - -
- ); -}; +// const HamburgerMenu: FC = () => { +// const navigate = useNavigate(); +// return ( +//
+// , +// label: 'Narrative Interface', +// }, +// { +// value: '/legacy/narrativemanager/new', +// icon: , +// label: 'New Narrative', +// }, +// { +// value: '/legacy/jgi-search', +// icon: , +// label: 'JGI Search', +// }, +// { +// value: '/legacy/biochem-search', +// icon: , +// label: 'Biochem Search', +// }, +// ], +// }, +// { +// options: [ +// { +// value: '/legacy/about/services', +// icon: , +// label: 'KBase Services Status', +// }, +// ], +// }, +// { +// options: [ +// { +// value: '/legacy/about', +// icon: , +// label: 'About', +// }, +// { +// value: 'https://kbase.us/contact-us', +// icon: , +// label: 'Contact KBase', +// }, +// { +// value: 'https://kbase.us/narrative-guide/', +// icon: , +// label: 'Support', +// }, +// ], +// }, +// ]} +// onChange={(opt) => { +// if (typeof opt?.[0]?.value === 'string') { +// if (opt[0].value.startsWith('http')) { +// window.location.href = opt[0].value; +// } else { +// navigate(opt[0].value, { relative: 'path' }); +// } +// } +// }} +// > +// +// +//
+// ); +// }; const UserAvatar = () => { const username = useAppSelector(authUsername); From c33fd1c78df848e5538d0daddd0a5ab551619896 Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Fri, 26 Jul 2024 14:44:26 -0400 Subject: [PATCH 3/9] Add shortened rectangular logo to top bar --- src/common/assets/logo/rectangle_short.png | Bin 0 -> 14264 bytes src/features/layout/TopBar.tsx | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/common/assets/logo/rectangle_short.png diff --git a/src/common/assets/logo/rectangle_short.png b/src/common/assets/logo/rectangle_short.png new file mode 100644 index 0000000000000000000000000000000000000000..bf49913ca188434f73f134c05f3165b79856f20b GIT binary patch literal 14264 zcmV;pH%G{cP)!=-?Lq9Ag$DO9|XHsx*$p6IHptFpT)w{nOI z6cGKdtKxyTB3BRYn^LY`l+se#(j-mWv`td0>xs9kAcrWFUh{w7-^`?wbneU~!Oc9+ z`?O8wOq$QU`M#II5a5NXGW4WehIp_UVDD2-Ln{0{0A>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Yn37cbVEahu%rpyI~dwgyc0d)tMJaYrU`pHt~R|yq0O9GWs9a=(5XyL-U%Fq*_I-Wq)W%xt` zK%XJ0c`m~%U}Mzk(^@UIn%jCY@LmI8{e%nK=e7>z1vU;f5Dp;5pN5|~u)lvn0?$EUK#Nv%v0r0`j;w;a~s_pnZB)i6eJTdCkIk<+VdXpODZJT7ntiE<<;aO-8`a zsbFt`ZGpeD0O%#~yNhIWxC|9w`CvKlToU|TM4*pad7&Yw+h^MCV|!R!@$nF>oCZ^6 z@}5{7T{nG=={$UGYNiwGqnlsbJ^W`FJC=_*(_l$9NBjbtEAIZ%n)vI|H0UCxyY~$P z0$>E!EGQXY3bq9Um*64Wu%LxC)WjE5*6aW;ec6Hv*P?~?ntK+OIV0ef+a~lW2rZ#S a-tzyzy+&AnwZ|3!0000 Date: Fri, 26 Jul 2024 14:47:09 -0400 Subject: [PATCH 4/9] Increase top bar height --- src/app/App.module.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/App.module.scss b/src/app/App.module.scss index eaf6f08a..20a760d1 100644 --- a/src/app/App.module.scss +++ b/src/app/App.module.scss @@ -21,7 +21,7 @@ background-color: use-color("white"); flex-grow: 0; flex-shrink: 0; - height: 50px; + height: 60px; position: relative; width: 100%; } From 2710081040acfe34332f3a88966f3d62a6707c47 Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Fri, 26 Jul 2024 14:49:47 -0400 Subject: [PATCH 5/9] Add proper page titles to new pages --- src/features/account/Account.tsx | 2 ++ src/features/login/LogIn.tsx | 2 ++ src/features/signup/SignUp.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/features/account/Account.tsx b/src/features/account/Account.tsx index 843045bc..2fce0e4c 100644 --- a/src/features/account/Account.tsx +++ b/src/features/account/Account.tsx @@ -1,11 +1,13 @@ import { Container, Stack, Tab, Tabs } from '@mui/material'; import { FC, useEffect, useState } from 'react'; import { Outlet, useLocation, useNavigate } from 'react-router-dom'; +import { usePageTitle } from '../layout/layoutSlice'; /** * Main Account page with four subpages represented as tabs. */ export const Account: FC = () => { + usePageTitle('Account'); const navigate = useNavigate(); const location = useLocation(); const [activeTab, setActiveTab] = useState(() => { diff --git a/src/features/login/LogIn.tsx b/src/features/login/LogIn.tsx index dabab062..43967283 100644 --- a/src/features/login/LogIn.tsx +++ b/src/features/login/LogIn.tsx @@ -13,8 +13,10 @@ import orcidLogo from '../../common/assets/orcid.png'; import globusLogo from '../../common/assets/globus.png'; import googleLogo from '../../common/assets/google.webp'; import classes from './LogIn.module.scss'; +import { usePageTitle } from '../layout/layoutSlice'; export const LogIn: FC = () => { + usePageTitle('Log In'); return ( diff --git a/src/features/signup/SignUp.tsx b/src/features/signup/SignUp.tsx index 9c674e9e..293167ae 100644 --- a/src/features/signup/SignUp.tsx +++ b/src/features/signup/SignUp.tsx @@ -10,6 +10,7 @@ import { FC, useEffect, useState } from 'react'; import { AccountInformation } from './AccountInformation'; import { ProviderSelect } from './ProviderSelect'; import { UsePolicies } from './UsePolicies'; +import { usePageTitle } from '../layout/layoutSlice'; const signUpSteps = [ 'Sign up with a supported provider', @@ -22,6 +23,7 @@ const signUpSteps = [ * and accepting the KBase use policies. */ export const SignUp: FC = () => { + usePageTitle('Sign Up'); const [activeStep, setActiveStep] = useState(0); useEffect(() => { From 0814a90b4fd68a312ce1022a89ca5027109f3c5d Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Tue, 30 Jul 2024 12:33:30 -0700 Subject: [PATCH 6/9] Add more links menu to sidebar --- src/features/layout/LeftNavBar.module.scss | 19 ++++- src/features/layout/LeftNavBar.tsx | 90 +++++++++++++++++++++- 2 files changed, 107 insertions(+), 2 deletions(-) diff --git a/src/features/layout/LeftNavBar.module.scss b/src/features/layout/LeftNavBar.module.scss index 6ea8ae6c..d5573918 100644 --- a/src/features/layout/LeftNavBar.module.scss +++ b/src/features/layout/LeftNavBar.module.scss @@ -10,7 +10,12 @@ ul.nav_list { padding: 3px 0 0; width: 100%; - li.nav_item { + &:first-of-type:not(:last-of-type) { + border-bottom: 1px solid use-color("silver"); + padding-bottom: 1rem; + } + + .nav_item { align-items: center; background: use-color("white"); border-radius: 4px; @@ -64,6 +69,18 @@ ul.nav_list { } } +.more_menu_item { + a { + color: inherit; + text-decoration: none; + } + + .more_menu_icon { + color: use-color("base-darker"); + margin-right: 0.5rem; + } +} + @each $state, $_ in $palette { ul.nav_list li.nav_item .nav_notifs.nav_notifs-bg--#{$state} { background-color: use-color($state); diff --git a/src/features/layout/LeftNavBar.tsx b/src/features/layout/LeftNavBar.tsx index 88ba3a09..c63c4e71 100644 --- a/src/features/layout/LeftNavBar.tsx +++ b/src/features/layout/LeftNavBar.tsx @@ -9,15 +9,21 @@ import { faSuitcase, faUsers, IconDefinition, + faEllipsis, + faInfoCircle, + faQuestionCircle, + faServer, + faNoteSticky, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome'; -import { FC } from 'react'; +import { FC, useState } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { getFeedsUnseenCount } from '../../common/api/feedsService'; import { useAppSelector } from '../../common/hooks'; import { authMe, authToken } from '../auth/authSlice'; import { useAuthMe } from '../auth/hooks'; import classes from './LeftNavBar.module.scss'; +import { Button, Menu, MenuItem } from '@mui/material'; const LeftNavBar: FC = () => { const token = useAppSelector(authToken); @@ -27,6 +33,14 @@ const LeftNavBar: FC = () => { refetchOnFocus: true, refetchOnReconnect: true, }); + const [anchorEl, setAnchorEl] = useState(null); + const moreMenuOpen = Boolean(anchorEl); + const handleClickMoreMenu = (event: React.MouseEvent) => { + setAnchorEl(event.currentTarget); + }; + const handleCloseMoreMenu = () => { + setAnchorEl(null); + }; return ( ); }; From a785c05a8b41d538ecb25f0a254777365b4afb6e Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Tue, 30 Jul 2024 13:56:01 -0700 Subject: [PATCH 7/9] Update user dropdown menu to use mui --- src/features/layout/LeftNavBar.module.scss | 2 +- src/features/layout/TopBar.module.scss | 40 ++-- src/features/layout/TopBar.tsx | 210 ++++++++------------- 3 files changed, 101 insertions(+), 151 deletions(-) diff --git a/src/features/layout/LeftNavBar.module.scss b/src/features/layout/LeftNavBar.module.scss index d5573918..a79a15eb 100644 --- a/src/features/layout/LeftNavBar.module.scss +++ b/src/features/layout/LeftNavBar.module.scss @@ -77,7 +77,7 @@ ul.nav_list { .more_menu_icon { color: use-color("base-darker"); - margin-right: 0.5rem; + margin-right: 1rem; } } diff --git a/src/features/layout/TopBar.module.scss b/src/features/layout/TopBar.module.scss index da10a5dc..e67c930e 100644 --- a/src/features/layout/TopBar.module.scss +++ b/src/features/layout/TopBar.module.scss @@ -65,7 +65,7 @@ font-size: 0.75rem; font-weight: bold; justify-content: center; - padding: 0 1rem 0 5px; + padding: 0 1rem; >svg { color: use-color("mid-blue"); @@ -87,14 +87,8 @@ } } -.login_menu { +.login_menu_container { display: block; - padding: 4px; - width: 77px; - - .login_menu_username { - font-style: italic; - } .login_menu_button { align-items: center; @@ -102,12 +96,6 @@ display: flex; gap: 5px; justify-content: left; - - .login_menu_icon { - color: use_color("mid-blue"); - font-size: 30px; - margin-right: 5px; - } } .name_item { @@ -115,3 +103,27 @@ width: 100%; } } + +.login_menu { + a { + color: inherit; + text-decoration: none; + } + + .login_menu_username { + color: use-color("base"); + font-style: italic; + margin: 0.5rem 0; + text-align: center; + } + + .login_menu_icon { + color: use_color("base-darker"); + margin-right: 1rem; + width: 18px; + } +} + +.narrative_link { + margin-right: 0.5rem; +} diff --git a/src/features/layout/TopBar.tsx b/src/features/layout/TopBar.tsx index 6161c2ce..1fa885d9 100644 --- a/src/features/layout/TopBar.tsx +++ b/src/features/layout/TopBar.tsx @@ -6,17 +6,17 @@ import { faSortDown, faUser, faWrench, + faPlus, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome'; -import { Button, Stack } from '@mui/material'; -import { FC, useMemo } from 'react'; +import { Button, Menu, MenuItem, Stack, Typography } from '@mui/material'; +import { FC, useMemo, useState } from 'react'; import { toast } from 'react-hot-toast'; import { Link, useNavigate } from 'react-router-dom'; import { resetStateAction } from '../../app/store'; import { revokeToken } from '../../common/api/authService'; import { getUserProfile } from '../../common/api/userProfileApi'; import logo from '../../common/assets/logo/rectangle_short.png'; -import { Dropdown } from '../../common/components'; import { useAppDispatch, useAppSelector } from '../../common/hooks'; import { authUsername, setAuth } from '../auth/authSlice'; import { noOp } from '../common'; @@ -34,6 +34,19 @@ export default function TopBar() {
+
+ {username && ( + + + + )} +
@@ -67,69 +80,69 @@ const UserMenu: FC = () => { { skip: !username } ); const realname = profData?.[0]?.[0]?.user.realname; - const navigate = useNavigate(); const logout = useLogout(); + const [anchorEl, setAnchorEl] = useState(null); + const menuOpen = Boolean(anchorEl); + const handleClickMenu = (event: React.MouseEvent) => { + setAnchorEl(event.currentTarget); + }; + const handleCloseMenu = () => { + setAnchorEl(null); + }; return ( -
- -
{realname}
-
- {username} -
-
- ), - }, - ], - }, - { - options: [ - { - value: '/legacy/people', - icon: , - label: 'Your Profile', - }, - { - value: '/legacy/account', - icon: , - label: 'Your Account', - }, - ], - }, - { - options: [ - { - value: 'LOGOUT', - icon: , - label: 'Sign Out', - }, - ], - }, - ]} - onChange={(opt) => { - if (opt?.[0]) { - if (opt[0].value === 'LOGOUT') { - logout(); - } else { - navigate(opt[0].value as string); - } - } - }} +
+ + + + {realname} + + + + + My Profile + + + + + + My Account + + + logout()}> + + Log out + +
); }; @@ -158,81 +171,6 @@ const useLogout = () => { }; }; -// const HamburgerMenu: FC = () => { -// const navigate = useNavigate(); -// return ( -//
-// , -// label: 'Narrative Interface', -// }, -// { -// value: '/legacy/narrativemanager/new', -// icon: , -// label: 'New Narrative', -// }, -// { -// value: '/legacy/jgi-search', -// icon: , -// label: 'JGI Search', -// }, -// { -// value: '/legacy/biochem-search', -// icon: , -// label: 'Biochem Search', -// }, -// ], -// }, -// { -// options: [ -// { -// value: '/legacy/about/services', -// icon: , -// label: 'KBase Services Status', -// }, -// ], -// }, -// { -// options: [ -// { -// value: '/legacy/about', -// icon: , -// label: 'About', -// }, -// { -// value: 'https://kbase.us/contact-us', -// icon: , -// label: 'Contact KBase', -// }, -// { -// value: 'https://kbase.us/narrative-guide/', -// icon: , -// label: 'Support', -// }, -// ], -// }, -// ]} -// onChange={(opt) => { -// if (typeof opt?.[0]?.value === 'string') { -// if (opt[0].value.startsWith('http')) { -// window.location.href = opt[0].value; -// } else { -// navigate(opt[0].value, { relative: 'path' }); -// } -// } -// }} -// > -// -// -//
-// ); -// }; - const UserAvatar = () => { const username = useAppSelector(authUsername); const { data: profData } = getUserProfile.useQuery( From 914a4a2050d730a5be3a9a71fc3c9993b2931f94 Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Tue, 13 Aug 2024 13:07:40 -0700 Subject: [PATCH 8/9] Add consistent padding across feature pages --- src/app/App.module.scss | 2 -- src/features/collections/Collections.module.scss | 7 +++---- src/features/collections/CollectionsList.tsx | 10 +++++----- src/features/login/LogIn.module.scss | 5 +++++ src/features/login/LogIn.tsx | 2 +- src/features/navigator/Navigator.module.scss | 2 +- src/features/signup/SignUp.module.scss | 5 +++++ src/features/signup/SignUp.tsx | 3 ++- 8 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/app/App.module.scss b/src/app/App.module.scss index 20a760d1..999a7333 100644 --- a/src/app/App.module.scss +++ b/src/app/App.module.scss @@ -54,8 +54,6 @@ flex-shrink: 1; max-height: 100%; overflow-y: auto; - padding-bottom: 1rem; - padding-top: 1rem; position: relative; } } diff --git a/src/features/collections/Collections.module.scss b/src/features/collections/Collections.module.scss index 00ac28d7..d4466fa7 100644 --- a/src/features/collections/Collections.module.scss +++ b/src/features/collections/Collections.module.scss @@ -4,23 +4,22 @@ $border: 1px solid use-color("base-lighter"); .collections-main { min-height: 100%; + padding: 1rem; } .collections-main .inner-container { margin-left: 0; - padding-left: 1rem; } .collections-list { overflow: scroll; - padding: 1rem; } .collections-subtitle { + border-bottom: 1px solid use-color("silver"); font-size: 1.25rem; font-weight: 500; - margin: 0; - padding: 1rem; + padding-bottom: 1rem; } .collection-card { diff --git a/src/features/collections/CollectionsList.tsx b/src/features/collections/CollectionsList.tsx index 1bb96b43..137c548f 100644 --- a/src/features/collections/CollectionsList.tsx +++ b/src/features/collections/CollectionsList.tsx @@ -13,11 +13,11 @@ export const CollectionsList = () => { const collections = listCollections.useQuery(); return ( -
-

- Explore, relate, and integrate curated data collections. -

+
+

+ Explore, relate, and integrate curated data collections. +

{collections.isSuccess && collections.data?.data.map((collection) => ( @@ -27,7 +27,7 @@ export const CollectionsList = () => { ))}
-
+ ); }; diff --git a/src/features/login/LogIn.module.scss b/src/features/login/LogIn.module.scss index 31975577..055ed6fa 100644 --- a/src/features/login/LogIn.module.scss +++ b/src/features/login/LogIn.module.scss @@ -1,5 +1,10 @@ @import "../../common/colors"; +.login { + padding-bottom: 1rem; + padding-top: 1rem; +} + .logo { height: 150px; width: auto; diff --git a/src/features/login/LogIn.tsx b/src/features/login/LogIn.tsx index 43967283..665be2a5 100644 --- a/src/features/login/LogIn.tsx +++ b/src/features/login/LogIn.tsx @@ -18,7 +18,7 @@ import { usePageTitle } from '../layout/layoutSlice'; export const LogIn: FC = () => { usePageTitle('Log In'); return ( - + { }, [activeStep]); return ( - + Sign up for KBase From 416c60d60fa8d7b8060be2d61c97db2e5de95ae9 Mon Sep 17 00:00:00 2001 From: Cody O'Donnell Date: Tue, 13 Aug 2024 13:36:00 -0700 Subject: [PATCH 9/9] Remove todo and add alt text --- src/features/layout/TopBar.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/layout/TopBar.tsx b/src/features/layout/TopBar.tsx index 1fa885d9..b740efba 100644 --- a/src/features/layout/TopBar.tsx +++ b/src/features/layout/TopBar.tsx @@ -28,8 +28,10 @@ export default function TopBar() { return (
- {/* TODO: replace with recntagular logo without tagline */} - + KBase: Predictive Biology logo with three circles