From 65fb1d8508587f952b2af56026c0eb7970cabc7c Mon Sep 17 00:00:00 2001 From: arjunpras <96985754+arjunpras@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:31:21 +0530 Subject: [PATCH] feat: Mobile app in footer (#52481) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- client/i18n/locales/english/translations.json | 1 + .../images/footer-ads/apple-store-badge.svg | 12 +++++ .../images/footer-ads/google-play-badge.svg | 12 +++++ .../Footer/__snapshots__/footer.test.tsx.snap | 49 +++++++++++++++++++ client/src/components/Footer/footer.css | 20 ++++++++ client/src/components/Footer/index.tsx | 28 ++++++++++- e2e/footer.spec.ts | 48 ++++++++++++++++++ 7 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 client/src/assets/images/footer-ads/apple-store-badge.svg create mode 100644 client/src/assets/images/footer-ads/google-play-badge.svg diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index 20f5d16be46..574df39920e 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -315,6 +315,7 @@ "donation-initiatives": "Donations to freeCodeCamp go toward our education initiatives, and help pay for servers, services, and staff.", "donate-text": "You can <1>make a tax-deductible donation here1>.", "trending-guides": "Trending Guides", + "mobile-app": "Mobile App", "our-nonprofit": "Our Charity", "links": { "about": "About", diff --git a/client/src/assets/images/footer-ads/apple-store-badge.svg b/client/src/assets/images/footer-ads/apple-store-badge.svg new file mode 100644 index 00000000000..8c7e1f9d398 --- /dev/null +++ b/client/src/assets/images/footer-ads/apple-store-badge.svg @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/client/src/assets/images/footer-ads/google-play-badge.svg b/client/src/assets/images/footer-ads/google-play-badge.svg new file mode 100644 index 00000000000..30d44b38cdc --- /dev/null +++ b/client/src/assets/images/footer-ads/google-play-badge.svg @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/client/src/components/Footer/__snapshots__/footer.test.tsx.snap b/client/src/components/Footer/__snapshots__/footer.test.tsx.snap index b733a898267..386f05cf07d 100644 --- a/client/src/components/Footer/__snapshots__/footer.test.tsx.snap +++ b/client/src/components/Footer/__snapshots__/footer.test.tsx.snap @@ -316,6 +316,55 @@ exports[` matches snapshot 1`] = ` +
+