diff --git a/src/app.css b/src/app.css index e193aa3..366204c 100644 --- a/src/app.css +++ b/src/app.css @@ -36,6 +36,10 @@ border-radius: var(--radius-md); } + button:hover { + background-color: var(--color-gray-300); + } + /* svx post styling */ .post h1 { @apply text-3xl; @@ -83,6 +87,16 @@ @apply list-disc; @apply pl-6; } + + .post ol { + @apply list-decimal; + @apply pl-7; + } + + .post ol li::marker { + @apply font-semibold; + @apply text-black; + } } @layer components { diff --git a/src/lib/assets/making-of/inspiration.png b/src/lib/assets/making-of/inspiration.png new file mode 100644 index 0000000..04b6557 Binary files /dev/null and b/src/lib/assets/making-of/inspiration.png differ diff --git a/src/lib/assets/making-of/old.png b/src/lib/assets/making-of/old.png new file mode 100644 index 0000000..b82badf Binary files /dev/null and b/src/lib/assets/making-of/old.png differ diff --git a/src/lib/yap/_layout.svelte b/src/lib/yap/_layout.svelte index ff2a92d..43c654e 100644 --- a/src/lib/yap/_layout.svelte +++ b/src/lib/yap/_layout.svelte @@ -8,13 +8,27 @@ layout for posts, used by mdsvex title, date: _date, posted: _posted, + minimized, children, - }: { title: string; date: string; posted: string; children: Snippet } = $props(); - let date = $derived(new Date(_date)); - let posted = $derived(new Date(_posted)); - let expanded = $state(true); + }: { + title: string; + date: string; + posted: string; + minimized?: boolean; + children: Snippet; + } = $props(); + + // commented out for now since I want to display og timezone, and I realized there's no sorting the list atm + // let date = $derived(new Date(_date)); + // let posted = $derived(new Date(_posted)); + + // svelte-ignore state_referenced_locally + let expanded = $state(minimized ? false : true); + + +