From ec36046609ed6ff76b5a35618d6e8a2aadaa93be Mon Sep 17 00:00:00 2001 From: Zachary Rogers Date: Tue, 27 Feb 2024 13:39:45 -0800 Subject: [PATCH 1/3] 10007: WIP one header for each site --- web-client/src/views/AppComponent.tsx | 3 +-- web-client/src/views/Header/Header.tsx | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web-client/src/views/AppComponent.tsx b/web-client/src/views/AppComponent.tsx index 4e1efaa8949..f1c6710ff9a 100644 --- a/web-client/src/views/AppComponent.tsx +++ b/web-client/src/views/AppComponent.tsx @@ -54,7 +54,6 @@ import { Footer } from './Footer'; import { ForgotPassword } from '@web-client/views/Login/ForgotPassword'; import { GenericErrorModal } from './GenericErrorModal'; import { Header } from './Header/Header'; -import { HeaderPublic } from '@web-client/views/Header/HeaderPublic'; import { IdleLogout } from './IdleLogout'; import { Interstitial } from './Interstitial'; import { JudgeActivityReport } from './JudgeActivityReport/JudgeActivityReport'; @@ -251,7 +250,7 @@ export const AppComponent = connect( Skip to main content - {IsPageWithBlueBackground ? :
} +
)} diff --git a/web-client/src/views/Header/Header.tsx b/web-client/src/views/Header/Header.tsx index 704806c1b85..2e60aba78f5 100644 --- a/web-client/src/views/Header/Header.tsx +++ b/web-client/src/views/Header/Header.tsx @@ -282,6 +282,9 @@ export const Header = connect( USTC Seal + {!headerHelper.isLoggedIn && ( +

Welcome to DAWSON

+ )} {headerHelper.showMobileAccountMenu && ( - {user && + {headerHelper.isLoggedIn && NavigationItems(headerHelper, { isDocumentQCMenuOpen: menuHelper.isDocumentQCMenuOpen, isMessagesMenuOpen: menuHelper.isMessagesMenuOpen, From caee028cff663112e7d3b8875cfa957fe9ef8f65 Mon Sep 17 00:00:00 2001 From: Kaitlyn Swann Date: Mon, 4 Mar 2024 16:56:44 -0700 Subject: [PATCH 3/3] 10007: Attempt to use single header for Client Application --- web-client/src/styles/nav.scss | 28 ++++++++++++++++++++++++-- web-client/src/views/Header/Header.tsx | 2 +- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/web-client/src/styles/nav.scss b/web-client/src/styles/nav.scss index cfe7b4c64c2..b510ab3b949 100644 --- a/web-client/src/styles/nav.scss +++ b/web-client/src/styles/nav.scss @@ -17,6 +17,13 @@ .usa-navbar { justify-content: space-between; + border-bottom: 0; + margin-top: 10px; + margin-bottom: 10px; + } + + .header-welcome { + display: none; } .usa-navbar.usa-navbar-public { @@ -98,10 +105,22 @@ } .usa-navbar { - width: unset; + display: flex; + width: initial; justify-content: space-between; + border-bottom: 0; + margin-top: 10px; + margin-bottom: 10px; + } + + .header-welcome { + margin-top: 15px; + margin-right: auto; + margin-left: 10px; + font-size: 26px; + text-wrap: nowrap; } - + .usa-navbar.usa-navbar-public { justify-content: flex-start; } @@ -183,6 +202,11 @@ display: none; } + .usa-navbar { + margin-top: initial; + margin-bottom: initial; + } + .usa-logo { width: 75px; max-width: 75px; diff --git a/web-client/src/views/Header/Header.tsx b/web-client/src/views/Header/Header.tsx index 3d1bd4ed5ee..f8f90660cbb 100644 --- a/web-client/src/views/Header/Header.tsx +++ b/web-client/src/views/Header/Header.tsx @@ -281,7 +281,7 @@ export const Header = connect( {!headerHelper.isLoggedIn && ( -

Welcome to DAWSON

+

Welcome to DAWSON

)} {headerHelper.showMobileAccountMenu && (