dash cleanup

This commit is contained in:
CHIEFSOFT\ameye
2023-05-13 10:47:46 -04:00
parent 6fe3d083f9
commit 1ec3c830e9
5 changed files with 31 additions and 30 deletions
+7 -7
View File
@@ -5,7 +5,7 @@
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/profile.jpg)'"></div>
<div>
<ion-label class="grey_text">Good Morning</ion-label>
<ion-label class="bold_text">Jaydeep Hirani</ion-label>
<ion-label class="bold_text">{{firstname}}</ion-label>
</div>
</div>
<div class="right">
@@ -18,16 +18,16 @@
<ion-content class="ion-padding">
<div class="search_box" (click)="onSearch()">
<!-- <div class="search_box" (click)="onSearch()">
<ion-icon slot="start" name="search"></ion-icon>
<ion-label>Search</ion-label>
</div>
</div> -->
<div class="offer">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/offer.webp)'"></div>
</div>
<div class="flex">
<!-- <div class="flex">
<ion-label class="bold_text">Top Mentors</ion-label>
<ion-label class="color_text" (click)="onTopMentors()">See all</ion-label>
</div>
@@ -39,9 +39,9 @@
<ion-label>Bob</ion-label>
</div>
</div>
</div>
</div> -->
<div class="flex">
<!-- <div class="flex">
<ion-label class="bold_text">Most Popular Courses</ion-label>
<ion-label class="color_text" (click)="onPopular()">See all</ion-label>
</div>
@@ -56,7 +56,7 @@
<ion-label>Finance</ion-label>
</div>
</div>
</div>
</div> -->
<div class="bg_white" *ngFor="let item of [1,2,3,4,5,6]" (click)="onDetails()">
<div class="list">
+12 -2
View File
@@ -9,13 +9,23 @@ import { SessionDataProviderService } from 'src/app/store/session-data-provider.
})
export class HomePage implements OnInit {
firstname:string='';
constructor(
private router: Router
) { }
private router: Router,
public sessionDataProviderService:SessionDataProviderService
) {
this.firstname = this.sessionDataProviderService.firstname;
}
ngOnInit() {
// debugger;
// this.firstname = this.sessionDataProviderService.firstname;
}
onDetails() {
this.router.navigate(['detail']);
}
+1 -1
View File
@@ -16,7 +16,7 @@ export class LoginPage implements OnInit {
constructor(
private router: Router,
private wrenchService: WrenchService,
private sessionDataProviderService:SessionDataProviderService
public sessionDataProviderService:SessionDataProviderService
) { }
ngOnInit() {
+2 -10
View File
@@ -1,11 +1,3 @@
<!--
Authors : initappz (Rahul Jograna)
Website : https://initappz.com/
App Name : E-Learning App Template
This App Template Source code is licensed as per the
terms found in the Website https://initappz.com/license
Copyright and Good Faith Purchasers © 2021-present initappz.
-->
<ion-header mode="ios" class="ion-no-border">
<ion-toolbar>
<ion-buttons slot="end">
@@ -25,8 +17,8 @@
</div>
</div>
<div class="title">
<ion-label style="font-size: 17px; font-family: 'bold';">Jaydeep Hirani</ion-label>
<ion-label style="font-size: 13px;">jaydeep@gmail.com</ion-label>
<ion-label style="font-size: 17px; font-family: 'bold';">{{firstname}} {{lastname}}</ion-label>
<ion-label style="font-size: 13px;">{{email}}</ion-label>
</div>
</div>
+9 -10
View File
@@ -1,13 +1,6 @@
/*
Authors : initappz (Rahul Jograna)
Website : https://initappz.com/
App Name : E-Learning App Template
This App Template Source code is licensed as per the
terms found in the Website https://initappz.com/license
Copyright and Good Faith Purchasers © 2021-present initappz.
*/
import { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { SessionDataProviderService } from 'src/app/store/session-data-provider.service';
@Component({
selector: 'app-profile',
@@ -15,12 +8,18 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./profile.page.scss'],
})
export class ProfilePage implements OnInit {
firstname:string='';
lastname:string='';
email:string='';
constructor(
private router: Router
private router: Router,
public sessionDataProviderService:SessionDataProviderService
) { }
ngOnInit() {
this.firstname = this.sessionDataProviderService.firstname;
this.lastname = this.sessionDataProviderService.lastname;
this.email = this.sessionDataProviderService.username;
}
onProfile() {