diff --git a/src/app/components/CalendarEventDate.svelte b/src/app/components/CalendarEventDate.svelte new file mode 100644 index 00000000..04695654 --- /dev/null +++ b/src/app/components/CalendarEventDate.svelte @@ -0,0 +1,19 @@ + + +
+ {Intl.DateTimeFormat(LOCALE, {month: "short"}).format(startDate)} + {Intl.DateTimeFormat(LOCALE, {day: "numeric"}).format(startDate)} +
diff --git a/src/app/components/CalendarEventHeader.svelte b/src/app/components/CalendarEventHeader.svelte new file mode 100644 index 00000000..a1691412 --- /dev/null +++ b/src/app/components/CalendarEventHeader.svelte @@ -0,0 +1,24 @@ + + +

{meta.title || meta.name}

+
+ + {formatTimestampAsTime(start)} — {isSingleDay ? formatTimestampAsTime(end) : formatTimestamp(end)} +
diff --git a/src/app/components/CalendarEventItem.svelte b/src/app/components/CalendarEventItem.svelte index 4c202889..50144569 100644 --- a/src/app/components/CalendarEventItem.svelte +++ b/src/app/components/CalendarEventItem.svelte @@ -1,38 +1,22 @@
-

{meta.title || meta.name}

-
- - {formatTimestampAsTime(start)} — {isSingleDay - ? formatTimestampAsTime(end) - : formatTimestamp(end)} -
+
diff --git a/src/app/components/CalendarEventMeta.svelte b/src/app/components/CalendarEventMeta.svelte new file mode 100644 index 00000000..e8571ff5 --- /dev/null +++ b/src/app/components/CalendarEventMeta.svelte @@ -0,0 +1,24 @@ + + + + Posted by + +{#if meta.location} + + + + {meta.location} + +{/if} diff --git a/src/app/components/Content.svelte b/src/app/components/Content.svelte index e41c9118..dd4ee14b 100644 --- a/src/app/components/Content.svelte +++ b/src/app/components/Content.svelte @@ -1,5 +1,4 @@ - +{#if props.event.kind === EVENT_TIME} +
+ +
+
+ +
+
+
+
+ +
+
+{:else} + +{/if} diff --git a/src/routes/spaces/[relay]/calendar/[id]/+page.svelte b/src/routes/spaces/[relay]/calendar/[id]/+page.svelte index e007285d..82ba7876 100644 --- a/src/routes/spaces/[relay]/calendar/[id]/+page.svelte +++ b/src/routes/spaces/[relay]/calendar/[id]/+page.svelte @@ -1,17 +1,9 @@