Skip to content

Commit

Permalink
feat(about): add sponsor button
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Dec 15, 2024
1 parent 5d9ce48 commit 54dddfa
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/src/assets/svg/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 46 additions & 11 deletions app/src/views/system/About.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import GithubButton from '@0xjacky/vue-github-button'
import logo from '@/assets/img/logo.png'
import logo from '@/assets/svg/icon.svg?url'
import ver from '@/version.json'
const thisYear = new Date().getFullYear()
Expand All @@ -11,16 +11,22 @@ const thisYear = new Date().getFullYear()
class="text-center"
:bordered="false"
>
<div class="logo">
<img
:src="logo"
alt="logo"
>
<div class="flex justify-center">
<div class="logo">
<div class="logo-container">
<div class="image-bg" />
<img
class="image-src"
:src="logo"
alt="logo"
>
</div>
</div>
</div>
<h2>Nginx UI</h2>
<p>Yet another WebUI for Nginx</p>
<p>Version: {{ ver.version }} ({{ ver.total_build || $gettext('Development Mode') }})</p>
<div class="star-on-github">
<div class="mb-2">
<GithubButton
href="https://github.com/0xJacky/nginx-ui"
data-color-scheme="no-preference: light; light: light; dark: dark;"
Expand All @@ -31,6 +37,16 @@ const thisYear = new Date().getFullYear()
Star
</GithubButton>
</div>
<div class="mb-2">
<GithubButton
href="https://github.com/sponsors/nginxui"
data-color-scheme="no-preference: light; light: light; dark: dark;"
data-icon="octicon-heart" data-size="large"
aria-label="Sponsor @nginxui on GitHub"
>
Sponsor
</GithubButton>
</div>
<h3>
{{ $gettext('Project Team') }}
</h3>
Expand All @@ -53,12 +69,31 @@ const thisYear = new Date().getFullYear()

<style lang="less" scoped>
.logo {
position: relative;
height: 256px;
width: 256px;
.image-bg {
height: 120px;
width: 120px;
position: absolute;
top: 50%;
left: 50%;
border-radius: 50%;
filter: blur(72px);
transform: translate(-50%, -50%);
background-image: linear-gradient(-45deg, #3682D8 50%, #00D2FF 50%);
}
.image-src {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
img {
max-width: 120px
}
}
.star-on-github {
margin-bottom: 10px;
}
</style>

0 comments on commit 54dddfa

Please sign in to comment.