iceshrimp/src/client/app/common/views/widgets/donation.vue

65 lines
1.1 KiB
Vue
Raw Normal View History

2018-02-15 12:36:42 +09:00
<template>
2018-02-24 02:46:09 +09:00
<div class="mkw-donation" :data-mobile="isMobile">
2018-02-15 12:36:42 +09:00
<article>
2018-04-15 01:04:40 +09:00
<h1>%fa:heart%%i18n:@title%</h1>
2018-02-15 12:36:42 +09:00
<p>
2018-05-20 20:26:38 +09:00
{{ '%i18n:@text%'.substr(0, '%i18n:@text%'.indexOf('{')) }}
2018-02-19 16:08:41 +09:00
<a href="https://syuilo.com">@syuilo</a>
2018-05-20 20:26:38 +09:00
{{ '%i18n:@text%'.substr('%i18n:@text%'.indexOf('}') + 1) }}
2018-02-15 12:36:42 +09:00
</p>
</article>
</div>
</template>
<script lang="ts">
2018-02-25 00:18:09 +09:00
import define from '../../../common/define-widget';
2018-02-15 12:36:42 +09:00
export default define({
name: 'donation'
});
</script>
<style lang="stylus" scoped>
2018-04-20 07:45:37 +09:00
root(isDark)
background isDark ? #282c37 : #fff
border solid 1px isDark ? #c3831c : #ead8bb
2018-02-15 12:36:42 +09:00
border-radius 6px
> article
padding 20px
> h1
margin 0 0 5px 0
font-size 1em
2018-04-20 07:45:37 +09:00
color isDark ? #b2bac1 : #888
2018-02-15 12:36:42 +09:00
> [data-fa]
margin-right 0.25em
> p
display block
z-index 1
margin 0
font-size 0.8em
2018-04-20 07:45:37 +09:00
color isDark ? #a1a6ab : #999
2018-02-15 12:36:42 +09:00
2018-02-24 02:46:09 +09:00
&[data-mobile]
border none
background #ead8bb
border-radius 8px
2018-04-29 08:51:17 +09:00
box-shadow 0 0 0 1px rgba(#000, 0.2)
2018-02-24 02:46:09 +09:00
> article
> h1
color #7b8871
> p
color #777d71
2018-04-20 07:45:37 +09:00
.mkw-donation[data-darkmode]
root(true)
.mkw-donation:not([data-darkmode])
root(false)
2018-02-15 12:36:42 +09:00
</style>