summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/widgets/donation.vue
blob: 470576d5e6fda11c3ac68099f0e61214fb829b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<template>
<div class="mkw-donation" :data-mobile="platform == 'mobile'">
	<article>
		<h1>%fa:heart%%i18n:@title%</h1>
		<p>
			{{ '%i18n:@text%'.substr(0, '%i18n:@text%'.indexOf('{')) }}
			<a href="https://syuilo.com">@syuilo</a>
			{{ '%i18n:@text%'.substr('%i18n:@text%'.indexOf('}') + 1) }}
		</p>
	</article>
</div>
</template>

<script lang="ts">
import define from '../../../common/define-widget';
export default define({
	name: 'donation'
});
</script>

<style lang="stylus" scoped>
root(isDark)
	background isDark ? #282c37 : #fff
	border solid 1px isDark ? #c3831c : #ead8bb
	border-radius 6px

	> article
		padding 20px

		> h1
			margin 0 0 5px 0
			font-size 1em
			color isDark ? #b2bac1 : #888

			> [data-fa]
				margin-right 0.25em

		> p
			display block
			z-index 1
			margin 0
			font-size 0.8em
			color isDark ? #a1a6ab : #999

	&[data-mobile]
		border none
		background #ead8bb
		border-radius 8px
		box-shadow 0 0 0 1px rgba(#000, 0.2)

		> article
			> h1
				color #7b8871

			> p
				color #777d71

.mkw-donation[data-darkmode]
	root(true)

.mkw-donation:not([data-darkmode])
	root(false)

</style>