Skip to content

Commit fbcfaeb

Browse files
committed
add demo day updates
1 parent 1950158 commit fbcfaeb

File tree

3 files changed

+28
-29
lines changed

3 files changed

+28
-29
lines changed

apps/demo-day/frontend/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ <h1>Preview the Future<br />of Agentic Software</h1>
206206
<img src="public/dina.jpg" alt="Dina Kozlov" />
207207
</div>
208208
</div>
209-
<span class="attendee-count"
210-
><strong>+ all the other cool kids</strong> went</span
211-
>
209+
<span class="attendee-count"><strong>+ all the other cool kids</strong> went</span>
212210
</div>
213211
</div>
214212
</section>

apps/demo-day/frontend/script.js

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,21 @@ document.addEventListener('DOMContentLoaded', () => {
6565

6666
// Form handling
6767
const emailForm = document.querySelector('.input-group')
68-
const emailInput = emailForm.querySelector('input[type="email"]')
68+
//const //emailInput = null //emailForm.querySelector('input[type="email"]')
6969
const honeypotInput = emailForm.querySelector('input[name="contact_me_by_fax"]')
70-
const notifyButton = emailForm.querySelector('.notify-btn')
70+
//const notifyButton = emailForm.querySelector('.notify-btn')
7171

7272
// Check if user has already signed up
7373
/*if (localStorage.getItem('mcp_demo_signup')) {
7474
const savedEmail = localStorage.getItem('mcp_demo_signup')
7575
showSuccessState(savedEmail)
7676
}*/
7777

78-
function showSuccessState(email) {
79-
const inputGroup = emailInput.closest('.input-group')
78+
/*function showSuccessState(email) {
79+
const inputGroup = //emailInput.closest('.input-group')
8080
inputGroup.classList.add('success')
81-
emailInput.value = email
82-
emailInput.disabled = true
81+
//emailInput.value = email
82+
//emailInput.disabled = true
8383
notifyButton.disabled = true
8484
8585
// Update button
@@ -90,7 +90,7 @@ document.addEventListener('DOMContentLoaded', () => {
9090
`
9191
notifyButton.classList.add('success')
9292
createConfetti(notifyButton)
93-
}
93+
}*/
9494

9595
// Rate limiting configuration
9696
const RATE_LIMIT_DURATION = 60000 // 1 minute
@@ -175,24 +175,24 @@ document.addEventListener('DOMContentLoaded', () => {
175175
}
176176

177177
// Setup accessibility attributes
178-
function setupAccessibility() {
179-
emailInput.setAttribute('aria-label', 'Email address for notification')
178+
/*function setupAccessibility() {
179+
//emailInput.setAttribute('aria-label', 'Email address for notification')
180180
notifyButton.setAttribute('aria-label', 'Sign up for notification')
181181
document.querySelector('.success-message')?.setAttribute('role', 'status')
182-
}
182+
}*/
183183

184184
// Debounced email validation on input
185185
const validateEmailDebounced = debounce((email) => {
186186
const isValid = isValidEmail(email)
187-
emailInput.style.border = isValid ? '' : '1px solid red'
187+
//emailInput.style.border = isValid ? '' : '1px solid red'
188188
}, 300)
189189

190-
emailInput.addEventListener('input', (e) => validateEmailDebounced(e.target.value))
190+
//emailInput.addEventListener('input', (e) => validateEmailDebounced(e.target.value))
191191

192192
// Enhanced click handler with all improvements
193-
notifyButton.addEventListener('click', async (e) => {
193+
/*notifyButton.addEventListener('click', async (e) => {
194194
e.preventDefault()
195-
const email = emailInput.value.trim()
195+
//const email = //emailInput.value.trim()
196196
197197
// Rate limit check
198198
if (!checkRateLimit()) {
@@ -202,12 +202,12 @@ document.addEventListener('DOMContentLoaded', () => {
202202
203203
// Basic validation
204204
if (!email) {
205-
emailInput.style.border = '1px solid red'
205+
//emailInput.style.border = '1px solid red'
206206
return
207207
}
208208
209209
if (!isValidEmail(email)) {
210-
emailInput.style.border = '1px solid red'
210+
//emailInput.style.border = '1px solid red'
211211
showToast('Please enter a valid email address.')
212212
return
213213
}
@@ -217,8 +217,8 @@ document.addEventListener('DOMContentLoaded', () => {
217217
return
218218
}*/
219219

220-
// Honeypot check
221-
if (honeypotInput.value) {
220+
// Honeypot check
221+
/*if (honeypotInput.value) {
222222
console.log('Bot detected')
223223
return
224224
}
@@ -250,7 +250,7 @@ document.addEventListener('DOMContentLoaded', () => {
250250
setupAccessibility()
251251
} catch (error) {
252252
console.error('Error:', error)
253-
emailInput.style.border = '1px solid red'
253+
//emailInput.style.border = '1px solid red'
254254
255255
if (error.message.includes('UNIQUE constraint failed')) {
256256
showToast('This email is already registered for the demo. Check your inbox for details.')
@@ -262,10 +262,10 @@ document.addEventListener('DOMContentLoaded', () => {
262262
showToast('Something went wrong. Please try again.')
263263
}
264264
}
265-
})
265+
})*/
266266

267267
// Initialize accessibility
268-
setupAccessibility()
268+
//()
269269

270270
function setupCalendarActions() {
271271
const calendarActions = document.querySelectorAll(
@@ -339,9 +339,9 @@ END:VCALENDAR`
339339
setupCalendarActions()
340340

341341
// Remove red border on input focus
342-
emailInput.addEventListener('focus', () => {
343-
emailInput.style.border = 'none'
344-
})
342+
//emailInput.addEventListener('focus', () => {
343+
//emailInput.style.border = 'none'
344+
//})
345345

346346
// Company list hover effect
347347
const companies = document.querySelectorAll('.demo-companies li')
@@ -385,10 +385,12 @@ END:VCALENDAR`
385385
if (company) {
386386
item.setAttribute('data-company', company)
387387
}
388+
console.log('add attrib')
388389
})
389390

390391
// Create background containers for each company
391392
companyNames.forEach((company) => {
393+
console.log('add container')
392394
const background = document.createElement('div')
393395
background.className = `company-background ${company}`
394396

@@ -445,6 +447,7 @@ END:VCALENDAR`
445447
backgrounds[currentBackgroundIndex].classList.add('active')
446448
companyItems[currentBackgroundIndex].classList.add('active')
447449
currentBackgroundIndex = (currentBackgroundIndex + 1) % backgrounds.length
450+
console.log('cucle')
448451
}
449452

450453
// Start cycling every 3 seconds

apps/demo-day/frontend/styles.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,6 @@ footer {
792792

793793
.demo-companies li {
794794
font-size: 2rem;
795-
margin-top: 8px;
796-
margin-bottom: 8px;
797795
}
798796

799797
.footer-left {

0 commit comments

Comments
 (0)