From ab18403eb1d6bab2c9431707f1c63435a79f2d43 Mon Sep 17 00:00:00 2001 From: Bruce Allan Makaaru Date: Mon, 17 Dec 2018 10:19:28 +0300 Subject: [PATCH] chore (beautify homepage): Make a better first impression on the homepage - Add homepage carousel below the navigation bar - Show actual article images in the footer (remove placeholder images) - Centre the "Read More" button for each article - Add the theme colour (turquoise) where appropriate [Starts #162693578] --- src/__snapshots__/index.test.js.snap | 2 +- src/commons/initialStates.js | 6 + src/components/App/index.js | 4 +- src/components/Articles/Articles.scss | 27 +- .../Footer/__snapshots__/footer.test.js.snap | 235 ----------- src/components/Footer/footer.test.js | 23 -- src/components/Footer/index.js | 84 ---- src/components/Home/Home.scss | 17 +- src/components/Home/index.js | 8 +- .../__snapshots__/index.test.js.snap | 367 ++++++++++++++++++ src/containers/CarouselBanner/carousel.scss | 15 + src/containers/CarouselBanner/index.js | 48 +++ src/containers/CarouselBanner/index.test.js | 16 + .../Footer/__snapshots__/footer.test.js.snap | 208 ++++++++++ src/containers/Footer/footer.test.js | 39 ++ src/containers/Footer/index.js | 68 ++++ .../Footer/index.scss | 14 +- src/containers/LoginPage/LoginPage.test.js | 13 +- src/containers/LoginPage/index.js | 2 +- 19 files changed, 832 insertions(+), 364 deletions(-) delete mode 100644 src/components/Footer/__snapshots__/footer.test.js.snap delete mode 100644 src/components/Footer/footer.test.js delete mode 100644 src/components/Footer/index.js create mode 100644 src/containers/CarouselBanner/__snapshots__/index.test.js.snap create mode 100644 src/containers/CarouselBanner/carousel.scss create mode 100644 src/containers/CarouselBanner/index.js create mode 100644 src/containers/CarouselBanner/index.test.js create mode 100644 src/containers/Footer/__snapshots__/footer.test.js.snap create mode 100644 src/containers/Footer/footer.test.js create mode 100644 src/containers/Footer/index.js rename src/{components => containers}/Footer/index.scss (85%) diff --git a/src/__snapshots__/index.test.js.snap b/src/__snapshots__/index.test.js.snap index 7a1b01f..705b893 100644 --- a/src/__snapshots__/index.test.js.snap +++ b/src/__snapshots__/index.test.js.snap @@ -26,7 +26,7 @@ exports[`Provider and App renders correctly 1`] = ` path="/article/:articleId" /> -