From 4a3b217cafeccaafdb261b5428623078b3f7af0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Wed, 3 Sep 2025 20:09:57 +0200 Subject: [PATCH] Stacking layouts --- src/app.css | 2 +- src/lib/components/EventDetails.svelte | 8 +-- src/lib/components/RelayStatus.svelte | 18 +++--- src/lib/components/util/Profile.svelte | 10 +-- src/routes/+layout.svelte | 4 +- src/routes/about/+page.svelte | 6 +- src/routes/about/relay-stats/+page.svelte | 2 +- src/routes/contact/+page.svelte | 2 +- src/routes/profile/+page.svelte | 64 +------------------ src/routes/profile/my-notes/+page.svelte | 2 + .../[type]/[identifier]/+page.svelte | 4 +- src/routes/start/+page.svelte | 2 +- 12 files changed, 32 insertions(+), 92 deletions(-) diff --git a/src/app.css b/src/app.css index 5385791..cbcaed0 100644 --- a/src/app.css +++ b/src/app.css @@ -707,7 +707,7 @@ /* Table of Contents highlighting */ .toc-highlight { - @apply bg-primary-200 dark:bg-primary-700 border-l-4 border-primary-600 + @apply bg-primary-200 dark:bg-primary-700 border-s-4 border-primary-600 rounded dark:border-primary-400 font-medium; transition: all 0.2s ease-in-out; } diff --git a/src/lib/components/EventDetails.svelte b/src/lib/components/EventDetails.svelte index 4fb72e7..8d44bf1 100644 --- a/src/lib/components/EventDetails.svelte +++ b/src/lib/components/EventDetails.svelte @@ -6,7 +6,7 @@ import { activeInboxRelays } from "$lib/ndk"; import type { NDKEvent } from "$lib/utils/nostrUtils"; import { getMatchingTags } from "$lib/utils/nostrUtils"; - import ProfileHeader from "$components/cards/ProfileHeader.svelte"; + import { AProfilePreview } from "$lib/a"; import { goto } from "$app/navigation"; import { onMount } from "svelte"; import { getUserMetadata } from "$lib/utils/nostrUtils"; @@ -423,11 +423,7 @@ {#if event.kind === 0} - + {/if} diff --git a/src/lib/components/RelayStatus.svelte b/src/lib/components/RelayStatus.svelte index 9f26cb4..7a7b37c 100644 --- a/src/lib/components/RelayStatus.svelte +++ b/src/lib/components/RelayStatus.svelte @@ -1,5 +1,5 @@ -
-
+
+
Relay Connection Status - -
- {#if loading} - Loading profile… - {/if} - {#if error} - Error loading profile: {error} - {/if} -
-
+ {#if profileEvent}
diff --git a/src/routes/profile/my-notes/+page.svelte b/src/routes/profile/my-notes/+page.svelte index 589907f..586a993 100644 --- a/src/routes/profile/my-notes/+page.svelte +++ b/src/routes/profile/my-notes/+page.svelte @@ -1,5 +1,6 @@ -
+
Getting Started with Alexandria