Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .vitepress/theme/components/AfdianCard.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
<template>
<iframe
ref="afdianIframe"
src="https://ifdian.net/leaflet?slug=sanmusen214"
:src="`https://ifdian.net/leaflet?slug=${slug}`"
:width="iframeWidth"
height="200"
scrolling="no"
frameborder="0"i
frameborder="0"
></iframe>
</template>

<script setup>
import { ref, onMounted, onUnmounted } from 'vue'

const props = defineProps({
slug: {
type: String,
default: 'sanmusen214'
}
})

const { slug } = toRefs(props)

const afdianIframe = ref(null)
const iframeWidth = ref('100%')

Expand All @@ -35,3 +44,4 @@ iframe {
margin: 0 auto;
}
</style>

Binary file added src/public/img/donate/sanmusen214.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/zh_CN/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
软件维护不易,如果您感觉该软件对你有帮助,欢迎通过爱发电,或微信扫码赞助,您的支持将成为开发者继续维护的动力。

::: details sanmusen214
<AfdianCard />
![sanmusen214](/img/donate/sanmusen214.webp)
:::

::: warning
Expand Down
Loading