-
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
Conversation
| @@ -0,0 +1,43 @@ | |||
| @import 'lib/styles/fonts.scss'; | |||
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.scss to ensure compatibility across different environments and avoid potential issues with module resolution.
| .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 comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ correctness]
Ensure $roboto is defined in fonts.scss. If not, this could lead to a compilation error or unexpected font rendering.
| <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 comment
The reason will be displayed to describe this comment to others. Learn more.
[maintainability]
Consider externalizing the maintenance message to a configuration file or environment variable to allow for easier updates without code changes.
|
|
||
| <div class="tc-universal-nav-wrap"> | ||
| <!-- <Banner /> --> | ||
| <Maintenance /> |
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.
[design]
Consider verifying that the Maintenance component is conditionally rendered based on a relevant state or prop. Rendering it unconditionally might not be appropriate if maintenance mode is not always active.
| onMount(checkAndLoadFonts) | ||
| </script> | ||
|
|
||
| <Maintenance /> |
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.
[design]
Consider verifying that the <Maintenance /> component does not interfere with the layout or functionality of the existing navigation elements. Ensure it is appropriately styled and positioned, especially on different screen sizes.
No description provided.