Skip to content

Commit c08e306

Browse files
author
okurucan
committed
Fix download buttons preventing default
1 parent b8f379a commit c08e306

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

landing.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ <h2 class="font-display" style="font-size: 28px; font-weight: 700; color: var(--
318318

319319
<!-- CTA Buttons -->
320320
<div style="animation: fadeInUp 0.8s ease 0.6s both; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;">
321-
<a id="hero-download" href="#" class="btn-primary">
321+
<a id="hero-download" href="https://github.com/yessGlory17/shannon/releases/tag/v0.1.0-alpha" class="btn-primary">
322322
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
323323
<span class="dl-label">Download Shannon</span>
324324
</a>
@@ -1349,7 +1349,7 @@ <h2 class="font-display" style="font-size: 36px; font-weight: 800; color: var(--
13491349
Start managing your AI agent workflows with Shannon. Open source, local-first, and built for developers.
13501350
</p>
13511351
<div style="display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;">
1352-
<a id="cta-download" href="#" class="btn-primary">
1352+
<a id="cta-download" href="https://github.com/yessGlory17/shannon/releases/tag/v0.1.0-alpha" class="btn-primary">
13531353
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
13541354
<span class="dl-label">Download Shannon</span>
13551355
</a>
@@ -1425,8 +1425,9 @@ <h2 class="font-display" style="font-size: 36px; font-weight: 800; color: var(--
14251425
});
14261426
})();
14271427

1428-
// Smooth scroll for nav links
1428+
// Smooth scroll for nav links (skip download buttons)
14291429
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
1430+
if (anchor.id === 'hero-download' || anchor.id === 'cta-download') return;
14301431
anchor.addEventListener('click', function(e) {
14311432
e.preventDefault();
14321433
const target = document.querySelector(this.getAttribute('href'));

0 commit comments

Comments
 (0)