From f90bb0165b8bbfc48c4d113963410efe197b0387 Mon Sep 17 00:00:00 2001 From: Korbs Date: Thu, 13 Mar 2025 20:59:33 -0400 Subject: [PATCH] Add configuration for Header and Footer to use --- config.json | 55 ++++++++++++++++++++++++++++++ src/components/global/Footer.astro | 27 +++++++++------ src/components/global/Header.astro | 17 +++++---- 3 files changed, 82 insertions(+), 17 deletions(-) create mode 100644 config.json diff --git a/config.json b/config.json new file mode 100644 index 0000000..f16bf5d --- /dev/null +++ b/config.json @@ -0,0 +1,55 @@ +{ + "Meta": { + "Name": "Company Name", + "Slogan": "A company slogan goes here.", + "LegalName": "Company Name LLC", + "CopyrightDate": "2024 - 2025" + }, + "Logo": { + "Favicon": "/favicon.png", + "HeaderLight": "/LogoHeaderLight.svg", + "HeaderDark": "/LogoHeaderDark.svg", + "FooterLight": "/LogoFooterLight.png", + "FooterDark": "/LogoFooterDark.png" + }, + "Menu": { + "Center": [ + { + "Name": "Webpage", + "Link": "#" + }, + { + "Name": "Webpage", + "Link": "#" + }, + { + "Name": "Webpage", + "Link": "#" + }, + { + "Name": "Webpage", + "Link": "#" + } + ], + "End": [ + { + "Name": "Contact Us", + "Link": "#" + } + ], + "FooterBottom": [ + { + "Name": "Legal Document", + "Link": "#" + }, + { + "Name": "Privacy Policy", + "Link": "#" + }, + { + "Name": "Cookies Policy", + "Link": "#" + } + ] + } +} \ No newline at end of file diff --git a/src/components/global/Footer.astro b/src/components/global/Footer.astro index 28389ab..db28684 100644 --- a/src/components/global/Footer.astro +++ b/src/components/global/Footer.astro @@ -1,9 +1,15 @@ +--- +// Configuration +import { Meta, Menu, Logo } from "../../../config.json" +--- + @@ -54,8 +58,8 @@ footer { gap: 24px; * {margin: 0px} img { - width: 64px; - height: 64px; + height: 48px; + object-position: left; object-fit: contain; } } @@ -79,7 +83,10 @@ footer { padding-top: 24px; .bottom-footer-end { display: flex; - gap: 12px; + gap: 24px; + a { + text-decoration: none; + } } } } diff --git a/src/components/global/Header.astro b/src/components/global/Header.astro index 06f80ff..090410f 100644 --- a/src/components/global/Header.astro +++ b/src/components/global/Header.astro @@ -1,17 +1,20 @@ +--- +// Configuration +import { Meta, Menu, Logo } from "../../../config.json" +--- +
- Webpage - Webpage - Webpage - Webpage + {Menu.Center.map((Link) => {Link.Name})}
- Contact Us + {Menu.End.map((Link) => {Link.Name})}
\ No newline at end of file