diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-20 17:21:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-20 17:21:16 +0900 |
| commit | d058ecc4ea0bb2b242ba5cc525dc9442964b5939 (patch) | |
| tree | e8179ac27a008eaf20f1c974a7615d0466b17d81 /src/client/app/mobile/views | |
| parent | :art: (diff) | |
| download | misskey-d058ecc4ea0bb2b242ba5cc525dc9442964b5939.tar.gz misskey-d058ecc4ea0bb2b242ba5cc525dc9442964b5939.tar.bz2 misskey-d058ecc4ea0bb2b242ba5cc525dc9442964b5939.zip | |
Resolve #2698
Diffstat (limited to 'src/client/app/mobile/views')
| -rw-r--r-- | src/client/app/mobile/views/pages/welcome.vue | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/client/app/mobile/views/pages/welcome.vue b/src/client/app/mobile/views/pages/welcome.vue index 74f43f2c71..65a7af93a9 100644 --- a/src/client/app/mobile/views/pages/welcome.vue +++ b/src/client/app/mobile/views/pages/welcome.vue @@ -1,5 +1,7 @@ <template> <div class="wgwfgvvimdjvhjfwxropcwksnzftjqes"> + <div class="banner" :style="{ backgroundImage: banner ? `url(${banner})` : null }"></div> + <div> <img :src="$store.state.device.darkmode ? 'assets/title.dark.svg' : 'assets/title.light.svg'" :alt="name"> <p class="host">{{ host }}</p> @@ -80,6 +82,7 @@ export default Vue.extend({ meta: null, copyright, stats: null, + banner: null, host, name: 'Misskey', description: '', @@ -93,6 +96,7 @@ export default Vue.extend({ this.name = meta.name; this.description = meta.description; this.announcements = meta.broadcasts; + this.banner = meta.bannerUrl; }); (this as any).api('stats').then(stats => { @@ -121,7 +125,27 @@ root(isDark) text-align center //background #fff - > div + > .banner + position absolute + top 0 + left 0 + width 100% + height 300px + background-position center + background-size cover + opacity 0.7 + + &:after + content "" + display block + position absolute + bottom 0 + left 0 + width 100% + height 100px + background linear-gradient(transparent, isDark ? #191b22 : #f7f7f7) + + > div:not(.banner) padding 32px margin 0 auto max-width 500px |