Upd 4
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
THIS IS THE IONIC PROJECT
|
THIS IS THE IONIC PROJECT
|
||||||
|
|
||||||
ionic generate
|
ionic generate
|
||||||
$ ionic generate page
|
$ ionic generate page
|
||||||
$ ionic generate page contact
|
$ ionic generate page contact
|
||||||
$ ionic generate component contact/form
|
$ ionic generate component contact/form
|
||||||
@@ -9,4 +9,7 @@ $ ionic generate directive ripple --skip-import
|
|||||||
$ ionic generate service api/user
|
$ ionic generate service api/user
|
||||||
|
|
||||||
|
|
||||||
ionic g service services/WrenchService
|
ionic generate component user-footer
|
||||||
|
ionic generate component cards/home-card
|
||||||
|
|
||||||
|
ionic g service services/WrenchService
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<ion-card class="menu_card">
|
||||||
|
<ion-card-header>
|
||||||
|
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
|
||||||
|
</ion-card-header>
|
||||||
|
|
||||||
|
<ion-card-content>
|
||||||
|
Here's a small text description for the card content. Nothing more, nothing less.
|
||||||
|
</ion-card-content>
|
||||||
|
</ion-card>
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
.menu_card{
|
||||||
|
//background-image: url('../../../assets/img/myfit_home.jpg');
|
||||||
|
background-image: linear-gradient(to right, blue , green);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
height: 250px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { MenuCardComponent } from './menu-card.component';
|
||||||
|
|
||||||
|
describe('MenuCardComponent', () => {
|
||||||
|
let component: MenuCardComponent;
|
||||||
|
let fixture: ComponentFixture<MenuCardComponent>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ MenuCardComponent ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(MenuCardComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-menu-card',
|
||||||
|
templateUrl: './menu-card.component.html',
|
||||||
|
styleUrls: ['./menu-card.component.scss'],
|
||||||
|
})
|
||||||
|
export class MenuCardComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<ion-toolbar>
|
||||||
|
<ion-grid>
|
||||||
|
<ion-row>
|
||||||
|
<ion-col class="footer-col">
|
||||||
|
<ion-button fill="clear" size="small">
|
||||||
|
<ion-icon slot="icon-only" name="home"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col class="footer-col">
|
||||||
|
<ion-button fill="clear" size="small">
|
||||||
|
<ion-icon slot="icon-only" name="star"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col class="footer-col">
|
||||||
|
<ion-button fill="clear" size="small">
|
||||||
|
<ion-icon slot="icon-only" name="star"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col class="footer-col">
|
||||||
|
<ion-button fill="clear" size="small">
|
||||||
|
<ion-icon slot="icon-only" name="star"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col class="footer-col">
|
||||||
|
<ion-button fill="clear" size="small">
|
||||||
|
<ion-icon slot="icon-only" name="settings"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
</ion-grid>
|
||||||
|
</ion-toolbar>
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.footer-col{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { UserFooterComponent } from './user-footer.component';
|
||||||
|
|
||||||
|
describe('UserFooterComponent', () => {
|
||||||
|
let component: UserFooterComponent;
|
||||||
|
let fixture: ComponentFixture<UserFooterComponent>;
|
||||||
|
|
||||||
|
beforeEach(waitForAsync(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ UserFooterComponent ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(UserFooterComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-user-footer',
|
||||||
|
templateUrl: './user-footer.component.html',
|
||||||
|
styleUrls: ['./user-footer.component.scss'],
|
||||||
|
})
|
||||||
|
export class UserFooterComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -6,13 +6,14 @@
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
.home_card{
|
.home_card{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
max-width: 400px;
|
||||||
top:50%;
|
top:50%;
|
||||||
.card_sec1{
|
.card_sec1{
|
||||||
background-color:#1a3544;
|
background-color:#1a3544;
|
||||||
color: white;
|
color: white;
|
||||||
ion-card-title{
|
ion-card-title{
|
||||||
color:white;
|
color:white;
|
||||||
}
|
}
|
||||||
ion-card-subtitle{
|
ion-card-subtitle{
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
@@ -24,7 +25,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.start_login{
|
.start_login{
|
||||||
|
background-color: lightgreen;
|
||||||
}
|
}
|
||||||
.start_signup{
|
.start_signup{
|
||||||
background-color: lightgreen;
|
background-color: lightgreen;
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { UserDashPageRoutingModule } from './user-dash-routing.module';
|
import { UserDashPageRoutingModule } from './user-dash-routing.module';
|
||||||
|
|
||||||
import { UserDashPage } from './user-dash.page';
|
import { UserDashPage } from './user-dash.page';
|
||||||
|
import { UserFooterComponent } from './../../compo/user-footer/user-footer.component';
|
||||||
|
import { MenuCardComponent } from './../../compo/menu-card/menu-card.component';
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -15,6 +16,6 @@ import { UserDashPage } from './user-dash.page';
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
UserDashPageRoutingModule
|
UserDashPageRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [UserDashPage]
|
declarations: [UserDashPage,UserFooterComponent,MenuCardComponent]
|
||||||
})
|
})
|
||||||
export class UserDashPageModule {}
|
export class UserDashPageModule {}
|
||||||
|
|||||||
@@ -24,16 +24,7 @@
|
|||||||
<ion-grid>
|
<ion-grid>
|
||||||
<ion-row class="home_box_card">
|
<ion-row class="home_box_card">
|
||||||
<ion-col>
|
<ion-col>
|
||||||
<ion-card class="first_card">
|
<app-menu-card />
|
||||||
<ion-card-header>
|
|
||||||
<ion-card-subtitle>Card Subtitle</ion-card-subtitle>
|
|
||||||
</ion-card-header>
|
|
||||||
|
|
||||||
<ion-card-content>
|
|
||||||
Here's a small text description for the card content. Nothing more, nothing less.
|
|
||||||
</ion-card-content>
|
|
||||||
</ion-card>
|
|
||||||
|
|
||||||
</ion-col>
|
</ion-col>
|
||||||
<ion-col>
|
<ion-col>
|
||||||
|
|
||||||
@@ -102,7 +93,7 @@
|
|||||||
</ion-card-header>
|
</ion-card-header>
|
||||||
|
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
|
|
||||||
THis is some contatnts to show for noe
|
THis is some contatnts to show for noe
|
||||||
</ion-card-content>
|
</ion-card-content>
|
||||||
</ion-card> -->
|
</ion-card> -->
|
||||||
@@ -110,35 +101,5 @@
|
|||||||
</ion-content>
|
</ion-content>
|
||||||
|
|
||||||
<ion-footer class="ion-no-border">
|
<ion-footer class="ion-no-border">
|
||||||
<ion-toolbar>
|
<app-user-footer />
|
||||||
<ion-grid>
|
</ion-footer>
|
||||||
<ion-row>
|
|
||||||
<ion-col class="footer-col">
|
|
||||||
<ion-button fill="clear" size="small">
|
|
||||||
<ion-icon slot="icon-only" name="home"></ion-icon>
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col class="footer-col">
|
|
||||||
<ion-button fill="clear" size="small">
|
|
||||||
<ion-icon slot="icon-only" name="star"></ion-icon>
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col class="footer-col">
|
|
||||||
<ion-button fill="clear" size="small">
|
|
||||||
<ion-icon slot="icon-only" name="star"></ion-icon>
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col class="footer-col">
|
|
||||||
<ion-button fill="clear" size="small">
|
|
||||||
<ion-icon slot="icon-only" name="star"></ion-icon>
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
<ion-col class="footer-col">
|
|
||||||
<ion-button fill="clear" size="small">
|
|
||||||
<ion-icon slot="icon-only" name="settings"></ion-icon>
|
|
||||||
</ion-button>
|
|
||||||
</ion-col>
|
|
||||||
</ion-row>
|
|
||||||
</ion-grid>
|
|
||||||
</ion-toolbar>
|
|
||||||
</ion-footer>
|
|
||||||
|
|||||||
@@ -50,6 +50,3 @@ ion-card {
|
|||||||
margin: 10px 5px 5px 5px;
|
margin: 10px 5px 5px 5px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.footer-col{
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user