diff --git a/src/lib/components/Hero.svelte b/src/lib/components/Hero.svelte index fc9097b0..630e7fbc 100644 --- a/src/lib/components/Hero.svelte +++ b/src/lib/components/Hero.svelte @@ -116,8 +116,7 @@ .hero { display: block; - height: 100vh; - min-height: var(--hero-min-height); + height: 100%; overflow: hidden; position: relative; width: 100vw; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 8a9965d0..8b503f3c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -51,51 +51,60 @@ Top - -{#if data.localeAlert} - - - {@html data.localeAlert.message} - -{:else if geo?.country?.code === 'GB'} - - PauseAI's largest ever protest will be on Saturday February 28th in London. Sign up now! + + {#if data.localeAlert} + - -{:else} - - {#if !eventFound} - {#if geo?.country?.code === 'US' && false} - - HELP US PROTECT STATE SOVEREIGNTY ON AI REGULATION | ACT NOW ยป - - {:else if false} - - ๐ŸŽ„ Holiday Matching Campaign! Help fund volunteer stipends for PauseAI - advocates. Join the Little Helpers campaign โ†’ - + + {@html data.localeAlert.message} + + {:else if geo?.country?.code === 'GB'} + + PauseAI's largest ever protest will be on Saturday February 28th in London. Sign up now! + + {:else} + + {#if !eventFound} + {#if geo?.country?.code === 'US' && false} + + HELP US PROTECT STATE SOVEREIGNTY ON AI REGULATION | ACT NOW ยป + + {:else if false} + + ๐ŸŽ„ Holiday Matching Campaign! Help fund volunteer stipends for PauseAI + advocates. Join the Little Helpers campaign โ†’ + + {/if} {/if} {/if} -{/if} -{#if deLocalizeHref($page.url.pathname) !== '/brussels-ep-protest-2026'} - - Brussels, Feb 23 - Join us outside the European Parliament to call for a global treaty - to pause frontier AI development. - -{/if} + {#if deLocalizeHref($page.url.pathname) !== '/brussels-ep-protest-2026'} + + Brussels, Feb 23 - Join us outside the European Parliament to call for a global + treaty to pause frontier AI development. + + {/if} + + {#if hero} +
+ +
+
+ {/if} + -
+
{#if $page.route.id === '/sayno'} {#await import('./sayno/SelfieUX.svelte') then module} @@ -103,12 +112,7 @@ {/await} {/if} - {#if hero} -
- -
-
- {:else} + {#if !hero}
{/if} @@ -147,6 +151,22 @@ margin: auto; } */ + .page-top.hero-page { + display: flex; + flex-direction: column; + height: 100dvh; + } + + .page-top.hero-page > :global(.banner), + .page-top.hero-page > :global(.campaign-banner) { + flex-shrink: 0; + } + + .page-top.hero-page .hero-section { + flex: 1; + min-height: 0; + } + .hero-section { position: relative; } @@ -156,6 +176,8 @@ top: 0; left: 0; right: 0; + width: min(var(--page-width), 100vw - 6rem); + margin-inline: auto; z-index: 1; } @@ -172,6 +194,10 @@ padding: 0 var(--padding-wide) 0 var(--padding-wide); } + .layout.hero-page { + grid-template-rows: 1fr auto; + } + /* Transition to narrower padding at narrow viewports (matches navbar 600px breakpoint) */ @media (max-width: 600px) { .layout {