Ver código fonte

commonVitaminpage

jpsp91 6 anos atrás
pai
commit
cca7bf579f

+ 2
- 7
Vitamin/src/pages/common-vitamins/common-vitamins.html Ver arquivo

@@ -1,18 +1,13 @@
1
-<!--
2
-  Generated template for the CommonVitaminsPage page.
3 1
 
4
-  See http://ionicframework.com/docs/components/#navigation for more info on
5
-  Ionic pages and navigation.
6
--->
7 2
 <ion-header>
8 3
 
9 4
   <ion-navbar>
10
-    <ion-title>commonVitamins</ion-title>
5
+    <ion-title>Vitamins</ion-title>
11 6
   </ion-navbar>
12 7
 
13 8
 </ion-header>
14 9
 
15 10
 
16
-<ion-content padding>
11
+<ion-content text-center class = "login">
17 12
 
18 13
 </ion-content>

+ 16
- 0
Vitamin/src/pages/common-vitamins/common-vitamins.scss Ver arquivo

@@ -1,3 +1,19 @@
1 1
 page-common-vitamins {
2 2
 
3
+
4
+    .login {
5
+        background: url("../assets/imgs/background.jpg");
6
+        background-repeat: no-repeat;
7
+        background-position: center;
8
+        background-size: cover;
9
+    }
10
+
11
+
12
+
13
+
14
+    .scroll-content {
15
+        overflow: hidden;
16
+    }
17
+
18
+
3 19
 }

+ 1
- 1
Vitamin/src/pages/home/home.html Ver arquivo

@@ -53,7 +53,7 @@
53 53
 
54 54
 
55 55
 
56
-  <button ion-button color="danger" round type="submit">Login</button>
56
+  <button ion-button color="danger" (click)="commonVitaminPage()" round>Login</button>
57 57
   <br>
58 58
 
59 59
   <button ion-button color="danger" (click)="registerPage()" round>Sign Up</button>

+ 4
- 2
Vitamin/src/pages/home/home.ts Ver arquivo

@@ -1,6 +1,7 @@
1 1
 import { Component } from '@angular/core';
2 2
 import { NavController } from 'ionic-angular';
3 3
 import { RegisterPage } from '../register/register';
4
+import { CommonVitaminsPage } from '../common-vitamins/common-vitamins';
4 5
 
5 6
 @Component({
6 7
   selector: 'page-home',
@@ -13,8 +14,9 @@ export class HomePage {
13 14
   }
14 15
 
15 16
 
16
-
17
-
17
+commonVitaminPage() {
18
+  this.navCtrl.push(CommonVitaminsPage);
19
+}
18 20
 
19 21
 
20 22
   registerPage() {