|
5 | 5 | import { links } from '$lib/data/links'; |
6 | 6 | import { fetchLatestRelease } from '$lib/utils/github-releases'; |
7 | 7 | import { logDownload, logGitHubClick } from '$lib/utils/analytics'; |
8 | | - import { Apple, Download as DownloadIcon, ExternalLink } from 'lucide-svelte'; |
| 8 | + import BrandIcon from '$lib/components/BrandIcon.svelte'; |
| 9 | + import WindowsIcon from '$lib/components/WindowsIcon.svelte'; |
| 10 | + import { siAppstore, siGoogleplay, siLinux, siMacos } from 'simple-icons'; |
| 11 | + import { Download as DownloadIcon, ExternalLink } from 'lucide-svelte'; |
9 | 12 |
|
10 | 13 | let loading = $state(true); |
11 | 14 | let linuxUrl = $state<string | null>(null); |
|
67 | 70 | </p> |
68 | 71 | <div class="store-badges"> |
69 | 72 | <a class="store-badge" href={links.ios} target="_blank" rel="noopener noreferrer" onclick={() => open(links.ios, 'iOS')}> |
70 | | - <Apple size={24} color="#fff" /> |
| 73 | + <BrandIcon icon={siAppstore} size={24} color="#fff" /> |
71 | 74 | <span> |
72 | 75 | <small>Download on the</small> |
73 | 76 | <strong>App Store</strong> |
74 | 77 | </span> |
75 | 78 | </a> |
76 | 79 | <a class="store-badge" href={links.playStore} target="_blank" rel="noopener noreferrer" onclick={() => open(links.playStore, 'Android')}> |
77 | | - <svg width="24" height="24" viewBox="0 0 24 24" fill="#fff" aria-hidden="true"><path d="M3.6 1.8l10.2 10.2L3.6 22.2c-.4-.2-.6-.6-.6-1.1V2.9c0-.5.2-.9.6-1.1zm12.3 8.7l2.5-2.5 3.4 1.9c.5.3.8.8.8 1.4s-.3 1.1-.8 1.4l-3.4 1.9-2.5-2.5 2.5-2.6zm-2.5 2.6l-2.5 2.5 3.4 1.9c.5.3 1 .3 1.5 0l3.4-1.9-3.4-1.9-3.4 1.9zM3 2.9v18.2l10.2-10.2L3 2.9z"/></svg> |
| 80 | + <BrandIcon icon={siGoogleplay} size={24} color="#fff" /> |
78 | 81 | <span> |
79 | 82 | <small>Get it on</small> |
80 | 83 | <strong>Google Play</strong> |
|
103 | 106 |
|
104 | 107 | <div class="platform-grid"> |
105 | 108 | <button type="button" class="platform-card" onclick={() => open(links.macos, 'macOS')}> |
106 | | - <Apple size={28} color="var(--accent)" /> |
| 109 | + <BrandIcon icon={siMacos} size={28} color="var(--accent)" /> |
107 | 110 | <h4>macOS</h4> |
108 | 111 | <p>macOS 12 Monterey or later</p> |
109 | 112 | <span class="action"><ExternalLink size={14} /> Open in App Store</span> |
|
113 | 116 | class="platform-card" |
114 | 117 | onclick={() => open(windowsUrl ?? links.releasesLatest, 'Windows')} |
115 | 118 | > |
116 | | - <svg width="28" height="28" viewBox="0 0 24 24" fill="var(--accent)" aria-hidden="true"><path d="M3 5.5L10.5 4.6V11.5H3V5.5zm0 13V12.5h7.5v7.9L3 18.5zM11.5 11.5h9.7l.1-7.9L11.5 4.4V11.5zm9.8 1.5H11.5V20l9.9-1.4V13z"/></svg> |
| 119 | + <WindowsIcon size={28} color="var(--accent)" /> |
117 | 120 | <h4>Windows</h4> |
118 | 121 | <p>Windows 10 or later</p> |
119 | 122 | <span class="action"> |
|
129 | 132 | class="platform-card" |
130 | 133 | onclick={() => open(linuxUrl ?? links.releasesLatest, 'Linux')} |
131 | 134 | > |
132 | | - <svg width="28" height="28" viewBox="0 0 24 24" fill="var(--accent)" aria-hidden="true"><path d="M12.5 2c-3.6 0-6.5 2.4-6.5 5.4 0 1.5.7 2.9 1.9 3.9-.3.8-.5 1.7-.5 2.6 0 3.3 2.5 6 5.6 6.3.4 1.5 1.8 2.6 3.5 2.6h1.2c1.7 0 3.1-1.1 3.5-2.6 3.1-.3 5.6-3 5.6-6.3 0-.9-.2-1.8-.5-2.6 1.2-1 1.9-2.4 1.9-3.9C19 4.4 16.1 2 12.5 2zm-2.8 14.5c-.8 0-1.4-.6-1.4-1.4s.6-1.4 1.4-1.4 1.4.6 1.4 1.4-.6 1.4-1.4 1.4zm5.6 0c-.8 0-1.4-.6-1.4-1.4s.6-1.4 1.4-1.4 1.4.6 1.4 1.4-.6 1.4-1.4 1.4z"/></svg> |
| 135 | + <BrandIcon icon={siLinux} size={28} color="var(--accent)" /> |
133 | 136 | <h4>Linux</h4> |
134 | 137 | <p>Ubuntu, Debian, and derivatives</p> |
135 | 138 | <span class="action"> |
|
0 commit comments