Removed current implementation of calendar, to be expanded upon in a bit
This commit is contained in:
@@ -8,14 +8,14 @@
|
|||||||
const formattedDate = formatDate(entry.date);
|
const formattedDate = formatDate(entry.date);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<li class="bg-white/30 rounded-2xl mb-4 p-3" onclick={clickCB}>
|
<li class="bg-white/15 rounded-2xl mb-4 p-3" onclick={clickCB}>
|
||||||
<div class="flex flex-row">
|
<div class="flex flex-row">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-sm text-white/60">{formattedDate}</p>
|
<p class="text-sm text-white/60">{formattedDate}</p>
|
||||||
{@html generateHTML(entry.content, [StarterKit])}
|
{@html generateHTML(entry.content, [StarterKit])}
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
class="max-h-30 min-h-15 rounded-xl object-cover ml-auto"
|
class="max-h-30 min-h-15 max-w-1/2 rounded-xl object-cover ml-auto"
|
||||||
src={entry.image}
|
src={entry.image}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,23 +17,25 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col md:flex-row md:space-x-4 space-y-4 w-full">
|
<div class="flex flex-col md:flex-row space-y-4 w-full mt-6">
|
||||||
<div class="md:w-1/2">
|
|
||||||
<Calendar />
|
<div class="md:w-1/2 md:order-2">
|
||||||
<ul class="mt-4">
|
{#if selectedEntry}
|
||||||
|
<Editor bind:edit bind:entry={selectedEntry} />
|
||||||
|
{:else}
|
||||||
|
<div class="md:flex flex-col items-center justify-center mx-5 hidden">
|
||||||
|
<p class="text-white/60">Select an entry to view/edit</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="md:w-1/2 md:mr-4">
|
||||||
|
<ul>
|
||||||
{#each data.all as entry}
|
{#each data.all as entry}
|
||||||
<EntrySummaryView clickCB={async () => await selectEntry(entry.id)} {entry} />
|
<EntrySummaryView clickCB={async () => await selectEntry(entry.id)} {entry} />
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="right" class="md:w-1/2">
|
|
||||||
{#if selectedEntry}
|
|
||||||
<Editor bind:edit bind:entry={selectedEntry} />
|
|
||||||
{:else}
|
|
||||||
<div class="flex flex-col items-center justify-center h-full">
|
|
||||||
<p class="text-white/60">Select an entry to view/edit</p>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user