From 7f45161fd6871c6438bd557f6720667f36f25c65 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Sun, 30 Jan 2022 13:02:57 -0600 Subject: [PATCH 1/4] :sparkles: :art: add basic svgs for socials --- public/images/facebook.svg | 1 + public/images/github.svg | 1 + public/images/instagram.svg | 1 + public/images/linkedin.svg | 1 + public/images/tiktok.svg | 1 + public/images/twitter.svg | 1 + public/images/youtube.svg | 1 + 7 files changed, 7 insertions(+) create mode 100644 public/images/facebook.svg create mode 100644 public/images/github.svg create mode 100644 public/images/instagram.svg create mode 100644 public/images/linkedin.svg create mode 100644 public/images/tiktok.svg create mode 100644 public/images/twitter.svg create mode 100644 public/images/youtube.svg diff --git a/public/images/facebook.svg b/public/images/facebook.svg new file mode 100644 index 0000000..4ef9d67 --- /dev/null +++ b/public/images/facebook.svg @@ -0,0 +1 @@ +Facebook \ No newline at end of file diff --git a/public/images/github.svg b/public/images/github.svg new file mode 100644 index 0000000..538ec5b --- /dev/null +++ b/public/images/github.svg @@ -0,0 +1 @@ +GitHub \ No newline at end of file diff --git a/public/images/instagram.svg b/public/images/instagram.svg new file mode 100644 index 0000000..5a68721 --- /dev/null +++ b/public/images/instagram.svg @@ -0,0 +1 @@ +Instagram \ No newline at end of file diff --git a/public/images/linkedin.svg b/public/images/linkedin.svg new file mode 100644 index 0000000..caa6e69 --- /dev/null +++ b/public/images/linkedin.svg @@ -0,0 +1 @@ +LinkedIn \ No newline at end of file diff --git a/public/images/tiktok.svg b/public/images/tiktok.svg new file mode 100644 index 0000000..57ce3ae --- /dev/null +++ b/public/images/tiktok.svg @@ -0,0 +1 @@ +TikTok \ No newline at end of file diff --git a/public/images/twitter.svg b/public/images/twitter.svg new file mode 100644 index 0000000..45bd20c --- /dev/null +++ b/public/images/twitter.svg @@ -0,0 +1 @@ +Twitter \ No newline at end of file diff --git a/public/images/youtube.svg b/public/images/youtube.svg new file mode 100644 index 0000000..0492366 --- /dev/null +++ b/public/images/youtube.svg @@ -0,0 +1 @@ +YouTube \ No newline at end of file From c968918fc69e7cb0db73e551fa788d47a059614d Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Sun, 30 Jan 2022 13:03:50 -0600 Subject: [PATCH 2/4] :sparkles: add extracted column component for Footer --- components/FooterColumn.jsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 components/FooterColumn.jsx diff --git a/components/FooterColumn.jsx b/components/FooterColumn.jsx new file mode 100644 index 0000000..5005d18 --- /dev/null +++ b/components/FooterColumn.jsx @@ -0,0 +1,19 @@ +export default function FooterColumn({ title, footerColumnItems }) { + return ( +
+

{title}

+
    + {footerColumnItems?.map(({ text, href }, index) => ( +
  • + + {text} + +
  • + ))} +
+
+ ); +} From f9b839981c96fd5371985db4523e97a6e28aeba5 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Sun, 30 Jan 2022 13:03:50 -0600 Subject: [PATCH 3/4] :recycle: refactor data and views --- components/Footer.jsx | 159 +++++++++--------------------------------- 1 file changed, 34 insertions(+), 125 deletions(-) diff --git a/components/Footer.jsx b/components/Footer.jsx index d1cae6f..738b4a3 100644 --- a/components/Footer.jsx +++ b/components/Footer.jsx @@ -1,114 +1,27 @@ -export default function Footer({ entityTitle, logoSrc }) { +import FooterColumn from "./FooterColumn"; +import Image from "next/image"; + +export default function Footer({ entityTitle, logoSrc, footerItems, socials }) { return (