Skip to content

Commit 54dddfa

Browse files
committed
feat(about): add sponsor button
1 parent 5d9ce48 commit 54dddfa

File tree

2 files changed

+47
-11
lines changed

2 files changed

+47
-11
lines changed

app/src/assets/svg/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

app/src/views/system/About.vue

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import GithubButton from '@0xjacky/vue-github-button'
3-
import logo from '@/assets/img/logo.png'
3+
import logo from '@/assets/svg/icon.svg?url'
44
import ver from '@/version.json'
55
66
const thisYear = new Date().getFullYear()
@@ -11,16 +11,22 @@ const thisYear = new Date().getFullYear()
1111
class="text-center"
1212
:bordered="false"
1313
>
14-
<div class="logo">
15-
<img
16-
:src="logo"
17-
alt="logo"
18-
>
14+
<div class="flex justify-center">
15+
<div class="logo">
16+
<div class="logo-container">
17+
<div class="image-bg" />
18+
<img
19+
class="image-src"
20+
:src="logo"
21+
alt="logo"
22+
>
23+
</div>
24+
</div>
1925
</div>
2026
<h2>Nginx UI</h2>
2127
<p>Yet another WebUI for Nginx</p>
2228
<p>Version: {{ ver.version }} ({{ ver.total_build || $gettext('Development Mode') }})</p>
23-
<div class="star-on-github">
29+
<div class="mb-2">
2430
<GithubButton
2531
href="https://github.com/0xJacky/nginx-ui"
2632
data-color-scheme="no-preference: light; light: light; dark: dark;"
@@ -31,6 +37,16 @@ const thisYear = new Date().getFullYear()
3137
Star
3238
</GithubButton>
3339
</div>
40+
<div class="mb-2">
41+
<GithubButton
42+
href="https://github.com/sponsors/nginxui"
43+
data-color-scheme="no-preference: light; light: light; dark: dark;"
44+
data-icon="octicon-heart" data-size="large"
45+
aria-label="Sponsor @nginxui on GitHub"
46+
>
47+
Sponsor
48+
</GithubButton>
49+
</div>
3450
<h3>
3551
{{ $gettext('Project Team') }}
3652
</h3>
@@ -53,12 +69,31 @@ const thisYear = new Date().getFullYear()
5369

5470
<style lang="less" scoped>
5571
.logo {
72+
position: relative;
73+
height: 256px;
74+
width: 256px;
75+
76+
.image-bg {
77+
height: 120px;
78+
width: 120px;
79+
position: absolute;
80+
top: 50%;
81+
left: 50%;
82+
border-radius: 50%;
83+
filter: blur(72px);
84+
transform: translate(-50%, -50%);
85+
background-image: linear-gradient(-45deg, #3682D8 50%, #00D2FF 50%);
86+
}
87+
88+
.image-src {
89+
position: absolute;
90+
top: 50%;
91+
left: 50%;
92+
transform: translate(-50%, -50%);
93+
}
94+
5695
img {
5796
max-width: 120px
5897
}
5998
}
60-
61-
.star-on-github {
62-
margin-bottom: 10px;
63-
}
6499
</style>

0 commit comments

Comments
 (0)