From 93e0d09c831a0436258b9bde33cbc07c5bae0942 Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Mon, 10 Apr 2023 20:03:35 -0500 Subject: [PATCH] add quick links --- public/open-external-link-icon.svg | 7 +++++ src/components/Footer.tsx | 44 ++++++++++++++++++++++++------ 2 files changed, 43 insertions(+), 8 deletions(-) create mode 100644 public/open-external-link-icon.svg diff --git a/public/open-external-link-icon.svg b/public/open-external-link-icon.svg new file mode 100644 index 0000000..8cffa9d --- /dev/null +++ b/public/open-external-link-icon.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 2d8f97e..73c4d8e 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,11 +1,32 @@ import { type NextPage } from "next/types"; import Image from 'next/image'; +import Link from "next/link"; interface QuickLink { label: string, href: string, } +const links: QuickLink[] = [ + { + label: "University of Iowa", + href: "https://uiowa.edu/", + }, + { + label: "Wendell Johnson", + href: "https://www.facilities.uiowa.edu/named-building/wendell-johnson-speech-and-hearing-center", + } +] + +const QuickLink = ({label, href}: QuickLink) => { + return ( + + external link + {label} + + ) +}; + interface ContactInfo { name: string, title: string, @@ -55,9 +76,7 @@ const FooterLabeledSection = ({title, children}: { return (

{title}

-
- {children} -
+ {children}
) } @@ -83,13 +102,22 @@ const Footer: NextPage = () => { {/** Header and tabs */}
+
+ {links.map((quickLink, index) => { + return ( + + ) + })} +
- {contacts.map((contactInfo, index) => { - return ( - - ) - })} +
+ {contacts.map((contactInfo, index) => { + return ( + + ) + })} +