-
Notifications
You must be signed in to change notification settings - Fork 54
feat: Add launch banner with dynamic demo request flow #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,15 +11,25 @@ | |
| } from 'lucide-svelte'; | ||
| // Import Discord icon from a custom SVG since it's not in lucide | ||
| import { base } from '$app/paths'; | ||
| import { page } from '$app/stores'; | ||
| import { onMount } from 'svelte'; | ||
|
|
||
| let formState: 'idle' | 'submitting' | 'success' | 'error' = $state('idle'); | ||
| let isDemo = $state(false); | ||
| let formData = $state({ | ||
| name: '', | ||
| email: '', | ||
| subject: '', | ||
| message: '' | ||
| }); | ||
|
|
||
| onMount(() => { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
| isDemo = $page.url.searchParams.get('type') === 'demo'; | ||
| if (isDemo) { | ||
| formData.subject = 'Request Demo'; | ||
| } | ||
| }); | ||
|
|
||
| async function handleSubmit(event: SubmitEvent) { | ||
| event.preventDefault(); | ||
| formState = 'submitting'; | ||
|
|
@@ -56,7 +66,7 @@ | |
| <div class="contact-container" in:fade={{ duration: 300 }}> | ||
| <div class="container"> | ||
| <header class="contact-header"> | ||
| <h1 class="hero-title">Get In Touch</h1> | ||
| <h1 class="hero-title">{isDemo ? 'Request Demo' : 'Get In Touch'}</h1> | ||
| <p class="hero-subtitle"> | ||
| Let's discuss your MCP integration <span class="divider">//</span> Questions about Context Engine? | ||
| </p> | ||
|
|
@@ -132,7 +142,10 @@ | |
|
|
||
| <form class="contact-form glass" onsubmit={handleSubmit}> | ||
| <div class="form-header"> | ||
| <h2>Send a Message</h2> | ||
| <h2>{isDemo ? 'Request Demo' : 'Send a Message'}</h2> | ||
| {#if isDemo} | ||
| <p class="demo-subtitle">Let's schedule a personalized demo of Context Engine</p> | ||
| {/if} | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
|
|
@@ -440,6 +453,13 @@ | |
| /* Form styling without sticky positioning */ | ||
| } | ||
|
|
||
| .demo-subtitle { | ||
| color: var(--text-secondary); | ||
| font-size: 1rem; | ||
| margin: var(--spacing-xs) 0 0; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| .discord-icon { | ||
| color: #5865f2; /* Discord brand color */ | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.