Skip to content

Commit

Permalink
feat(about): A buy us a beer link is now avalaible from the about page
Browse files Browse the repository at this point in the history
Fixes #94
  • Loading branch information
MathieuNls committed Jan 10, 2017
1 parent be67e28 commit a8e54d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ <h1> {{ 'about-why-tw-title' | translate }} </h1>
<h1> {{ 'about-works-title' | translate }} </h1>
<p> {{ 'about-works' | translate }} </p>

<button color="primary" (click)="buyUsBeer()" ion-button icon-left>
<ion-icon name="ios-beer-outline"></ion-icon>
{{ 'buy-us-beer' | translate }}
</button>


</ion-content>
<footer-nav [user]="user"></footer-nav>
4 changes: 4 additions & 0 deletions src/pages/about/about.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ ion-content#about{
width: 100%;
text-align: center;
}

button{
width: 100%;
}

}
5 changes: 5 additions & 0 deletions src/pages/about/about.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
NavParams
} from 'ionic-angular';
import {InAppBrowser} from 'ionic-native';

import {
Component
Expand Down Expand Up @@ -31,4 +32,8 @@ export class AboutPage {
GAService.screenview("ABOUT");
this.user = this.navParams.get('user');
}

buyUsBeer(){
new InAppBrowser('https://ko-fi.com/A872I1N', '_blank');
}
}

0 comments on commit a8e54d0

Please sign in to comment.