From 8ca2d0405125bbf573ff74025e158e5352e240d3 Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Thu, 29 Jan 2026 21:40:25 +0100 Subject: [PATCH] ux: add ui-hero primitive --- .../components/ui/DesignSystemStyles.astro | 36 +++++++++++++++++++ .../src/pages/communities/[slug]/index.astro | 29 +++------------ .../pages/communities/[slug]/plugins.astro | 32 +++-------------- .../communities/[slug]/proposals/index.astro | 32 +++-------------- frontend/src/pages/proposals.astro | 32 +++-------------- frontend/src/pages/proposals/[id].astro | 25 ++----------- 6 files changed, 55 insertions(+), 131 deletions(-) diff --git a/frontend/src/components/ui/DesignSystemStyles.astro b/frontend/src/components/ui/DesignSystemStyles.astro index dc4cd69..8f0056b 100644 --- a/frontend/src/components/ui/DesignSystemStyles.astro +++ b/frontend/src/components/ui/DesignSystemStyles.astro @@ -503,6 +503,42 @@ margin: 0; } + .ui-hero { + padding: var(--ui-hero-pad, 1.25rem); + margin-bottom: var(--ui-hero-mb, 1rem); + } + + .ui-hero-top { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 1rem; + flex-wrap: wrap; + } + + .ui-hero-title { + margin: 0; + font-size: 2.125rem; + letter-spacing: -0.02em; + } + + .ui-hero-title h1 { + margin: 0; + font-size: inherit; + letter-spacing: inherit; + } + + .ui-hero-subtitle { + margin: 0.25rem 0 0; + color: var(--color-text-muted); + } + + @media (max-width: 640px) { + .ui-hero-title { + font-size: 1.75rem; + } + } + .ui-auth-page { display: flex; justify-content: center; diff --git a/frontend/src/pages/communities/[slug]/index.astro b/frontend/src/pages/communities/[slug]/index.astro index 6217a1f..9114710 100644 --- a/frontend/src/pages/communities/[slug]/index.astro +++ b/frontend/src/pages/communities/[slug]/index.astro @@ -50,9 +50,9 @@ const { slug } = Astro.params; const communityDesc = community.description ? escapeHtml(community.description) : ''; container.innerHTML = ` -
-
-
+
+
+

${communityName}

/${communitySlug}
@@ -404,22 +404,7 @@ const { slug } = Astro.params;