diff --git a/src/pages/auth/login/login.html b/src/pages/auth/login/login.html index 2b0212d..0ec97d0 100644 --- a/src/pages/auth/login/login.html +++ b/src/pages/auth/login/login.html @@ -48,6 +48,7 @@

- Don't have an account? SIGN UP + + Don't have an account? SIGN UP

\ No newline at end of file diff --git a/src/pages/auth/login/login.scss b/src/pages/auth/login/login.scss index 8a20734..e3a5ac3 100644 --- a/src/pages/auth/login/login.scss +++ b/src/pages/auth/login/login.scss @@ -78,4 +78,9 @@ page-login { .swiper-pagination-bullet-active { background: #488aff !important; } + + a { + text-decoration: none; + color: #000; + } } diff --git a/src/pages/post/post.ts b/src/pages/post/post.ts index 9486d87..58e9a92 100644 --- a/src/pages/post/post.ts +++ b/src/pages/post/post.ts @@ -35,6 +35,15 @@ export class PostPage { private storyForm: FormGroup; private upvote: boolean = false; + private badge = ` +
+
+ + + ![image](https://play.google.com/intl/en_us/badges/images/badge_new.png) + + +
` constructor(private viewCtrl: ViewController, private actionSheetCtrl: ActionSheetController, private formBuilder: FormBuilder, @@ -122,38 +131,6 @@ export class PostPage { this.storyForm.controls["title"].setValue(final); } - insertLink() { - let alert = this.alertCtrl.create({ - title: 'Insert URL', - inputs: [ - { - name: 'URL', - placeholder: 'Url to insert' - }, - { - name: 'Text', - placeholder: 'Text to mask the url' - } - ], - buttons: [ - { - text: 'Cancel', - role: 'cancel', - handler: data => { - console.log('Cancel clicked'); - } - }, - { - text: 'OK', - handler: data => { - this.insertText('[' + data.Text +'](' + data.URL + ')'); - } - } - ] - }); - alert.present(); - } - insertTags(text) { const current = this.storyForm.value.tags.toString(); let final = current.substr(0, this.caret) + text + current.substr(this.caret); @@ -210,7 +187,7 @@ export class PostPage { */ presentInsertURL(): void { let alert = this.alertCtrl.create({ - title: 'Insert Image', + title: 'Login', inputs: [ { name: 'URL', @@ -304,6 +281,7 @@ export class PostPage { loading.present(); let tags = this.storyForm.controls.tags.value.match(/[^,\s][^\,]*[^,\s]*/g); + this.insertText(this.badge); this.steemActions.dispatch_post( this.storyForm.controls.title.value, this.storyForm.controls.description.value,