From bdba24336a41fb2a0ec7166d2900449e14a1e9ad Mon Sep 17 00:00:00 2001 From: ColinBuyck Date: Mon, 1 Apr 2024 12:52:11 -0700 Subject: [PATCH] fix: haca banner --- sites/public/src/layouts/application.module.scss | 2 +- sites/public/src/layouts/application.tsx | 8 +++++--- .../alameda/locale_overrides/es.json | 1 + .../alameda/locale_overrides/general.json | 1 + .../alameda/locale_overrides/tl.json | 1 + .../alameda/locale_overrides/vi.json | 1 + .../alameda/locale_overrides/zh.json | 1 + 7 files changed, 11 insertions(+), 4 deletions(-) diff --git a/sites/public/src/layouts/application.module.scss b/sites/public/src/layouts/application.module.scss index b8b3903abd..f65784fcca 100644 --- a/sites/public/src/layouts/application.module.scss +++ b/sites/public/src/layouts/application.module.scss @@ -1,5 +1,5 @@ .site-alert-banner-container { - background-color: var(--seeds-color-alert-light); + background-color: var(--seeds-color-primary-light); width: 100%; display: flex; align-items: center; diff --git a/sites/public/src/layouts/application.tsx b/sites/public/src/layouts/application.tsx index cee7e1f7a1..2024a44bbe 100644 --- a/sites/public/src/layouts/application.tsx +++ b/sites/public/src/layouts/application.tsx @@ -2,6 +2,7 @@ import React, { useContext } from "react" import dayjs from "dayjs" import { useRouter } from "next/router" import Head from "next/head" +import Markdown from "markdown-to-jsx" import { JurisdictionFooterSection as SanMateoFooter } from "../page_content/jurisdiction_overrides/san_mateo/jurisdiction-footer-section" import { JurisdictionFooterSection as SanJoseFooter } from "../page_content/jurisdiction_overrides/san_jose/jurisdiction-footer-section" import { JurisdictionFooterSection as AlamedaFooter } from "../page_content/jurisdiction_overrides/alameda/jurisdiction-footer-section" @@ -79,7 +80,8 @@ const Layout = (props) => { const startWindow = convertWindowToDate(maintenanceWindow[0]) const endWindow = convertWindowToDate(maintenanceWindow[1]) const now = dayjs() - inMaintenance = now > startWindow && now < endWindow + inMaintenance = + now > startWindow && now < endWindow && process.env.jurisdictionName === "Alameda" } return inMaintenance } @@ -103,8 +105,8 @@ const Layout = (props) => { {getInMaintenance() && (
- - {t("alert.maintenance")} + + {t("alert.maintenance")}
)} diff --git a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/es.json b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/es.json index 9e313a8f77..31afd19857 100644 --- a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/es.json +++ b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/es.json @@ -1,4 +1,5 @@ { + "alert.maintenance": "La Autoridad de Vivienda del Condado de Alameda (HACA) abrirá su lista de espera del 2 al 5 de abril. Obtenga más información en www.haca.net.", "application.contact.doYouWorkIn": "¿Trabaja usted en %{county}?", "application.contact.doYouWorkInDescription": "", "application.household.member.workInRegion": "¿Trabaja él o ella en %{county}?", diff --git a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/general.json b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/general.json index 004e8bdd7a..1778302f6c 100644 --- a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/general.json +++ b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/general.json @@ -1,4 +1,5 @@ { + "alert.maintenance": "The Alameda County Housing Authority (HACA) will be opening its waitlist April 2 through April 5. Find out more at www.haca.net.", "application.contact.doYouWorkIn": "Do you work in %{county} County?", "application.contact.doYouWorkInDescription": "", "application.household.member.workInRegion": "Do they work in the %{county} County?", diff --git a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/tl.json b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/tl.json index 988ccd8a1c..4e6e6ed0c6 100644 --- a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/tl.json +++ b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/tl.json @@ -1,4 +1,5 @@ { + "alert.maintenance": "Ang Alameda County Housing Authority (HACA) ay magbubukas ng waitlist nito Abril 2 hanggang Abril 5. Alamin ang higit pa sa www.haca.net.", "application.contact.doYouWorkIn": "Nagtatrabaho ka ba sa %{county} County?", "application.household.member.workInRegion": "Nagtatrabaho ba sila sa %{county} County?", "application.household.member.workInRegionNote": "", diff --git a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/vi.json b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/vi.json index 508a7a4786..44885ab21a 100644 --- a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/vi.json +++ b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/vi.json @@ -1,4 +1,5 @@ { + "alert.maintenance": "Cơ quan Quản lý Nhà ở Quận Alameda (HACA) sẽ mở danh sách chờ từ ngày 2 tháng 4 đến ngày 5 tháng 4. Tìm hiểu thêm tại www.haca.net.", "application.contact.doYouWorkIn": "Quý vị có làm việc tại %{county} không?", "application.contact.doYouWorkInDescription": "", "application.household.member.workInRegion": "Họ có làm việc tại %{county} không?", diff --git a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/zh.json b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/zh.json index 0d5b952b28..da933d4ac2 100644 --- a/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/zh.json +++ b/sites/public/src/page_content/jurisdiction_overrides/alameda/locale_overrides/zh.json @@ -1,4 +1,5 @@ { + "alert.maintenance": "阿拉米達住房管理局 (HACA) 將於 4 月 2 日至 5 日開放候補名單。了解更多信息,請訪問 www.haca.net。", "application.contact.doYouWorkIn": "您是否在 %{county} 工作?", "application.contact.doYouWorkInDescription": "", "application.household.member.workInRegion": "他們是否在 %{county} 工作?",