|
395 | 395 | <img src="assets/logo-clean.png?v=5" alt="Mimir" class="hero-icon fade-up"> |
396 | 396 | <h1 class="fade-up fade-up-d1">Mimir</h1> |
397 | 397 | <p class="tagline fade-up fade-up-d2" data-i18n="hero_tagline">Speak, friend, and enter.</p> |
398 | | - <a href="https://github.com/stensmir/mimir/releases/latest" class="btn fade-up fade-up-d3"> |
| 398 | + <a href="https://github.com/stensmir/mimir/releases/latest" class="btn fade-up fade-up-d3 dmg-download"> |
399 | 399 | <svg 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> |
400 | 400 | <span data-i18n="hero_cta">Download for macOS</span> |
401 | 401 | </a> |
@@ -513,7 +513,7 @@ <h2 class="section-title" data-i18n="about_title">Built for speed. Designed for |
513 | 513 | <h2 class="section-title" data-i18n="cta_title">Ready to try Mimir?</h2> |
514 | 514 | <p class="section-sub" data-i18n="cta_sub">Free. Download and start dictating in seconds.</p> |
515 | 515 | <div class="cta-buttons"> |
516 | | - <a href="https://github.com/stensmir/mimir/releases/latest" class="btn"> |
| 516 | + <a href="https://github.com/stensmir/mimir/releases/latest" class="btn dmg-download"> |
517 | 517 | <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"/></svg> |
518 | 518 | <span data-i18n="cta_download">Download for macOS</span> |
519 | 519 | </a> |
@@ -752,7 +752,18 @@ <h2 class="section-title" data-i18n="cta_title">Ready to try Mimir?</h2> |
752 | 752 | if (saved && i18n[saved]) setLang(saved); |
753 | 753 | </script> |
754 | 754 | <script> |
755 | | -// Screenshots carousel removed — screenshot shown inline in features |
| 755 | +// Resolve direct DMG download link from latest release |
| 756 | +fetch('https://api.github.com/repos/stensmir/mimir/releases/latest') |
| 757 | + .then(r => r.json()) |
| 758 | + .then(data => { |
| 759 | + const dmg = data.assets && data.assets.find(a => a.name.endsWith('.dmg')); |
| 760 | + if (dmg) { |
| 761 | + document.querySelectorAll('.dmg-download').forEach(a => { |
| 762 | + a.href = dmg.browser_download_url; |
| 763 | + }); |
| 764 | + } |
| 765 | + }) |
| 766 | + .catch(() => {}); |
756 | 767 | </script> |
757 | 768 | </body> |
758 | 769 | </html> |
0 commit comments