diff --git a/src/components/config-pages/local-footer.tsx b/src/components/config-pages/local-footer.tsx index 55694ff0..78506f71 100644 --- a/src/components/config-pages/local-footer.tsx +++ b/src/components/config-pages/local-footer.tsx @@ -19,6 +19,7 @@ import {H2} from "@components/elements/headers"; import TwitterIcon from "@components/elements/icons/TwitterIcon"; import YoutubeIcon from "@components/elements/icons/YoutubeIcon"; import FacebookIcon from "@components/elements/icons/FacebookIcon"; +import InstagramIcon from "@components/elements/icons/InstagramIcon"; import { Maybe, StanfordLocalFooter} from "@lib/gql/__generated__/drupal.d"; import {buildUrl} from "@lib/drupal/utils"; @@ -59,28 +60,25 @@ const LocalFooter = ({ } return ( -
+
-
+
+ className="grid md:grid-cols-2 lg:grid-cols-4 gap-32 [&_a]:font-normal [&_a]:underline [&_a]:text-white [&_a]:decoration-fog-dark [&_a:hover]:underline [&_a:hover]:text-fog-dark [&_a:focus]:underline [&_a:focus]:text-fog-dark [&_a]:transition">
- {suLocalFootAddress && -
- } - - {suLocalFootAction && -
    - {suLocalFootAction.map((link, index) => { + {suLocalFootSocial && +
      + {suLocalFootSocial.map((link, index) => { if (!link.url) return; return (
    • - {link.title} + + {link.title}
    • ) @@ -88,15 +86,18 @@ const LocalFooter = ({
    } - {suLocalFootSocial && -
      - {suLocalFootSocial.map((link, index) => { + {/* {suLocalFootAddress && +
      + } */} + + {suLocalFootAction && +
        + {suLocalFootAction.map((link, index) => { if (!link.url) return; return (
      • - - {link.title} + {link.title}
      • ) @@ -160,9 +161,10 @@ const LocalFooter = ({ } const SocialIcon = ({url}: { url: string }) => { + if (url.includes('facebook')) return if (url.includes('twitter.com')) return if (url.includes('youtube.com')) return - if (url.includes('facebook')) return + if (url.includes('instagram')) return return null; } diff --git a/src/components/elements/icons/TwitterIcon.tsx b/src/components/elements/icons/TwitterIcon.tsx index 404776b5..13609fdc 100644 --- a/src/components/elements/icons/TwitterIcon.tsx +++ b/src/components/elements/icons/TwitterIcon.tsx @@ -2,13 +2,13 @@ import {HTMLAttributes} from "react"; const TwitterIcon = (props: HTMLAttributes) => ( )