diff --git a/packages/web/components/elements/MaintenanceBanner.tsx b/packages/web/components/elements/ShutdownBanner.tsx similarity index 58% rename from packages/web/components/elements/MaintenanceBanner.tsx rename to packages/web/components/elements/ShutdownBanner.tsx index fd24c743a6..ea7f3ea2ef 100644 --- a/packages/web/components/elements/MaintenanceBanner.tsx +++ b/packages/web/components/elements/ShutdownBanner.tsx @@ -2,15 +2,15 @@ import { usePersistedState } from '../../lib/hooks/usePersistedState' import { CloseButton } from './CloseButton' import { HStack, SpanBox } from './LayoutPrimitives' -export const MaintenanceBanner = () => { +export const ShutdownBanner = () => { const [ showMaintenanceMode, setShowMaintenanceMode, isLoadingShowMaintenanceMode, ] = usePersistedState({ - key: 'show-maintenance-mode', - isSessionStorage: false, - initialValue: false, + key: 'show-shutdown-mode', + isSessionStorage: true, + initialValue: true, }) return ( <> @@ -18,17 +18,27 @@ export const MaintenanceBanner = () => { - Omnivore will be undergoing maintenance for 30 minutes at 05:00 UTC, - during that time the website and APIs will be unavailable. + Omnivore is shutting down on Nov. 30th. + + Read More + { diff --git a/packages/web/components/templates/AuthLayout.tsx b/packages/web/components/templates/AuthLayout.tsx index 5b945b903f..b64d3cfb61 100644 --- a/packages/web/components/templates/AuthLayout.tsx +++ b/packages/web/components/templates/AuthLayout.tsx @@ -1,5 +1,5 @@ import { Box, VStack, HStack } from '../elements/LayoutPrimitives' -import { MaintenanceBanner } from '../elements/MaintenanceBanner' +import { ShutdownBanner } from '../elements/ShutdownBanner' import { OmnivoreNameLogo } from '../elements/images/OmnivoreNameLogo' import { theme } from '../tokens/stitches.config' import { GoogleReCaptchaProvider } from '@google-recaptcha/react' diff --git a/packages/web/components/templates/LoginLayout.tsx b/packages/web/components/templates/LoginLayout.tsx index 4b6819bc2e..7c27b390d2 100644 --- a/packages/web/components/templates/LoginLayout.tsx +++ b/packages/web/components/templates/LoginLayout.tsx @@ -10,11 +10,12 @@ import type { LoginFormProps } from './LoginForm' import { OmnivoreNameLogo } from '../elements/images/OmnivoreNameLogo' import featureFullWidthImage from '../../public/static/images/login/login-feature-image-full.png' -import { MaintenanceBanner } from '../elements/MaintenanceBanner' +import { ShutdownBanner } from '../elements/ShutdownBanner' export function LoginLayout(props: LoginFormProps): JSX.Element { return ( <> + } largerLayoutNode={} diff --git a/packages/web/components/templates/NavigationLayout.tsx b/packages/web/components/templates/NavigationLayout.tsx index 9e640434ef..d5bbbf4a2f 100644 --- a/packages/web/components/templates/NavigationLayout.tsx +++ b/packages/web/components/templates/NavigationLayout.tsx @@ -23,7 +23,7 @@ import { useGetViewer } from '../../lib/networking/viewer/useGetViewer' import { useQueryClient } from '@tanstack/react-query' import { usePersistedState } from '../../lib/hooks/usePersistedState' import { CloseButton } from '../elements/CloseButton' -import { MaintenanceBanner } from '../elements/MaintenanceBanner' +import { ShutdownBanner } from '../elements/ShutdownBanner' export type NavigationSection = | 'home' @@ -207,6 +207,7 @@ const Header = (props: HeaderProps): JSX.Element => { height: '58px', }} > +