diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-08-29 15:32:52 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-08-29 15:32:52 +0900 |
| commit | e2b497de2a07ce2b301bfe201c42494f4d4feb9b (patch) | |
| tree | 4cb4eb5eb083b59d9075b231b62200b9c1f9e1a9 /src/web | |
| parent | v2487 (diff) | |
| download | sharkey-e2b497de2a07ce2b301bfe201c42494f4d4feb9b.tar.gz sharkey-e2b497de2a07ce2b301bfe201c42494f4d4feb9b.tar.bz2 sharkey-e2b497de2a07ce2b301bfe201c42494f4d4feb9b.zip | |
:v:
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/mobile/tags/page/settings/profile.tag | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/src/web/app/mobile/tags/page/settings/profile.tag b/src/web/app/mobile/tags/page/settings/profile.tag index 4d00f19d5d..f427db3272 100644 --- a/src/web/app/mobile/tags/page/settings/profile.tag +++ b/src/web/app/mobile/tags/page/settings/profile.tag @@ -21,6 +21,9 @@ <div> <p><i class="fa fa-info-circle"></i>%i18n:mobile.tags.mk-profile-setting.will-be-published%</p> <div class="form"> + <div style={ I.banner_url ? 'background-image: url(' + I.banner_url + '?thumbnail&size=1024)' : '' } onclick={ clickBanner }> + <img src={ I.avatar_url + '?thumbnail&size=200' } alt="avatar" onclick={ clickAvatar }/> + </div> <label> <p>%i18n:mobile.tags.mk-profile-setting.name%</p> <input ref="name" type="text" value={ I.name }/> @@ -60,7 +63,7 @@ > p display block margin 0 0 8px 0 - padding 16px + padding 12px 16px color #79d4e6 //color #276f86 //background #f8ffff @@ -98,6 +101,20 @@ border-bottom solid 8px transparent border-left solid 8px transparent + > div + height 128px + background-color #e4e4e4 + border-radius 8px 8px 0 0 + + > img + position absolute + top 25px + left calc(50% - 40px) + width 80px + height 80px + border solid 2px #fff + border-radius 8px + > label display block margin 0 @@ -190,6 +207,16 @@ }); }; + this.clickAvatar = e => { + this.setAvatar(); + return false; + }; + + this.clickBanner = e => { + this.setBanner(); + return false; + }; + this.save = () => { this.update({ saving: true |