From 7ef631fe35dc57db1c84e7c3c92969fa23ccd42b Mon Sep 17 00:00:00 2001 From: elpekenin Date: Sun, 16 Oct 2022 09:26:35 +0200 Subject: [PATCH] Add Socials component to avoid code duplication --- src/components/Footer.astro | 18 ++---------------- src/components/Socials.astro | 30 ++++++++++++++++++++++++++++++ src/pages/index.astro | 26 +++----------------------- 3 files changed, 35 insertions(+), 39 deletions(-) create mode 100755 src/components/Socials.astro diff --git a/src/components/Footer.astro b/src/components/Footer.astro index df0ca89ee..c93a4e693 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -3,6 +3,7 @@ import socialIcons from "@assets/socialIcons"; import { SOCIALS } from "src/config"; import Hr from "./Hr.astro"; import LinkButton from "./LinkButton.astro"; +import Socials from "./Socials.astro"; const currentYear = new Date().getFullYear(); @@ -16,19 +17,7 @@ const { noMarginTop = false } = Astro.props;