Skip to content

Commit

Permalink
refactor: public footer seeds (#4434)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski authored Nov 20, 2024
1 parent 6f1fcac commit a1e79a5
Show file tree
Hide file tree
Showing 14 changed files with 297 additions and 35 deletions.
2 changes: 1 addition & 1 deletion shared-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@bloom-housing/ui-components": "12.4.0",
"@bloom-housing/ui-seeds": "1.17.0",
"@bloom-housing/ui-seeds": "1.18.1",
"@heroicons/react": "^2.1.1",
"axios-cookiejar-support": "4.0.6",
"tough-cookie": "4.1.3"
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@
"errors.timeError": "Por favor, ingrese una hora válida",
"errors.zipCodeError": "Por favor ingrese un código postal",
"footer.contact": "Contacto",
"footer.copyright": "Demonstration Jurisdiction © 2021 • Todos los derechos reservados.",
"footer.content.applicationQuestions": "Si tiene preguntas sobre el listado y la solicitud, comuníquese con el agente de arrendamiento que aparece en el listado.",
"footer.content.partnership": "en asociación con",
"footer.content.programQuestions": "Para consultas generales sobre el programa, puede llamar al MOHD al 123-456-7890.",
"footer.content.projectOf": "Bloomington Housing Portal es un proyecto de la",
"footer.copyright": "© Ciudad y condado de Bloomington",
"footer.disclaimer": "Exención de responsabilidades",
"footer.forGeneralQuestions": "Si requiere información general sobre el programa, nos puede llamar al 000-000-0000.",
"footer.giveFeedback": "Proporcione sus comentarios",
Expand Down
11 changes: 7 additions & 4 deletions shared-helpers/src/locales/general.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@
"errors.timeError": "Please enter a valid time",
"errors.zipCodeError": "Please enter a zip code",
"footer.contact": "Contact",
"footer.copyright": "Demonstration Jurisdiction © 2021 • All Rights Reserved",
"footer.content.applicationQuestions": "For listing and application questions, please contact the Leasing Agent displayed on the listing.",
"footer.content.partnership": "in partnership with",
"footer.content.programQuestions": "For general program inquiries, you may call MOHD at 123-456-7890.",
"footer.content.projectOf": "Bloomington Housing Portal is a project of the",
"footer.copyright": "© City & County of Bloomington",
"footer.disclaimer": "Disclaimer",
"footer.forGeneralQuestions": "For general program inquiries, you may call us at 000-000-0000.",
"footer.giveFeedback": "Give Feedback",
Expand Down Expand Up @@ -774,7 +778,7 @@
"pageDescription.listing": "Apply for affordable housing at %{listingName} in %{regionName}, built in partnership with Exygy.",
"pageDescription.welcome": "Search and apply for affordable housing on %{regionName}'s Housing Portal",
"pageTitle.additionalResources": "More Housing Opportunities",
"pageTitle.disclaimer": "Endorsement Disclaimers",
"pageTitle.disclaimer": "Disclaimer",
"pageTitle.getAssistance": "Get Assistance",
"pageTitle.housingCounselors": "Housing Counselors",
"pageTitle.privacy": "Privacy Policy",
Expand All @@ -785,8 +789,7 @@
"progressNav.completed": "completed",
"progressNav.notCompleted": "not completed",
"progressNav.srHeading": "Progress",
"region.name": "Local Region",
"states.AK": "Alaska",
"region.name": "Bloomington",
"states.AL": "Alabama",
"states.AR": "Arkansas",
"states.AZ": "Arizona",
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/tl.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@
"errors.timeError": "Pakilagay ang tamang oras",
"errors.zipCodeError": "Pakilagay ang zipcode",
"footer.contact": "Contact",
"footer.copyright": "Demonstration Jurisdiction © 2021 • Ang Lahat ng Karapatan ay Nakalaan",
"footer.content.applicationQuestions": "Para sa listahan at mga tanong sa aplikasyon, mangyaring makipag-ugnayan sa Leasing Agent na ipinapakita sa listahan.",
"footer.content.partnership": "sa pakikipagtulungan sa",
"footer.content.programQuestions": "Para sa mga pangkalahatang katanungan sa programa, maaari kang tumawag sa MOHD sa 123-456-7890.",
"footer.content.projectOf": "Ang Bloomington Housing Portal ay isang proyekto ng",
"footer.copyright": "© Lungsod at County ng Bloomington",
"footer.disclaimer": "Pagtatatuwa",
"footer.forGeneralQuestions": "Para sa pangkalahatang katanungan ukol sa programa, maaari mo kaming tawagan sa 000-000-0000.",
"footer.giveFeedback": "Magbigay ng Feedback",
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@
"errors.timeError": "Vui lòng nhập thời gian hợp lệ",
"errors.zipCodeError": "Vui lòng nhập số zipcode",
"footer.contact": "Liên hệ",
"footer.copyright": "Quyền tài phán biểu tình © 2021 • Bảo lưu mọi quyền",
"footer.content.applicationQuestions": "Đối với các câu hỏi về danh sách và đơn đăng ký, vui lòng liên hệ với Đại lý cho thuê được hiển thị trên danh sách.",
"footer.content.partnership": "hợp tác với",
"footer.content.programQuestions": "FNếu có thắc mắc chung về chương trình, bạn có thể gọi MOHD theo số 123-456-7890.",
"footer.content.projectOf": "Cổng thông tin nhà ở Bloomington là một dự án của",
"footer.copyright": "© Thành phố & Quận Bloomington",
"footer.disclaimer": "Tuyên bố miễn trừ trách nhiệm",
"footer.forGeneralQuestions": "Đối với các yêu cầu chung về chương trình, bạn có thể gọi cho chúng tôi theo số 000-000-0000.",
"footer.giveFeedback": "Đưa ra Phản hồi",
Expand Down
6 changes: 5 additions & 1 deletion shared-helpers/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@
"errors.timeError": "請輸入有效的時間",
"errors.zipCodeError": "請輸入郵遞區號",
"footer.contact": "聯絡方式",
"footer.copyright": "Demonstration Jurisdiction © 2021 • 版權所有",
"footer.content.applicationQuestions": "對於清單和申請問題,請聯絡清單中顯示的租賃代理。",
"footer.content.partnership": "與 合作",
"footer.content.programQuestions": "對於一般計劃查詢,您可以致電 MOHD:123-456-7890。",
"footer.content.projectOf": "布魯明頓住房門戶網站是",
"footer.copyright": "© 布魯明頓市和縣",
"footer.disclaimer": "免責聲明",
"footer.forGeneralQuestions": "若為一般計劃查詢,可以致電 000-000-0000 聯絡我們。",
"footer.giveFeedback": "提供回饋意見",
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@bloom-housing/shared-helpers": "^7.7.1",
"@bloom-housing/ui-components": "12.4.0",
"@bloom-housing/ui-seeds": "1.17.0",
"@bloom-housing/ui-seeds": "1.18.1",
"@heroicons/react": "^2.1.1",
"@mapbox/mapbox-sdk": "^0.13.0",
"ag-grid-community": "^26.0.0",
Expand Down
2 changes: 1 addition & 1 deletion sites/partners/src/components/listings/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getListingStatusTag = (listingStatus: ListingsStatusEnum) => {
return (
<Tag
className="tag-uppercase"
variant={"in-process"}
variant={"warn"}
size={"lg"}
id={"listing-status-pending-review"}
>
Expand Down
2 changes: 1 addition & 1 deletion sites/public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@bloom-housing/shared-helpers": "^7.7.1",
"@bloom-housing/ui-components": "12.4.0",
"@bloom-housing/ui-seeds": "1.17.0",
"@bloom-housing/ui-seeds": "1.18.1",
"@heroicons/react": "^2.1.1",
"@mapbox/mapbox-sdk": "^0.13.0",
"@sentry/nextjs": "^7.61.0",
Expand Down
94 changes: 94 additions & 0 deletions sites/public/public/images/default-housing-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 116 additions & 0 deletions sites/public/src/components/shared/CustomSiteFooter.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
.footer-container {
color: var(--seeds-color-on-inverse-muted);
width: 100%;
background-color: var(--seeds-bg-color-inverse);
text-align: left;
display: flex;
flex-direction: column;

a {
color: var(--seeds-color-on-inverse);
}
}

.footer-content-container {
padding-inline: var(--seeds-s6);
padding-block: var(--seeds-s12);
@media (--md-down) {
padding-inline: var(--seeds-s6);
padding-block: var(--seeds-s8);
}
width: 100%;
}

.footer {
padding-inline: 0;
text-align: left;
display: flex;
justify-content: space-between;
flex-direction: column;
align-items: flex-start;
margin: auto;
max-width: var(--seeds-screen-lg);
}

.icon-container {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;

.jurisdiction-icon {
width: var(--seeds-s24);
height: var(--seeds-s24);
display: inline-block;
margin-right: var(--seeds-s3);
margin-bottom: var(--seeds-s8);
img {
width: 100%;
height: 100%;
}
}
}

.copyright-content-container {
background-color: var(--seeds-bg-color-inverse-dark);
}

.copyright {
flex-direction: row;
justify-content: space-between;
background-color: var(--seeds-bg-color-inverse-dark);
align-items: flex-start;
color: var(--seeds-color-on-inverse-muted);
img {
margin-left: var(--seeds-s4);
}

@media (--md-down) {
flex-direction: column;
align-items: flex-start;
justify-content: start;
img {
margin-top: var(--seeds-s4);
margin-left: 0;
}
}
}

.text-container {
display: flex;
flex-direction: column;
margin-bottom: var(--seeds-s4);
}

.text-container:last-of-type {
margin-bottom: 0;
}

.copyright-text {
min-width: var(--seeds-s72);
}

.links {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-end;
margin-bottom: calc(-1 * var(--seeds-s2));
a {
color: var(--seeds-color-on-inverse-muted);
margin-left: var(--seeds-s6);
margin-bottom: var(--seeds-s2);
}
@media (--md-down) {
margin-bottom: 0;
flex-direction: column;
margin-top: var(--seeds-s8);
a {
margin-left: 0;
margin-bottom: var(--seeds-s5);
}
a:last-of-type {
margin-bottom: 0;
}
}
}
48 changes: 48 additions & 0 deletions sites/public/src/components/shared/CustomSiteFooter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React from "react"
import Link from "next/link"
import { t } from "@bloom-housing/ui-components"
import styles from "./CustomSiteFooter.module.scss"

const CustomSiteFooter = () => {
return (
<footer className={styles["footer-container"]}>
<div className={styles["footer-content-container"]}>
<div className={styles["footer"]}>
<div className={styles["icon-container"]}>
<a href={"/"} className={styles["jurisdiction-icon"]}>
<img src="/images/default-housing-logo.svg" alt={"Jurisdiction Logo"} />
</a>
</div>
<div className={styles["text-container"]}>
<span>{t("footer.content.projectOf")}</span>
<Link href={"/"}>Mayor's Office of Housing Development</Link>
</div>
<div className={styles["text-container"]}>
<span>{t("footer.content.partnership")}</span>
<Link href={"/"}>Bloomington Department of Technology</Link>
<Link href={"/"}>Mayor's Office of Civic Innovation</Link>
</div>
<div className={styles["text-container"]}>
<p>{t("footer.content.applicationQuestions")}</p>
<p>{t("footer.content.programQuestions")}</p>
</div>
</div>
</div>
<div
className={`${styles["footer-content-container"]} ${styles["copyright-content-container"]}`}
>
<div className={`${styles["footer"]} ${styles["copyright"]}`}>
<div className={styles["copyright-text"]}>{t("footer.copyright")}</div>
<div className={styles.links}>
<Link href="/">{t("footer.giveFeedback")}</Link>
<Link href="/">{t("footer.contact")}</Link>
<Link href="/privacy">{t("pageTitle.privacy")}</Link>
<Link href="/disclaimer">{t("pageTitle.disclaimer")}</Link>
</div>
</div>
</div>
</footer>
)
}

export default CustomSiteFooter
Loading

0 comments on commit a1e79a5

Please sign in to comment.