-
Notifications
You must be signed in to change notification settings - Fork 0
add maintenance banner #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| @import 'lib/styles/fonts.scss'; | ||
|
|
||
| .bannerWrap { | ||
| position: relative; | ||
| height: 48px; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .banner { | ||
| background: rgb(157, 27, 27); | ||
| color: #fff; | ||
| padding: 0.5rem; | ||
| display: flex; | ||
| justify-content: space-between; | ||
|
|
||
| &:before { | ||
| content: ""; | ||
| display: block; | ||
| } | ||
| } | ||
|
|
||
| .bannerContent { | ||
| flex: 1 1 0; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| column-gap: 1rem; | ||
| row-gap: 0.5rem; | ||
| margin: 0 0.5rem; | ||
| min-width: 0; | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| .bannerText { | ||
| white-space: pre-wrap; | ||
| overflow-wrap: break-word; | ||
| font-family: $roboto; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| font-size: 16px; | ||
| color: #fff; | ||
| line-height: 24px; | ||
| font-weight: bold; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <script lang="ts"> | ||
| import styles from './Maintenance.module.scss'; | ||
| const bannerName = 'maintenance'; | ||
| </script> | ||
|
|
||
| <div class={styles.banner}> | ||
| <div class={styles.bannerContent}> | ||
| <div class={styles.bannerText}> | ||
| Topcoder will be undergoing maintenance on Tuesday, October 21, 2025 from 1 AM to 6 AM EST | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| </div> | ||
| </div> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
| import { checkAndLoadFonts } from 'lib/utils/fonts'; | ||
| import NavigationBar from './components/NavigationBar.svelte'; | ||
| import UserArea from 'lib/components/user-area/UserArea.svelte'; | ||
| import Maintenance from 'lib/components/Maintenance.svelte'; | ||
| const ctx = getAppContext() | ||
| $: ({auth, navigationHandler} = $ctx) | ||
|
|
@@ -35,6 +36,7 @@ | |
|
|
||
| <div class="tc-universal-nav-wrap"> | ||
| <!-- <Banner /> --> | ||
| <Maintenance /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| <NavigationBar | ||
| activeRoutePath={activeRoute} | ||
| activeRoute={primaryRoute} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| import type { NavMenuItem } from 'lib/functions/nav-menu-item.model'; | ||
| import { useSessionStorage } from 'lib/utils/use-storage'; | ||
| import { marketingRightItems } from 'lib/functions/marketing-navigation.provider' | ||
| import Maintenance from 'lib/components/Maintenance.svelte'; | ||
| import styles from './ToolNavigation.module.scss'; | ||
| import ToolNavSeparator from './tool-nav-separator/ToolNavSeparator.svelte'; | ||
|
|
@@ -48,6 +49,7 @@ | |
| onMount(checkAndLoadFonts) | ||
| </script> | ||
|
|
||
| <Maintenance /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| <TopNavbar class={classnames(styles.navbar, 'tc-universal-nav-wrap')} style="primary" minVersionLogo> | ||
| {#if $isMobile} | ||
| <MobileNavigation | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[⚠️
maintainability]Consider using a relative import path for
fonts.scssto ensure compatibility across different environments and avoid potential issues with module resolution.