feat: donate page i18n
This commit is contained in:
parent
e6deaa4d95
commit
58a4e079f0
|
@ -339,6 +339,14 @@ export default {
|
||||||
donate: 'Donate Us',
|
donate: 'Donate Us',
|
||||||
home: 'Back Home',
|
home: 'Back Home',
|
||||||
},
|
},
|
||||||
|
donate: {
|
||||||
|
donate: 'Donate Us',
|
||||||
|
no: 'comes with no Moemoepoint rewards',
|
||||||
|
server:
|
||||||
|
', but it can help us cover some server expenses. Are you sure you want to sponsor us?',
|
||||||
|
confirm: 'Confirm Donate',
|
||||||
|
back: 'Back Home',
|
||||||
|
},
|
||||||
// 非页面组件这里统一用大驼峰
|
// 非页面组件这里统一用大驼峰
|
||||||
ComponentAlert: {
|
ComponentAlert: {
|
||||||
confirm: 'OK',
|
confirm: 'OK',
|
||||||
|
|
|
@ -1,20 +1,35 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
|
import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
|
||||||
|
import Message from '@/components/alert/Message'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
|
const handleClickDonate = () => {
|
||||||
|
Message(
|
||||||
|
`Let's talk about it when we're in a loss, and first of all, thank you for your support.`,
|
||||||
|
'等我们亏钱再说啦,先感谢您的支持',
|
||||||
|
'info',
|
||||||
|
7777
|
||||||
|
)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="title">赞助我们</div>
|
<div class="title">{{ $tm('donate.donate') }}</div>
|
||||||
<p class="warning">
|
<p class="warning">
|
||||||
赞助我们<span>没有任何的萌萌点奖励</span>,不过可以帮我们缓解一部分服务器的费用,您确定要赞助吗
|
{{ $tm('donate.donate') }}
|
||||||
|
<span>{{ $tm('donate.no') }}</span>
|
||||||
|
{{ $tm('donate.server') }}
|
||||||
</p>
|
</p>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<RouterLink to="/">确定赞助</RouterLink>
|
<span @click="handleClickDonate">{{ $tm('donate.confirm') }}</span>
|
||||||
<RouterLink to="/">返回主页</RouterLink>
|
<span @click="router.push('/kun')">{{ $tm('donate.back') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 版权 -->
|
|
||||||
<KUNGalgameFooter style="margin-bottom: 20px; white-space: nowrap" />
|
<KUNGalgameFooter style="margin-bottom: 20px; white-space: nowrap" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -71,7 +86,7 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
a {
|
span {
|
||||||
padding: 7px 10px;
|
padding: 7px 10px;
|
||||||
&:nth-child(1) {
|
&:nth-child(1) {
|
||||||
background-color: var(--kungalgame-trans-red-0);
|
background-color: var(--kungalgame-trans-red-0);
|
||||||
|
@ -93,4 +108,14 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
.root {
|
||||||
|
min-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue