-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hywax
committed
Aug 12, 2024
1 parent
ac3a5c4
commit 03ff422
Showing
8 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<a href="https://boosty.to/hywax/donate" class="sponsor" target="_blank"> | ||
<i class="i-ph:heart-fill" /> | ||
<span>{{ label }}</span> | ||
</a> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed } from 'vue' | ||
import { useData } from 'vitepress' | ||
const { lang } = useData() | ||
const label = computed(() => lang.value === 'en-US' ? 'Sponsoring' : 'Поддержать проект') | ||
</script> | ||
|
||
<style scoped> | ||
.sponsor { | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
border-radius: 8px; | ||
padding: 0.7rem .4rem; | ||
background-color: var(--vp-c-bg-soft); | ||
border: 1px solid var(--vp-c-bg-soft); | ||
transition: all .5s; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.5rem; | ||
span { | ||
font-size: 14px; | ||
} | ||
&:hover { | ||
color: #fff; | ||
background-color: rgb(191 57 137 / 100%); | ||
border-color: rgb(221 70 160 / 100%); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters