Skip to content

Commit 5b9c617

Browse files
Merge pull request #233 from Context-Engine-AI/feature/remove-demo-add-open-beta
feat: remove Request Demo/Early Access sections, add Join Open Beta h…
2 parents bb09e8c + f1c72e9 commit 5b9c617

File tree

3 files changed

+36
-103
lines changed

3 files changed

+36
-103
lines changed

src/app.scss

Lines changed: 28 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,16 @@ body::before {
332332
}
333333

334334
/* Show appropriate logo based on theme */
335-
[data-theme="light"] .hero-logo {
336-
content: url('/Context-Engine/logo.svg');
335+
.hero-logo-light {
336+
display: none;
337+
}
338+
339+
[data-theme="light"] .hero-logo-dark {
340+
display: none;
341+
}
342+
343+
[data-theme="light"] .hero-logo-light {
344+
display: block;
337345
}
338346

339347
/* NVIDIA Inception Badge */
@@ -491,7 +499,7 @@ body::before {
491499
.hero-form {
492500
display: flex;
493501
gap: 12px;
494-
margin-bottom: 24px;
502+
margin-bottom: 36px;
495503
max-width: 440px;
496504
}
497505

@@ -850,21 +858,6 @@ body::before {
850858
margin: 0;
851859
}
852860

853-
/* Demo Section */
854-
.demo-section {
855-
padding: 100px 48px;
856-
max-width: 800px;
857-
margin: 0 auto;
858-
text-align: center;
859-
}
860-
861-
.demo-form {
862-
display: flex;
863-
gap: 12px;
864-
max-width: 480px;
865-
margin: 0 auto;
866-
}
867-
868861
.input {
869862
flex: 1;
870863
padding: 14px 18px;
@@ -922,6 +915,19 @@ body::before {
922915
color: var(--text-muted);
923916
}
924917

918+
.footer-legal {
919+
font-size: 11px;
920+
color: var(--text-muted);
921+
opacity: 0.7;
922+
width: 100%;
923+
max-width: 640px;
924+
margin: 16px auto 0;
925+
padding-top: 16px;
926+
border-top: 1px solid var(--border);
927+
line-height: 1.5;
928+
text-align: center;
929+
}
930+
925931
@keyframes drawLine {
926932
to { stroke-dashoffset: 0; }
927933
}
@@ -954,8 +960,8 @@ body::before {
954960
.hero-logo { height: 90px; }
955961
.nav { display: none; }
956962
.features-grid { grid-template-columns: 1fr; }
957-
.graph-section, .features-section, .demo-section { padding: 60px 24px; }
958-
.demo-form, .hero-form { flex-direction: column; }
963+
.graph-section, .features-section { padding: 60px 24px; }
964+
.hero-form { flex-direction: column; }
959965
.header { padding: 0 16px; }
960966
.graph-labels { padding: 0 20px; }
961967
.graph-column { width: 140px; }
@@ -1100,6 +1106,8 @@ body::before {
11001106
.hero-actions {
11011107
flex-direction: column;
11021108
gap: 12px;
1109+
width: 100%;
1110+
justify-content: center;
11031111
}
11041112

11051113
.hero-actions .btn {
@@ -1229,24 +1237,6 @@ body::before {
12291237
font-size: 13px;
12301238
}
12311239

1232-
/* Demo section */
1233-
.demo-section {
1234-
padding: 40px 16px;
1235-
}
1236-
1237-
.demo-form {
1238-
gap: 12px;
1239-
}
1240-
1241-
.demo-form .input {
1242-
min-width: unset;
1243-
}
1244-
1245-
.demo-form .btn {
1246-
width: 100%;
1247-
justify-content: center;
1248-
}
1249-
12501240
/* Footer */
12511241
.footer {
12521242
padding: 32px 16px;

src/routes/+layout.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
<span class="moon-icon"><Moon size={18} /></span>
117117
{/if}
118118
</button>
119-
<a href="#demo" class="btn btn-primary desktop-only">Request Demo</a>
120119
<a href={loginUrl} class="btn btn-login desktop-only">
121120
<LogIn size={16} />
122121
Login / Sign Up
@@ -187,9 +186,6 @@
187186
<LogIn size={20} />
188187
Login / Sign Up
189188
</a>
190-
<div class="mobile-menu-cta">
191-
<a href="#demo" class="btn btn-primary btn-lg" onclick={closeMobileMenu}>Request Demo</a>
192-
</div>
193189
</nav>
194190
{/if}
195191

src/routes/+page.svelte

Lines changed: 8 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@
2121
2222
// Form state
2323
let heroEmail = $state('');
24-
let demoEmail = $state('');
2524
let heroSubmitted = $state(false);
26-
let demoSubmitted = $state(false);
2725
let heroError = $state('');
28-
let demoError = $state('');
2926
let heroLoading = $state(false);
30-
let demoLoading = $state(false);
3127
3228
const BETA_SIGNUP_URL = 'https://dev.context-engine.ai/auth/beta-signup';
3329
@@ -197,29 +193,6 @@
197193
heroLoading = false;
198194
}
199195
}
200-
201-
async function handleDemoSubmit(e: SubmitEvent) {
202-
e.preventDefault();
203-
demoError = '';
204-
demoLoading = true;
205-
try {
206-
const response = await fetch(BETA_SIGNUP_URL, {
207-
method: 'POST',
208-
headers: { 'Content-Type': 'application/json' },
209-
body: JSON.stringify({ email: demoEmail })
210-
});
211-
const data = await response.json();
212-
if (response.ok) {
213-
demoSubmitted = true;
214-
} else {
215-
demoError = data.detail || 'Something went wrong. Please try again.';
216-
}
217-
} catch (error) {
218-
demoError = 'Network error. Please try again.';
219-
} finally {
220-
demoLoading = false;
221-
}
222-
}
223196
</script>
224197

225198
<svelte:head>
@@ -234,7 +207,8 @@
234207
<section class="hero">
235208
<div class="hero-content">
236209
<div class="hero-brand">
237-
<img src="{base}/logo-white.svg" alt="Context Engine" class="hero-logo" />
210+
<img src="{base}/logo-white.svg" alt="Context Engine" class="hero-logo hero-logo-dark" />
211+
<img src="{base}/logo.svg" alt="Context Engine" class="hero-logo hero-logo-light" />
238212
<a
239213
href="https://www.nvidia.com/en-us/startups/"
240214
target="_blank"
@@ -258,7 +232,7 @@
258232

259233
{#if heroSubmitted}
260234
<div class="hero-form" style="color: var(--accent); font-size: 16px;">
261-
Beta key sent! Check your email at {heroEmail}
235+
You're in! Check your email at {heroEmail}
262236
</div>
263237
{:else}
264238
<form class="hero-form" onsubmit={handleHeroSubmit}>
@@ -271,7 +245,7 @@
271245
disabled={heroLoading}
272246
/>
273247
<button type="submit" class="btn btn-primary btn-lg" disabled={heroLoading}>
274-
{heroLoading ? 'Sending…' : 'Request Early Access'}
248+
{heroLoading ? 'Sending…' : 'Join Open Beta'}
275249
</button>
276250
</form>
277251
{#if heroError}
@@ -442,37 +416,6 @@ result = <span class="c-fn">repo_search</span>(
442416
</div>
443417
</section>
444418

445-
<!-- Demo Section -->
446-
<section class="demo-section" id="demo">
447-
<h2 class="section-title">Get <span class="gradient-text">Early Access</span></h2>
448-
<p class="section-subtitle">Join the beta and give your AI the context it deserves.</p>
449-
450-
{#if demoSubmitted}
451-
<div class="demo-form" style="color: var(--accent); font-size: 16px; justify-content: center;">
452-
Beta key sent! Check your email at {demoEmail}
453-
</div>
454-
{:else}
455-
<form class="demo-form" onsubmit={handleDemoSubmit}>
456-
<input
457-
type="email"
458-
class="input"
459-
placeholder="you@company.com"
460-
required
461-
bind:value={demoEmail}
462-
disabled={demoLoading}
463-
/>
464-
<button type="submit" class="btn btn-primary btn-lg" disabled={demoLoading}>
465-
{demoLoading ? 'Sending…' : 'Request Invite'}
466-
</button>
467-
</form>
468-
{#if demoError}
469-
<div style="color: #ef4444; font-size: 14px; margin-top: 8px; text-align: center;">
470-
{demoError}
471-
</div>
472-
{/if}
473-
{/if}
474-
</section>
475-
476419
<!-- Footer -->
477420
<footer class="footer">
478421
<div class="footer-content">
@@ -496,4 +439,8 @@ result = <span class="c-fn">repo_search</span>(
496439
</div>
497440
<div class="footer-copy">© {new Date().getFullYear()} Context Engine. All rights reserved.</div>
498441
</div>
442+
<div class="footer-legal">
443+
© 2025 NVIDIA, the NVIDIA logo, and NVIDIA Inception Program are trademarks and/or registered
444+
trademarks of NVIDIA Corporation in the U.S. and other countries.
445+
</div>
499446
</footer>

0 commit comments

Comments
 (0)