From 4b6dafb5485742e03215d22a7c5c6a39f1c2d7c1 Mon Sep 17 00:00:00 2001 From: cliu02 <32694266+cliu02@users.noreply.github.com> Date: Wed, 29 Jan 2025 10:37:55 -0800 Subject: [PATCH] feat: restore header --- app/assets/json/translations/react/en.json | 5 ++ .../__snapshots__/BuyHeader.test.tsx.snap | 38 ++++++++++++ .../__snapshots__/ForSale.test.tsx.snap | 38 ++++++++++++ app/javascript/modules/listings/BuyHeader.tsx | 62 ++++++++++++++----- 4 files changed, 128 insertions(+), 15 deletions(-) diff --git a/app/assets/json/translations/react/en.json b/app/assets/json/translations/react/en.json index 7f91a0ccac..473c65877b 100644 --- a/app/assets/json/translations/react/en.json +++ b/app/assets/json/translations/react/en.json @@ -1565,6 +1565,11 @@ "saleDirectory.callout.citySecondLoan": "City Second Loan Program", "saleDirectory.callout.firstComeFirstServed": "First come, first served", "saleDirectory.callout.title": "Find more listings on our website:", + "saleDirectory.dalp.content": "Get a loan up to $500,000 to buy a home through the 2025 Downpayment Assistance Loan Program (DALP).", + "saleDirectory.dalp.link": "Learn more about DALP and how to apply", + "saleDirectory.dalp.subcontent": "Apply between March 4 and June 2, 2025", + "saleDirectory.dalp.subtitle": "Application dates", + "saleDirectory.dalp.title": "Get a down payment loan", "saleDirectory.getHelp.dalpProgramInfo": "The 2021 Downpayment Assistance Loan Program (DALP) will begin accepting applications on February 26, 2021.", "saleDirectory.getHelp.helpWithDownpayment": "Help with downpayments", "saleDirectory.getHelp.learnMoreAndHowToApply": "Learn more about DALP and how to apply on SF.gov", diff --git a/app/javascript/__tests__/modules/listings/__snapshots__/BuyHeader.test.tsx.snap b/app/javascript/__tests__/modules/listings/__snapshots__/BuyHeader.test.tsx.snap index 0cbc30e6e7..a51bd75752 100644 --- a/app/javascript/__tests__/modules/listings/__snapshots__/BuyHeader.test.tsx.snap +++ b/app/javascript/__tests__/modules/listings/__snapshots__/BuyHeader.test.tsx.snap @@ -111,6 +111,44 @@ exports[`BuyHeader renders BuyHeader component 1`] = ` +
+ Get a loan up to $500,000 to buy a home through the 2025 Downpayment Assistance Loan Program (DALP). +
++ Application dates +
++ Apply between March 4 and June 2, 2025 +
+ ++ Get a loan up to $500,000 to buy a home through the 2025 Downpayment Assistance Loan Program (DALP). +
++ Application dates +
++ Apply between March 4 and June 2, 2025 +
+ +{t("saleDirectory.dalp.content")}
+{t("saleDirectory.dalp.subtitle")}
+{t("saleDirectory.dalp.subcontent")}
++ {renderInlineMarkup( + t("saleDirectory.dalp.link", { + url: "https://www.sf.gov/apply-downpayment-loan-buy-market-rate-home", + }) + )} +