From 880579878f31d06ecce28c963030041c9ec1a972 Mon Sep 17 00:00:00 2001 From: chris-stinemetz Date: Fri, 27 Feb 2026 08:30:41 -0500 Subject: [PATCH] feat: remove Request Demo/Early Access sections, add Join Open Beta hero form - Remove 'Get Early Access' demo section at bottom of page - Remove 'Request Demo' buttons from desktop header and mobile menu - Remove all related form state, handlers, and CSS for demo section - Re-add hero email form with 'Join Open Beta' button text - Add spacing between form and action buttons - Clean up unused CSS (.demo-section, .demo-form) --- src/app.scss | 66 ++++++++++++++++--------------------- src/routes/+layout.svelte | 4 --- src/routes/+page.svelte | 69 +++++---------------------------------- 3 files changed, 36 insertions(+), 103 deletions(-) diff --git a/src/app.scss b/src/app.scss index ce1646dd..17655fa4 100644 --- a/src/app.scss +++ b/src/app.scss @@ -332,8 +332,16 @@ body::before { } /* Show appropriate logo based on theme */ -[data-theme="light"] .hero-logo { - content: url('/Context-Engine/logo.svg'); +.hero-logo-light { + display: none; +} + +[data-theme="light"] .hero-logo-dark { + display: none; +} + +[data-theme="light"] .hero-logo-light { + display: block; } /* NVIDIA Inception Badge */ @@ -491,7 +499,7 @@ body::before { .hero-form { display: flex; gap: 12px; - margin-bottom: 24px; + margin-bottom: 36px; max-width: 440px; } @@ -850,21 +858,6 @@ body::before { margin: 0; } -/* Demo Section */ -.demo-section { - padding: 100px 48px; - max-width: 800px; - margin: 0 auto; - text-align: center; -} - -.demo-form { - display: flex; - gap: 12px; - max-width: 480px; - margin: 0 auto; -} - .input { flex: 1; padding: 14px 18px; @@ -922,6 +915,19 @@ body::before { color: var(--text-muted); } +.footer-legal { + font-size: 11px; + color: var(--text-muted); + opacity: 0.7; + width: 100%; + max-width: 640px; + margin: 16px auto 0; + padding-top: 16px; + border-top: 1px solid var(--border); + line-height: 1.5; + text-align: center; +} + @keyframes drawLine { to { stroke-dashoffset: 0; } } @@ -954,8 +960,8 @@ body::before { .hero-logo { height: 90px; } .nav { display: none; } .features-grid { grid-template-columns: 1fr; } - .graph-section, .features-section, .demo-section { padding: 60px 24px; } - .demo-form, .hero-form { flex-direction: column; } + .graph-section, .features-section { padding: 60px 24px; } + .hero-form { flex-direction: column; } .header { padding: 0 16px; } .graph-labels { padding: 0 20px; } .graph-column { width: 140px; } @@ -1100,6 +1106,8 @@ body::before { .hero-actions { flex-direction: column; gap: 12px; + width: 100%; + justify-content: center; } .hero-actions .btn { @@ -1229,24 +1237,6 @@ body::before { font-size: 13px; } - /* Demo section */ - .demo-section { - padding: 40px 16px; - } - - .demo-form { - gap: 12px; - } - - .demo-form .input { - min-width: unset; - } - - .demo-form .btn { - width: 100%; - justify-content: center; - } - /* Footer */ .footer { padding: 32px 16px; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d459c8e9..df6efad2 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -116,7 +116,6 @@ {/if} - Request Demo Login / Sign Up @@ -187,9 +186,6 @@ Login / Sign Up -
- Request Demo -
{/if} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e8675201..e6893502 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -21,13 +21,9 @@ // Form state let heroEmail = $state(''); - let demoEmail = $state(''); let heroSubmitted = $state(false); - let demoSubmitted = $state(false); let heroError = $state(''); - let demoError = $state(''); let heroLoading = $state(false); - let demoLoading = $state(false); const BETA_SIGNUP_URL = 'https://dev.context-engine.ai/auth/beta-signup'; @@ -197,29 +193,6 @@ heroLoading = false; } } - - async function handleDemoSubmit(e: SubmitEvent) { - e.preventDefault(); - demoError = ''; - demoLoading = true; - try { - const response = await fetch(BETA_SIGNUP_URL, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ email: demoEmail }) - }); - const data = await response.json(); - if (response.ok) { - demoSubmitted = true; - } else { - demoError = data.detail || 'Something went wrong. Please try again.'; - } - } catch (error) { - demoError = 'Network error. Please try again.'; - } finally { - demoLoading = false; - } - } @@ -234,7 +207,8 @@
- -
-

Get Early Access

-

Join the beta and give your AI the context it deserves.

- - {#if demoSubmitted} -
- Beta key sent! Check your email at {demoEmail} -
- {:else} -
- - -
- {#if demoError} -
- {demoError} -
- {/if} - {/if} -
-