Skip to content

Commit 0c11177

Browse files
committed
refactor(download): big improvement to the download page design
1 parent 794d500 commit 0c11177

File tree

4 files changed

+621
-463
lines changed

4 files changed

+621
-463
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
interface Props {
3+
label: string
4+
href: string
5+
variant?: string
6+
}
7+
8+
const { label, href, variant } = Astro.props
9+
---
10+
11+
<a
12+
href={href}
13+
class="group relative flex items-center justify-between rounded-2xl border border-subtle p-4 transition-colors duration-300 hover:border-coral hover:shadow-md"
14+
target="_blank"
15+
rel="noopener noreferrer"
16+
>
17+
<div>
18+
<p class="text-lg font-medium">{label}</p>
19+
</div>
20+
<div class="ml-4 flex items-center">
21+
<span
22+
class="release-type-tag mr-2 rounded-full bg-coral/10 px-2 py-1 text-xs font-medium text-coral"
23+
>
24+
Beta
25+
</span>
26+
<div
27+
class="text-muted-foreground rounded-xl border border-subtle p-2 transition-colors duration-300 group-hover:border-coral group-hover:text-coral"
28+
>
29+
<svg
30+
width="16"
31+
height="16"
32+
viewBox="0 0 24 24"
33+
fill="none"
34+
stroke="currentColor"
35+
stroke-width="2"
36+
stroke-linecap="round"
37+
stroke-linejoin="round"
38+
class="lucide lucide-arrow-up-right"
39+
>
40+
<path d="M7 17 17 7"></path>
41+
<path d="M7 7h10v10"></path>
42+
</svg>
43+
</div>
44+
</div>
45+
</a>
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
import { releaseNotes, releaseNotesTwilight } from '../../release-notes'
3+
4+
export const releases = {
5+
macos: {
6+
universal: {
7+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen.macos.mar',
8+
label: `Universal`,
9+
},
10+
},
11+
windows: {
12+
x86_64: {
13+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen.installer.exe',
14+
label: `64-bit`,
15+
},
16+
arm64: {
17+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen.installer-arm64.exe',
18+
label: `ARM64`,
19+
},
20+
},
21+
linux: {
22+
x86_64: {
23+
tarball: {
24+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen-x86_64.tar.gz',
25+
label: `Tarball x86_64`,
26+
},
27+
appImage: {
28+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen-x86_64.AppImage',
29+
label: `AppImage x86_64`,
30+
},
31+
},
32+
aarch64: {
33+
tarball: {
34+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen-aarch64.tar.gz',
35+
label: `Tarball aarch64`,
36+
},
37+
appImage: {
38+
link: 'https://github.com/zen-browser/desktop/releases/latest/download/zen-aarch64.AppImage',
39+
label: `AppImage aarch64`,
40+
},
41+
},
42+
flathub: {
43+
all: {
44+
link: 'https://flathub.org/apps/app.zen_browser.zen',
45+
label: `Flathub`,
46+
},
47+
},
48+
},
49+
}
50+
---

0 commit comments

Comments
 (0)