From fd8ff84037b823846e8e9fd2cf49fc4318da267c Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Fri, 12 Jan 2024 01:04:20 +0100 Subject: [PATCH 1/2] add articles section --- src/app.css | 4 + src/lib/components/Posts.svelte | 83 +++++++++++++++++++ src/lib/components/Projects.svelte | 2 +- .../components/nav/DektopNavigation.svelte | 5 +- .../components/nav/MobileNavigation.svelte | 15 +++- src/routes/+page.svelte | 3 + 6 files changed, 106 insertions(+), 6 deletions(-) create mode 100644 src/lib/components/Posts.svelte diff --git a/src/app.css b/src/app.css index 5f7b8a1..0fefdb6 100644 --- a/src/app.css +++ b/src/app.css @@ -19,3 +19,7 @@ scrollbar-width: none; /* Firefox */ } } + +/* * { + outline: red solid 1px; +} */ \ No newline at end of file diff --git a/src/lib/components/Posts.svelte b/src/lib/components/Posts.svelte new file mode 100644 index 0000000..b3ea532 --- /dev/null +++ b/src/lib/components/Posts.svelte @@ -0,0 +1,83 @@ + + +
+
+
+
+

+ My ramblings +

+

+ Here are some of my thoughts on things I'm learning or working on. +

+
+
+
+ {#each articles as article} + + {/each} +
+
+
+
+
diff --git a/src/lib/components/Projects.svelte b/src/lib/components/Projects.svelte index f832fb1..5c127c5 100644 --- a/src/lib/components/Projects.svelte +++ b/src/lib/components/Projects.svelte @@ -136,7 +136,7 @@ {#if project.link}

diff --git a/src/lib/components/nav/MobileNavigation.svelte b/src/lib/components/nav/MobileNavigation.svelte index a9ae322..8160da6 100644 --- a/src/lib/components/nav/MobileNavigation.svelte +++ b/src/lib/components/nav/MobileNavigation.svelte @@ -17,7 +17,7 @@ open.set(false); } - export let active: 'home' | 'about' | 'projects' | 'learning' | 'contact' = 'home'; + export let active: 'home' | 'about' | 'projects' | 'learning' | 'contact' | 'articles' = 'home';