Skip to content

Commit 9e7e85d

Browse files
fix(website): use Simple Icons for platform download badges
Replace incorrect Lucide and hand-drawn SVGs with official brand icons for App Store, Google Play, macOS, Linux, and Windows. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 76c112d commit 9e7e85d

5 files changed

Lines changed: 80 additions & 8 deletions

File tree

website/package-lock.json

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"vite": "^6.3.5"
2121
},
2222
"dependencies": {
23-
"lucide-svelte": "^0.511.0"
23+
"lucide-svelte": "^0.511.0",
24+
"simple-icons": "^16.23.0"
2425
}
2526
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<script lang="ts">
2+
import type { SimpleIcon } from 'simple-icons';
3+
4+
let {
5+
icon,
6+
size = 24,
7+
color = `#${icon.hex}`
8+
}: {
9+
icon: SimpleIcon;
10+
size?: number;
11+
color?: string;
12+
} = $props();
13+
</script>
14+
15+
<svg
16+
role="img"
17+
viewBox="0 0 24 24"
18+
xmlns="http://www.w3.org/2000/svg"
19+
width={size}
20+
height={size}
21+
fill={color}
22+
aria-hidden="true"
23+
>
24+
<path d={icon.path} />
25+
</svg>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script lang="ts">
2+
let {
3+
size = 24,
4+
color = 'currentColor'
5+
}: {
6+
size?: number;
7+
color?: string;
8+
} = $props();
9+
</script>
10+
11+
<svg
12+
role="img"
13+
viewBox="0 0 24 24"
14+
xmlns="http://www.w3.org/2000/svg"
15+
width={size}
16+
height={size}
17+
fill={color}
18+
aria-hidden="true"
19+
>
20+
<path
21+
d="M0 0h11.377v11.372H0V0Zm12.623 0H24v11.372H12.623V0ZM0 12.623h11.377V24H0v-11.377Zm12.623 0H24V24H12.623v-11.377Z"
22+
/>
23+
</svg>

website/src/lib/sections/Download.svelte

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
import { links } from '$lib/data/links';
66
import { fetchLatestRelease } from '$lib/utils/github-releases';
77
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';
912
1013
let loading = $state(true);
1114
let linuxUrl = $state<string | null>(null);
@@ -67,14 +70,14 @@
6770
</p>
6871
<div class="store-badges">
6972
<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" />
7174
<span>
7275
<small>Download on the</small>
7376
<strong>App Store</strong>
7477
</span>
7578
</a>
7679
<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" />
7881
<span>
7982
<small>Get it on</small>
8083
<strong>Google Play</strong>
@@ -103,7 +106,7 @@
103106

104107
<div class="platform-grid">
105108
<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)" />
107110
<h4>macOS</h4>
108111
<p>macOS 12 Monterey or later</p>
109112
<span class="action"><ExternalLink size={14} /> Open in App Store</span>
@@ -113,7 +116,7 @@
113116
class="platform-card"
114117
onclick={() => open(windowsUrl ?? links.releasesLatest, 'Windows')}
115118
>
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)" />
117120
<h4>Windows</h4>
118121
<p>Windows 10 or later</p>
119122
<span class="action">
@@ -129,7 +132,7 @@
129132
class="platform-card"
130133
onclick={() => open(linuxUrl ?? links.releasesLatest, 'Linux')}
131134
>
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)" />
133136
<h4>Linux</h4>
134137
<p>Ubuntu, Debian, and derivatives</p>
135138
<span class="action">

0 commit comments

Comments
 (0)