first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ForgotPage } from './forgot.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: ForgotPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class ForgotPageRoutingModule { }
|
||||
@@ -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 { ForgotPageRoutingModule } from './forgot-routing.module';
|
||||
|
||||
import { ForgotPage } from './forgot.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ForgotPageRoutingModule
|
||||
],
|
||||
declarations: [ForgotPage]
|
||||
})
|
||||
export class ForgotPageModule { }
|
||||
@@ -0,0 +1,43 @@
|
||||
<ion-header mode="ios" class="ion-no-border">
|
||||
<ion-toolbar>
|
||||
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content class="ion-padding">
|
||||
|
||||
<div *ngIf="tab == 1" class="ion-padding">
|
||||
|
||||
<ion-label class="welcome_lbl">Forgot password</ion-label>
|
||||
|
||||
<ion-label class="simp_lbl">Select which contact details should we use to reset your password:</ion-label>
|
||||
|
||||
<ion-item lines="none">
|
||||
<ion-icon slot="start" name="mail-outline"></ion-icon>
|
||||
<ion-label (click)="tab = 2">Via email</ion-label>
|
||||
<ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
|
||||
</ion-item>
|
||||
|
||||
<ion-item lines="none">
|
||||
<ion-icon slot="start" name="phone-portrait-outline"></ion-icon>
|
||||
<ion-label>Via sms</ion-label>
|
||||
<ion-icon slot="end" name="chevron-forward-outline"></ion-icon>
|
||||
</ion-item>
|
||||
</div>
|
||||
|
||||
<div *ngIf="tab == 2" class="ion-padding">
|
||||
|
||||
<ion-label class="welcome_lbl">Forgot password</ion-label>
|
||||
|
||||
<ion-label class="simp_lbl">Code has been sent to the your registered email</ion-label>
|
||||
|
||||
<ion-item lines="none">
|
||||
<ion-input type="email" placeholder="Enter Code"></ion-input>
|
||||
</ion-item>
|
||||
|
||||
<ion-button (click)="onPassword()" expand="block">
|
||||
Continue
|
||||
</ion-button>
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
@@ -0,0 +1,67 @@
|
||||
ion-header {
|
||||
ion-toolbar {
|
||||
--background: white;
|
||||
}
|
||||
}
|
||||
|
||||
ion-content {
|
||||
.welcome_lbl {
|
||||
font-size: 32px;
|
||||
font-family: "bold";
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.simp_lbl {
|
||||
margin-top: 16px;
|
||||
letter-spacing: 1.2;
|
||||
}
|
||||
|
||||
ion-item {
|
||||
margin-top: 3.5rem;
|
||||
--background: #f7f7f7;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 24px;
|
||||
|
||||
ion-label {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
ion-icon {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
ion-button {
|
||||
--border-radius: 10px;
|
||||
margin-top: 2.5rem;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.reset {
|
||||
margin-top: 10rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
|
||||
ion-icon {
|
||||
font-size: 60px;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.code_lbl {
|
||||
font-family: "bold";
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.simp_lbl {
|
||||
letter-spacing: 1.2;
|
||||
}
|
||||
|
||||
.done {
|
||||
height: 50px;
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ForgotPage } from './forgot.page';
|
||||
|
||||
describe('ForgotPage', () => {
|
||||
let component: ForgotPage;
|
||||
let fixture: ComponentFixture<ForgotPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ForgotPage],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ForgotPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
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';
|
||||
|
||||
@Component({
|
||||
selector: 'app-forgot',
|
||||
templateUrl: './forgot.page.html',
|
||||
styleUrls: ['./forgot.page.scss'],
|
||||
})
|
||||
export class ForgotPage implements OnInit {
|
||||
|
||||
|
||||
tab = 1
|
||||
|
||||
constructor(
|
||||
private router: Router
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
onPassword() {
|
||||
this.router.navigate(['new-password']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user