From 3a95dd35df9f706b2f9ed77213e94cd127c6c197 Mon Sep 17 00:00:00 2001 From: Nicola Zangrandi Date: Mon, 17 Feb 2025 16:21:26 +0100 Subject: [PATCH] feat(qn): Add responsive navigation with side/bottom bar --- src/lib/components/Navigation.svelte | 79 ++++++++++++++++++++++++++++ src/routes/+page.svelte | 3 ++ src/routes/feeds/+page.svelte | 14 +++++ src/routes/notes/[id]/+page.svelte | 16 ++++-- src/routes/readlist/+page.svelte | 14 +++++ 5 files changed, 123 insertions(+), 3 deletions(-) create mode 100644 src/lib/components/Navigation.svelte create mode 100644 src/routes/feeds/+page.svelte create mode 100644 src/routes/readlist/+page.svelte diff --git a/src/lib/components/Navigation.svelte b/src/lib/components/Navigation.svelte new file mode 100644 index 0000000..647f220 --- /dev/null +++ b/src/lib/components/Navigation.svelte @@ -0,0 +1,79 @@ + + + + +{#if isMobile} + +{:else} + +{/if} + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index b3193c5..3030ef8 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2,6 +2,7 @@ import { notes } from '$lib'; import { stripMarkdown } from '$lib/markdown'; import { onMount } from 'svelte'; + import Navigation from '$lib/components/Navigation.svelte'; onMount(() => { notes.load(); @@ -9,6 +10,8 @@ }); + +

My Notes

diff --git a/src/routes/feeds/+page.svelte b/src/routes/feeds/+page.svelte new file mode 100644 index 0000000..89a05c3 --- /dev/null +++ b/src/routes/feeds/+page.svelte @@ -0,0 +1,14 @@ + + + + +
+
+

Feed Reader

+
+ Feed Reader functionality coming soon! +
+
+
diff --git a/src/routes/notes/[id]/+page.svelte b/src/routes/notes/[id]/+page.svelte index 8728761..1ae7032 100644 --- a/src/routes/notes/[id]/+page.svelte +++ b/src/routes/notes/[id]/+page.svelte @@ -59,7 +59,17 @@ } -
+
{ + if (event.key === 'Enter' || event.key === ' ') { + handleLinkClick(event); + } + }} + role="button" + tabindex="0" +>
{#if note} {#if isEditing} @@ -89,8 +99,8 @@ >
- -
+ +
{@html renderMarkdown(editedContent)}
diff --git a/src/routes/readlist/+page.svelte b/src/routes/readlist/+page.svelte new file mode 100644 index 0000000..b34d214 --- /dev/null +++ b/src/routes/readlist/+page.svelte @@ -0,0 +1,14 @@ + + + + +
+
+

Read Later

+
+ Read Later functionality coming soon! +
+
+