fix: remove fake spots counter from registration page
CI/CD / deploy (push) Failing after 51s
Details
CI/CD / deploy (push) Failing after 51s
Details
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1221674fd9
commit
657c934975
71
index.html
71
index.html
|
|
@ -1164,56 +1164,6 @@
|
|||
border-color: var(--accent-purple);
|
||||
}
|
||||
|
||||
/* Spots counter */
|
||||
.spots-counter {
|
||||
background: rgba(255, 0, 110, 0.08);
|
||||
border: 1px solid rgba(255, 0, 110, 0.3);
|
||||
border-radius: 12px;
|
||||
padding: 1.25rem 1.5rem;
|
||||
margin-bottom: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.spots-number {
|
||||
font-family: 'Space Mono', monospace;
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.spots-number span:first-child {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--accent-magenta);
|
||||
}
|
||||
|
||||
.spots-label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.spots-bar {
|
||||
height: 6px;
|
||||
background: rgba(255, 0, 110, 0.15);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.spots-bar-fill {
|
||||
height: 100%;
|
||||
background: var(--gradient-3);
|
||||
border-radius: 3px;
|
||||
transition: width 1s ease;
|
||||
width: 0%;
|
||||
}
|
||||
|
||||
.spots-note {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
margin: 0;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Call to Action */
|
||||
.cta-section {
|
||||
|
|
@ -1769,12 +1719,6 @@
|
|||
|
||||
<div class="register-content">
|
||||
<div class="register-info">
|
||||
<div class="spots-counter" id="spots-counter">
|
||||
<div class="spots-number"><span id="spots-remaining">--</span> <span class="spots-label">of 60 spots remaining</span></div>
|
||||
<div class="spots-bar"><div class="spots-bar-fill" id="spots-bar-fill"></div></div>
|
||||
<p class="spots-note">Rooms are assigned first-come, first-served. Popular options fill up fast.</p>
|
||||
</div>
|
||||
|
||||
<h3>What you get</h3>
|
||||
|
||||
<ul class="register-perks">
|
||||
|
|
@ -2134,21 +2078,6 @@
|
|||
}, 800);
|
||||
});
|
||||
|
||||
// Spots counter — fetch registration count
|
||||
const MAX_SPOTS = 60;
|
||||
(async function loadSpots() {
|
||||
try {
|
||||
const res = await fetch('/api/stats');
|
||||
if (!res.ok) return;
|
||||
const stats = await res.json();
|
||||
const taken = stats.totalRegistrations || 0;
|
||||
const remaining = Math.max(0, MAX_SPOTS - taken);
|
||||
document.getElementById('spots-remaining').textContent = remaining;
|
||||
const pct = Math.min(100, Math.round((taken / MAX_SPOTS) * 100));
|
||||
document.getElementById('spots-bar-fill').style.width = pct + '%';
|
||||
} catch(e) { /* silently fail */ }
|
||||
})();
|
||||
|
||||
// Mobile navigation toggle
|
||||
const navToggle = document.querySelector('.nav-toggle');
|
||||
const navLinks = document.querySelector('.nav-links');
|
||||
|
|
|
|||
Loading…
Reference in New Issue