From dc0301a86efe40b39fb9ec8ffafbf6ff3efde1c0 Mon Sep 17 00:00:00 2001 From: Tom Heaton Date: Tue, 18 Jun 2024 12:33:53 +0100 Subject: [PATCH] footer dynamic rendering --- src/components/Footer/index.jsx | 70 +++++++++++++++------------- src/components/HeroSection/index.jsx | 4 +- src/images/square-x-twitter.svg | 39 ---------------- 3 files changed, 40 insertions(+), 73 deletions(-) delete mode 100644 src/images/square-x-twitter.svg diff --git a/src/components/Footer/index.jsx b/src/components/Footer/index.jsx index 71ffcf4..5544523 100755 --- a/src/components/Footer/index.jsx +++ b/src/components/Footer/index.jsx @@ -1,9 +1,8 @@ import { FaLinkedin } from "react-icons/fa"; +import { FaSquareXTwitter } from "react-icons/fa6"; import { animateScroll as scroll } from "react-scroll"; -import twitterImg from "../../images/square-x-twitter.svg"; import { FooterContainer, - FooterImg, FooterWrap, SocialIconLink, SocialIcons, @@ -13,6 +12,26 @@ import { WebsiteRights, } from "./FooterElements"; +const images = [ + "https://freepik.com/free-vector/hand-coding-concept-illustration_21864184.htm#query=coding&position=17&from_view=search&track=sph&uuid=5896d847-38e4-4cb9-8fe1-103041c7c933", + "https://freepik.com/free-vector/mathematics-concept-illustration_10733824.htm#query=professor&position=13&from_view=search&track=sph&uuid=5b1a188a-64c5-45af-aae2-8573bc1bed3c", + "https://freepik.com/free-vector/content-concept-illustration_7171429.htm#query=media&position=3&from_view=search&track=sph&uuid=c7e35cf2-d85d-4bba-91a6-1cd883dcf153", + "https://freepik.com/free-vector/library-concept-illustration_9148008.htm#query=library&position=40&from_view=search&track=sph&uuid=abecc792-b6b2-4ec0-b318-5e6cc73ba649", +]; + +const socials = [ + { + href: "https://twitter.com/SimonPrinceAI", + icon: FaSquareXTwitter, + alt: "Twitter", + }, + { + href: "https://linkedin.com/in/simon-prince-615bb9165/", + icon: FaLinkedin, + alt: "LinkedIn", + }, +]; + export default function Footer() { const toggleHome = () => { scroll.scrollToTop(); @@ -28,41 +47,28 @@ export default function Footer() { Understanding Deep Learning - ©{new Date().getFullYear()} Simon J.D. Prince + © {new Date().getFullYear()} Simon J.D. Prince Images by StorySet on FreePik:{" "} - - {" "} - [1]{" "} - {" "} - - [2] - {" "} - - {" "} - [3] - {" "} - - {" "} - [4] - + {images.map((image, index) => ( + + [{index + 1}] + + ))} - - - - - - + {socials.map((social, index) => ( + + + + ))} diff --git a/src/components/HeroSection/index.jsx b/src/components/HeroSection/index.jsx index f84d393..4576a78 100755 --- a/src/components/HeroSection/index.jsx +++ b/src/components/HeroSection/index.jsx @@ -169,7 +169,7 @@ export default function HeroSection() { Follow me on{" "} Twitter or{" "} - + LinkedIn {" "} for updates. @@ -177,7 +177,7 @@ export default function HeroSection() { - book cover + UDL Book Download full pdf (27 May 2024) diff --git a/src/images/square-x-twitter.svg b/src/images/square-x-twitter.svg deleted file mode 100644 index eb785b3..0000000 --- a/src/images/square-x-twitter.svg +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - -