Skip to content

Commit

Permalink
google play badge and signup link
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyndeniz committed Apr 16, 2018
1 parent af0778c commit 35e1fd1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 34 deletions.
3 changes: 2 additions & 1 deletion src/pages/auth/login/login.html
Expand Up @@ -48,6 +48,7 @@

<ion-footer>
<p text-center>
Don't have an account? <strong>SIGN UP</strong>
<a href="https://signup.steemit.com/?ref=steemia">
Don't have an account? <strong>SIGN UP</strong></a>
</p>
</ion-footer>
5 changes: 5 additions & 0 deletions src/pages/auth/login/login.scss
Expand Up @@ -78,4 +78,9 @@ page-login {
.swiper-pagination-bullet-active {
background: #488aff !important;
}

a {
text-decoration: none;
color: #000;
}
}
44 changes: 11 additions & 33 deletions src/pages/post/post.ts
Expand Up @@ -35,6 +35,15 @@ export class PostPage {
private storyForm: FormGroup;
private upvote: boolean = false;

private badge = `
<br>
<hr>
<a href="https://play.google.com/store/apps/details?id=com.steemia.steemia">
![image](https://play.google.com/intl/en_us/badges/images/badge_new.png)
</a>
<hr>`
constructor(private viewCtrl: ViewController,
private actionSheetCtrl: ActionSheetController,
private formBuilder: FormBuilder,
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -210,7 +187,7 @@ export class PostPage {
*/
presentInsertURL(): void {
let alert = this.alertCtrl.create({
title: 'Insert Image',
title: 'Login',
inputs: [
{
name: 'URL',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 35e1fd1

Please sign in to comment.