From 24f60b70db83b27b437035911372397c26fceb4c Mon Sep 17 00:00:00 2001 From: Coracle-Bot Date: Wed, 9 Sep 2026 16:10:57 +0000 Subject: [PATCH] Center the home page content and let its section rules reach the page edge --- src/app/components/HomeNetwork.svelte | 6 +++--- src/app/components/HomeSection.svelte | 2 +- src/lib/components/base.css | 24 ++++++++++++++++++++++++ src/routes/home/+page.svelte | 11 ++++++++--- 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/src/app/components/HomeNetwork.svelte b/src/app/components/HomeNetwork.svelte index a05374ce..e046ddd7 100644 --- a/src/app/components/HomeNetwork.svelte +++ b/src/app/components/HomeNetwork.svelte @@ -94,15 +94,15 @@ Browse spaces {:else if items.length === 0} -
- Looking for posts from people you follow… +
+ Loading recent posts...
{:else} {#each items as event (event.id)} {/each} {#if loading} -
+
{/if} diff --git a/src/app/components/HomeSection.svelte b/src/app/components/HomeSection.svelte index aca12438..73b7c653 100644 --- a/src/app/components/HomeSection.svelte +++ b/src/app/components/HomeSection.svelte @@ -13,7 +13,7 @@ const {title, icon, action, children, class: className = ""}: Props = $props() -
+

diff --git a/src/lib/components/base.css b/src/lib/components/base.css index cbbabb27..310862f1 100644 --- a/src/lib/components/base.css +++ b/src/lib/components/base.css @@ -105,6 +105,30 @@ content-visibility: auto; contain-intrinsic-size: auto 16rem; } +/* Carries a bottom border out past the element's own box, so a centered column can still rule the + page from edge to edge. The pseudo-elements inherit that border, so an element without one draws + nothing; --rule-bleed-l and --rule-bleed-r turn off the side that faces a neighbor. */ +@utility rule-bleed { + position: relative; + + &::before, + &::after { + content: ""; + position: absolute; + bottom: calc(-1 * var(--border-thin)); + border-bottom: inherit; + } + + &::before { + right: 100%; + width: var(--rule-bleed-l, 100vw); + } + + &::after { + left: 100%; + width: var(--rule-bleed-r, 100vw); + } +} /* Marks the event a link pointed at, so the reader can pick it out of the conversation once the jump lands. Brightness rather than a background so it works over any row's own surface. */ @utility highlight-target { diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 1388d98f..01b60221 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -33,15 +33,20 @@

-
+ +
-
+
-
+
{#if HOSTING_ENABLED}