From db251790d1801bb28fd54601c35fba9f2b0b689a Mon Sep 17 00:00:00 2001 From: zepp Date: Wed, 19 Feb 2025 21:52:04 -0500 Subject: [PATCH] Footer component created --- src/components/Footer.astro | 48 +++++++++++++++++++++++++++++++++++++ src/pages/index.astro | 2 -- src/styles/global.css | 40 ------------------------------- 3 files changed, 48 insertions(+), 42 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index e69de29..be65e2f 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -0,0 +1,48 @@ +--- +const backgroundColor = "#ffd4de"; +const disabilityPrideBlack = "#595959"; +const disabilityPrideRed = "#cf7280"; +const disabilityPrideYellow = "#eede77"; +const disabilityPrideWhite = "#e8e8e8"; +const disabilityPrideBlue = "#7bc2e0"; +const disabilityPrideGreen = "#3bb07d"; +--- + + + + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 596eca1..8fa00b7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,4 @@ --- -import Header from "../components/Header.astro"; - import "../styles/global.css"; const pageTitle = "emma's place"; diff --git a/src/styles/global.css b/src/styles/global.css index d20439f..1cbed57 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -8,12 +8,6 @@ --link-visited: #8a2be2; --link-color: #4b0082; --border-color: #db7093; - --disability-pride-black-light: #595959; - --disability-pride-red-light: #cf7280; - --disability-pride-yellow-light: #eede77; - --disability-pride-white-light: #e8e8e8; - --disability-pride-blue-light: #7bc2e0; - --disability-pride-green-light: #3bb07d; } *, @@ -73,40 +67,6 @@ main { padding-top: 0.5rem; } -footer { - background-color: var(--background-color); - grid-row: 3/4; - grid-column: 1/3; - height: 6vh; - width: 80vw; - border-bottom-left-radius: 15px; - border-bottom-right-radius: 15px; - border-top: 10px solid; - border-image-slice: 1; - border-width: 5px; - border-image-source: linear-gradient( - to right, - var(--disability-pride-black-light) 0 35%, - var(--disability-pride-red-light) 35% 41%, - var(--disability-pride-yellow-light) 41% 47%, - var(--disability-pride-white-light) 47% 53%, - var(--disability-pride-blue-light) 53% 59%, - var(--disability-pride-green-light) 59% 65%, - var(--disability-pride-black-light) 65% 71% - ); - font-family: system-ui; - font-size: 1.3rem; - letter-spacing: 0.05rem; -} - -footer { - display: flex; - justify-content: center; - align-items: center; - flex-wrap: wrap; - gap: 0.75rem; -} - section { width: 55vw; }