diff --git a/policy_dump.sql b/policy_dump.sql deleted file mode 100644 index e69de29..0000000 diff --git a/policy_dump.txt b/policy_dump.txt deleted file mode 100644 index e69de29..0000000 diff --git a/src/lib/components/calendar/Calendar.svelte b/src/lib/components/calendar/Calendar.svelte index 202747d..fcdd77d 100644 --- a/src/lib/components/calendar/Calendar.svelte +++ b/src/lib/components/calendar/Calendar.svelte @@ -38,7 +38,6 @@ getMonthDays(currentDate.getFullYear(), currentDate.getMonth()), ); - // Group days into weeks (rows of 7) const weeks = $derived.by(() => { const result: Date[][] = []; for (let i = 0; i < days.length; i += 7) { @@ -58,14 +57,13 @@ return date.getMonth() === currentDate.getMonth(); } - const monthYear = $derived( + const headerTitle = $derived( currentDate.toLocaleDateString(undefined, { month: "long", year: "numeric", }), ); - // Get week days for week view (Mon-Sun) function getWeekDays(date: Date): Date[] { const startOfWeek = new Date(date); const dayOfWeek = startOfWeek.getDay(); @@ -116,145 +114,154 @@ currentDate = new Date(); } - const headerTitle = $derived.by(() => { - if (currentView === "day") { - return currentDate.toLocaleDateString(undefined, { - weekday: "long", - month: "long", - day: "numeric", - year: "numeric", - }); - } else if (currentView === "week") { - const start = weekDates[0]; - const end = weekDates[6]; - return `${start.toLocaleDateString(undefined, { month: "short", day: "numeric" })} - ${end.toLocaleDateString(undefined, { month: "short", day: "numeric", year: "numeric" })}`; - } - return monthYear; - }); + const iconStyle = + "font-size: 24px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;"; -
+ {m.calendar_no_events()} +
+