From 5e7df2e07445ad76c08687072bfdb28de793c950 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 25 Dec 2024 11:04:20 -0500 Subject: [PATCH] feat(frontend): add footer --- Foxnouns.Frontend/src/app.scss | 8 ++ .../src/lib/components/Footer.svelte | 83 +++++++++++++++++++ Foxnouns.Frontend/src/routes/+layout.svelte | 11 ++- 3 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 Foxnouns.Frontend/src/lib/components/Footer.svelte diff --git a/Foxnouns.Frontend/src/app.scss b/Foxnouns.Frontend/src/app.scss index e1d59ab..c678355 100644 --- a/Foxnouns.Frontend/src/app.scss +++ b/Foxnouns.Frontend/src/app.scss @@ -64,3 +64,11 @@ max-width: 200px; border-radius: 3px; } + +.big-footer { + @media (prefers-color-scheme: dark) { + background-color: bootstrap.shade-color(bootstrap.$dark, 20%); + } + + background-color: bootstrap.shade-color(bootstrap.$light, 5%); +} diff --git a/Foxnouns.Frontend/src/lib/components/Footer.svelte b/Foxnouns.Frontend/src/lib/components/Footer.svelte new file mode 100644 index 0000000..f3315f2 --- /dev/null +++ b/Foxnouns.Frontend/src/lib/components/Footer.svelte @@ -0,0 +1,83 @@ + + + diff --git a/Foxnouns.Frontend/src/routes/+layout.svelte b/Foxnouns.Frontend/src/routes/+layout.svelte index ceff270..e5be130 100644 --- a/Foxnouns.Frontend/src/routes/+layout.svelte +++ b/Foxnouns.Frontend/src/routes/+layout.svelte @@ -3,11 +3,16 @@ import "../app.scss"; import type { LayoutData } from "./$types"; import Navbar from "$components/Navbar.svelte"; + import Footer from "$components/Footer.svelte"; type Props = { children: Snippet; data: LayoutData }; let { children, data }: Props = $props(); - - -{@render children?.()} +
+
+ + {@render children?.()} +
+