Skip to content

Commit 67a0e90

Browse files
authored
Merge pull request #380 from topcoder-platform/maintenance
add maintenance banner
2 parents 82ffea4 + 4609701 commit 67a0e90

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ workflows:
220220
only:
221221
- dev
222222
- TOP-2044_show-signin-modal
223+
- maintenance
223224

224225
- deployProd:
225226
context: org-global
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@import 'lib/styles/fonts.scss';
2+
3+
.bannerWrap {
4+
position: relative;
5+
height: 48px;
6+
width: 100%;
7+
}
8+
9+
.banner {
10+
background: rgb(157, 27, 27);
11+
color: #fff;
12+
padding: 0.5rem;
13+
display: flex;
14+
justify-content: space-between;
15+
16+
&:before {
17+
content: "";
18+
display: block;
19+
}
20+
}
21+
22+
.bannerContent {
23+
flex: 1 1 0;
24+
display: flex;
25+
justify-content: center;
26+
align-items: center;
27+
column-gap: 1rem;
28+
row-gap: 0.5rem;
29+
margin: 0 0.5rem;
30+
min-width: 0;
31+
flex-wrap: wrap;
32+
}
33+
34+
.bannerText {
35+
white-space: pre-wrap;
36+
overflow-wrap: break-word;
37+
font-family: $roboto;
38+
font-size: 16px;
39+
color: #fff;
40+
line-height: 24px;
41+
font-weight: bold;
42+
}
43+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script lang="ts">
2+
import styles from './Maintenance.module.scss';
3+
const bannerName = 'maintenance';
4+
</script>
5+
6+
<div class={styles.banner}>
7+
<div class={styles.bannerContent}>
8+
<div class={styles.bannerText}>
9+
Topcoder will be undergoing maintenance on Tuesday, October 21, 2025 from 1 AM to 6 AM EST
10+
</div>
11+
</div>
12+
</div>

src/lib/marketing-navigation/MarketingNavigation.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import { checkAndLoadFonts } from 'lib/utils/fonts';
1313
import NavigationBar from './components/NavigationBar.svelte';
1414
import UserArea from 'lib/components/user-area/UserArea.svelte';
15+
import Maintenance from 'lib/components/Maintenance.svelte';
1516
1617
const ctx = getAppContext()
1718
$: ({auth, navigationHandler} = $ctx)
@@ -35,6 +36,7 @@
3536

3637
<div class="tc-universal-nav-wrap">
3738
<!-- <Banner /> -->
39+
<Maintenance />
3840
<NavigationBar
3941
activeRoutePath={activeRoute}
4042
activeRoute={primaryRoute}

src/lib/tool-navigation/ToolNavigation.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import type { NavMenuItem } from 'lib/functions/nav-menu-item.model';
1616
import { useSessionStorage } from 'lib/utils/use-storage';
1717
import { marketingRightItems } from 'lib/functions/marketing-navigation.provider'
18+
import Maintenance from 'lib/components/Maintenance.svelte';
1819
1920
import styles from './ToolNavigation.module.scss';
2021
import ToolNavSeparator from './tool-nav-separator/ToolNavSeparator.svelte';
@@ -48,6 +49,7 @@
4849
onMount(checkAndLoadFonts)
4950
</script>
5051

52+
<Maintenance />
5153
<TopNavbar class={classnames(styles.navbar, 'tc-universal-nav-wrap')} style="primary" minVersionLogo>
5254
{#if $isMobile}
5355
<MobileNavigation

0 commit comments

Comments
 (0)