Skip to content

Commit

Permalink
fix: haca banner (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinBuyck authored Apr 1, 2024
1 parent 4edb185 commit bf51b1e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sites/public/src/layouts/application.module.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 5 additions & 3 deletions sites/public/src/layouts/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand All @@ -103,8 +105,8 @@ const Layout = (props) => {
</Head>
{getInMaintenance() && (
<div className={styles["site-alert-banner-container"]}>
<Message className={styles["site-alert-banner-content"]} variant={"alert"}>
{t("alert.maintenance")}
<Message className={styles["site-alert-banner-content"]} variant={"primary"}>
<Markdown>{t("alert.maintenance")}</Markdown>
</Message>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"alert.maintenance": "La Autoridad de Vivienda del <u>Condado</u> de Alameda (HACA) abrirá su lista de espera del 2 al 5 de abril. Obtenga más información en <a href='https://www.haca.net' target='_blank'>www.haca.net</a>.",
"application.contact.doYouWorkIn": "¿Trabaja usted en %{county}?",
"application.contact.doYouWorkInDescription": "",
"application.household.member.workInRegion": "¿Trabaja él o ella en %{county}?",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"alert.maintenance": "The Alameda <u>County</u> Housing Authority (HACA) will be opening its waitlist April 2 through April 5. Find out more at <a href='https://www.haca.net' target='_blank'>www.haca.net</a>.",
"application.contact.doYouWorkIn": "Do you work in %{county} County?",
"application.contact.doYouWorkInDescription": "",
"application.household.member.workInRegion": "Do they work in the %{county} County?",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"alert.maintenance": "Ang Alameda <u>County</u> Housing Authority (HACA) ay magbubukas ng waitlist nito Abril 2 hanggang Abril 5. Alamin ang higit pa sa <a href='https://www.haca.net' target='_blank'>www.haca.net</a>.",
"application.contact.doYouWorkIn": "Nagtatrabaho ka ba sa %{county} County?",
"application.household.member.workInRegion": "Nagtatrabaho ba sila sa %{county} County?",
"application.household.member.workInRegionNote": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"alert.maintenance": "Cơ quan <u>Quản</u> 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 <a href='https://www.haca.net' target='_blank'>www.haca.net</a>.",
"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?",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"alert.maintenance": "阿拉米達<u>縣</u>住房管理局 (HACA) 將於 4 月 2 日至 5 日開放候補名單。了解更多信息,請訪問 <a href='https://www.haca.net' target='_blank'>www.haca.net</a>。",
"application.contact.doYouWorkIn": "您是否在 %{county} 工作?",
"application.contact.doYouWorkInDescription": "",
"application.household.member.workInRegion": "他們是否在 %{county} 工作?",
Expand Down

0 comments on commit bf51b1e

Please sign in to comment.