From a4c65277cb516701d3ae4f9113e5e12d2ea790a1 Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Sun, 17 Dec 2023 15:50:38 -0600 Subject: [PATCH] chore(web): generate footer icons on the fly AKA, move them into a list so I only have to update the jsx once. --- src/components/Footer.tsx | 66 ++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 094ffb8a..34ed6fb1 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -24,6 +24,28 @@ const Footer: FunctionalComponent = () => { ], }, ]; + const icons = [ + { + Icon: IconLemon2, + href: "https://fresh.deno.dev/", + name: "Fresh", + }, + { + Icon: IconBrandDeno, + href: "https://deno.com/", + name: "Deno", + }, + { + Icon: IconBrandReact, + href: "https://preactjs.com/", + name: "Preact", + }, + { + Icon: IconBrandTailwind, + href: "https://tailwindcss.com/", + name: "Tailwind", + }, + ]; return (
@@ -62,35 +84,21 @@ const Footer: FunctionalComponent = () => {
Made with
- - - - -
- - - - + {icons.map(({ Icon, href, name }, index) => { + console.log(index); + return ( + <> + + + {index % 2 === 1 ?
: <>} + + ); + })}
);