diff --git a/src/lib/components/EntryCard.svelte b/src/lib/components/EntryCard.svelte new file mode 100644 index 0000000..cb120d6 --- /dev/null +++ b/src/lib/components/EntryCard.svelte @@ -0,0 +1,67 @@ + + +
+
+ {#if entry.type === 'task'} +
+ + +
+ {:else} + + T + + {/if} + +
+

+ {entry.title || 'Untitled'} +

+

+ {entry.content} +

+
+ + + {entry.type} + +
+
diff --git a/src/lib/components/EntryList.svelte b/src/lib/components/EntryList.svelte new file mode 100644 index 0000000..2a2cdad --- /dev/null +++ b/src/lib/components/EntryList.svelte @@ -0,0 +1,23 @@ + + +{#if entries.length === 0} +
+

No entries yet

+

Use the capture bar below to add your first entry

+
+{:else} +
+ {#each entries as entry (entry.id)} + + {/each} +
+{/if}