From 10e669a7257cb8f5961f5b6397048780b3fe2ad4 Mon Sep 17 00:00:00 2001
From: Jonas_Jones <91549607+J-onasJones@users.noreply.github.com>
Date: Mon, 2 Oct 2023 19:29:33 +0200
Subject: [PATCH] Code Refactor
---
src/lib/components/Header.svelte | 26 ++++---
src/lib/components/NavbarList.svelte | 110 +++++++++++++--------------
src/lib/styles/style.css | 2 +-
src/routes/+layout.svelte | 1 -
4 files changed, 72 insertions(+), 67 deletions(-)
diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte
index 77b2af9..97c1d9d 100644
--- a/src/lib/components/Header.svelte
+++ b/src/lib/components/Header.svelte
@@ -9,7 +9,14 @@
@@ -62,15 +69,14 @@
clear: both;
}
+ @media screen and (max-width: 550px) {
+ header h1 {
+ font-size: 20px;
+ }
-@media screen and (max-width: 550px) {
- header h1 {
- font-size: 20px;
+ header {
+ margin: 0;
+ border-radius: 0;
+ }
}
-
- header {
- margin: 0;
- border-radius: 0;
- }
-}
diff --git a/src/lib/components/NavbarList.svelte b/src/lib/components/NavbarList.svelte
index 89726f1..5cd78a8 100644
--- a/src/lib/components/NavbarList.svelte
+++ b/src/lib/components/NavbarList.svelte
@@ -1,73 +1,73 @@
-{@html renderedList}
\ No newline at end of file
+{@html renderedList}
diff --git a/src/lib/styles/style.css b/src/lib/styles/style.css
index 1d3439e..054968a 100644
--- a/src/lib/styles/style.css
+++ b/src/lib/styles/style.css
@@ -156,4 +156,4 @@ details a {
margin-bottom: 1rem;
border-radius: 0;
}
-}
+}
\ No newline at end of file
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index f47681f..f7341bd 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -2,7 +2,6 @@
import Header from "$lib/components/Header.svelte";
import Footer from "$lib/components/Footer.svelte";
import Navbar from "$lib/components/Navbar.svelte";
-