settings
This commit is contained in:
@@ -25,11 +25,16 @@ const routes: Routes = [
|
||||
{
|
||||
path: 'dash',
|
||||
loadChildren: () => import('./pages/dash/dash.module').then(m => m.DashPageModule)
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
loadChildren: () => import('./pages/settings/settings.module').then(m => m.SettingsPageModule)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
];
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<ion-toolbar>
|
||||
<ion-title><img style="max-width: 150px;" src="https://www.myfit.ai/assets/images/logo.png" /></ion-title>
|
||||
<ion-buttons slot="end">
|
||||
<ion-icon color="secondary" name="settings-outline" ></ion-icon>
|
||||
<ion-icon color="secondary"
|
||||
style="zoom:2.0;"
|
||||
(click)="openSettings()"
|
||||
color="primary"
|
||||
name="settings-outline" ></ion-icon>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
@@ -11,12 +15,13 @@
|
||||
<div class="boxed_contents">
|
||||
<div class="top-flex">
|
||||
<div style="margin-left: 10px;">
|
||||
<img style="max-width: 60px; height: auto" src="https://www.myfit.ai/assets/images/blog_d01.png" />
|
||||
<ion-avatar>
|
||||
<img alt="Firstname Lastname" src="https://ionicframework.com/docs/img/demos/avatar.svg" />
|
||||
</ion-avatar>
|
||||
</div>
|
||||
<div>
|
||||
<div class="acc-name">Firstname Lastname</div>
|
||||
<!-- <hr style="color: red" />-->
|
||||
<div class="last-login">Last Login :01-01-2024 9:40 AM</div>
|
||||
<div class="last-login">Last Login : 01-01-2024 9:40 AM</div>
|
||||
</div>
|
||||
</div>
|
||||
<app-choose-activity></app-choose-activity>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
.top-flex{
|
||||
background-color: #fdf9fc;
|
||||
display: flex;
|
||||
margin-top: 5px;
|
||||
.acc-name{
|
||||
font-weight: bolder;
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
color: #767373;
|
||||
padding: 10px 0px 0px 10px;
|
||||
}
|
||||
.last-login{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Router} from "@angular/router";
|
||||
|
||||
@Component({
|
||||
selector: 'app-dash',
|
||||
@@ -7,9 +8,11 @@ import { Component, OnInit } from '@angular/core';
|
||||
})
|
||||
export class DashPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor(private router: Router) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
openSettings(){
|
||||
this.router.navigate(['settings']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { SettingsPage } from './settings.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: SettingsPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class SettingsPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { SettingsPageRoutingModule } from './settings-routing.module';
|
||||
|
||||
import { SettingsPage } from './settings.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
SettingsPageRoutingModule
|
||||
],
|
||||
declarations: [SettingsPage]
|
||||
})
|
||||
export class SettingsPageModule {}
|
||||
@@ -0,0 +1,14 @@
|
||||
<ion-header mode="ios" class="ion-no-border">
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start" (click)="onBack()">
|
||||
<ion-button>
|
||||
<ion-icon name="arrow-back-outline"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
<ion-title>Settings</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content [fullscreen]="true">
|
||||
|
||||
</ion-content>
|
||||
@@ -0,0 +1,17 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { SettingsPage } from './settings.page';
|
||||
|
||||
describe('SettingsPage', () => {
|
||||
let component: SettingsPage;
|
||||
let fixture: ComponentFixture<SettingsPage>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
fixture = TestBed.createComponent(SettingsPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
|
||||
@Component({
|
||||
selector: 'app-settings',
|
||||
templateUrl: './settings.page.html',
|
||||
styleUrls: ['./settings.page.scss'],
|
||||
})
|
||||
export class SettingsPage implements OnInit {
|
||||
|
||||
constructor(private navctr: NavController) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
onBack(){
|
||||
this.navctr.back();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user