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} + + + {#each routes as route} + + + {route.icon} + {route.label} + + + {/each} + + +{:else} + + {#each routes as route} + + {route.icon} + {route.label} + + {/each} + +{/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 @@ > - Preview - + Preview + {@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! + + +
{route.label}