Skip to content

Commit e82da43

Browse files
committed
feat: add Linux download options and enhance button icons
1 parent 0bfd417 commit e82da43

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

src/views/ProjectAppView.vue

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import Saying from '../components/Saying.vue'
66
import IconApple from '~icons/simple-icons/apple'
77
import IconAndroid from '~icons/simple-icons/android'
88
import IconWindows from '~icons/simple-icons/windows'
9+
import IconLinux from '~icons/simple-icons/linux'
10+
import IconArchLinux from '~icons/simple-icons/archlinux'
911
import IconOSI from '~icons/simple-icons/opensourceinitiative'
12+
import IconGitHub from '~icons/simple-icons/github'
1013
1114
let showDownload = ref(false)
1215
@@ -27,8 +30,18 @@ const downloadList: { icons: Component[], platform: string, subtitle: string, li
2730
}, {
2831
icons: [IconWindows],
2932
platform: 'Windows',
30-
subtitle: 'Download from GitHub Release',
33+
subtitle: 'Download from GitHub Releases',
3134
link: 'https://github.com/DanXi-Dev/DanXi/releases/latest'
35+
}, {
36+
icons: [IconLinux],
37+
platform: 'Linux Generic',
38+
subtitle: 'Download from GitHub Releases',
39+
link: 'https://github.com/DanXi-Dev/DanXi/releases/latest'
40+
}, {
41+
icons: [IconArchLinux],
42+
platform: 'Arch Linux',
43+
subtitle: 'Install from AUR',
44+
link: 'https://aur.archlinux.org/packages/danxi'
3245
}, {
3346
icons: [IconAndroid, IconOSI],
3447
platform: 'Android FOSS',
@@ -78,10 +91,16 @@ const userComment = [
7891
<span>最新版: {{ latestVersion }}</span> <span>最低支持版本: {{ oldestVersion }}</span>
7992
</div>
8093
<div>
81-
<button class="mx-2 mt-5 rounded-2xl bg-gray-800 text-gray-50 px-5 py-2 hover:bg-gray-500 text-lg"
82-
@click="showDownload = !showDownload">下载</button>
94+
<button class="mx-2 mt-5 rounded-2xl bg-gray-800 text-gray-50 px-5 py-2 hover:bg-gray-500 text-lg inline-flex items-center gap-2"
95+
@click="showDownload = !showDownload">
96+
<svg class="w-5 h-5" 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>
97+
下载
98+
</button>
8399
<a href="https://github.com/DanXi-Dev/DanXi" target="_blank"><button
84-
class="mx-2 mt-5 rounded-2xl bg-gray-800 text-gray-50 px-5 py-2 hover:bg-gray-500 text-lg">GitHub</button></a>
100+
class="mx-2 mt-5 rounded-2xl bg-gray-800 text-gray-50 px-5 py-2 hover:bg-gray-500 text-lg inline-flex items-center gap-2">
101+
<IconGitHub class="w-5 h-5" />
102+
GitHub
103+
</button></a>
85104
</div>
86105
</div>
87106
<div class="mt-6 flex flex-col items-center gap-3 max-w-md mx-auto" v-show="showDownload">

0 commit comments

Comments
 (0)