-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4fd372
commit 7d9c2ed
Showing
8 changed files
with
205 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/app/fyle/spender-onboarding/spender-onboarding-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import { SpenderOnboardingPage } from './spender-onboarding.page'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: SpenderOnboardingPage, | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class SpenderOnboardingRoutingModule {} |
14 changes: 14 additions & 0 deletions
14
src/app/fyle/spender-onboarding/spender-onboarding.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { SharedModule } from 'src/app/shared/shared.module'; | ||
import { SpenderOnboardingPage } from './spender-onboarding.page'; | ||
import { IonicModule } from '@ionic/angular'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { CommonModule } from '@angular/common'; | ||
import { SpenderOnboardingRoutingModule } from './spender-onboarding-routing.module'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
|
||
@NgModule({ | ||
imports: [SharedModule, CommonModule, FormsModule, IonicModule, MatButtonModule, SpenderOnboardingRoutingModule], | ||
declarations: [SpenderOnboardingPage], | ||
}) | ||
export class SpenderOnboardingPageModule {} |
29 changes: 29 additions & 0 deletions
29
src/app/fyle/spender-onboarding/spender-onboarding.page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<div class="spender-onboarding" *ngIf="!isLoading"> | ||
<ion-buttons slot="start" class="spender-onboarding__menu-icon-container"> | ||
<app-fy-menu-icon class="spender-onboarding__menubutton" auto-hide="false"></app-fy-menu-icon> | ||
</ion-buttons> | ||
<div class="spender-onboarding__user-greeting"> | ||
<div class="spender-onboarding__wave">👋</div> | ||
<div class="spender-onboarding_user-greeting-text"> | ||
<div class="spender-onboarding__user-name">Hello {{userFullName}},</div> | ||
<div class="spender-onboarding__content">Let’s get started!</div> | ||
</div> | ||
</div> | ||
<div class="spender-onboarding__step-tracker"> | ||
<div class="spender-onboarding__stepper-container"> | ||
<div> | ||
<ion-icon | ||
class="spender-onboarding__progress-bar" | ||
[src]="'/assets/svg/progress-bar.svg'" | ||
slot="icon-only" | ||
></ion-icon> | ||
<ion-icon | ||
class="spender-onboarding__progress-bar spender-onboarding__progress-bar-right" | ||
[src]="'/assets/svg/progress-bar.svg'" | ||
slot="icon-only" | ||
></ion-icon> | ||
</div> | ||
<div class="spender-onboarding__skip-cta" (click)="skipConnectCardOnboardingStep()">Skip</div> | ||
</div> | ||
</div> | ||
</div> |
104 changes: 104 additions & 0 deletions
104
src/app/fyle/spender-onboarding/spender-onboarding.page.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
@import '../../../theme/colors.scss'; | ||
$item-border-color: #e0e0e0; | ||
$background-color: #fff; | ||
$menu-botton-color: #000; | ||
$toolbar-border: #ababab6b; | ||
|
||
.spender-onboarding { | ||
background: $border-info-lighter; | ||
height: 100%; | ||
|
||
&__progress-bar { | ||
width: 50px; | ||
} | ||
|
||
&__progress-bar-right { | ||
margin-left: 4px; | ||
} | ||
|
||
&__menu-icon-container { | ||
padding: 20px 16px; | ||
} | ||
|
||
&__step-tracker { | ||
padding: 24px; | ||
border-radius: 32px 32px 0px 0px; | ||
border: 1px solid $border-info-lighter; | ||
background: $pure-white; | ||
box-shadow: -14px -6px 24px 0px #00000008; | ||
} | ||
|
||
&__stepper-container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
&__user-greeting { | ||
display: flex; | ||
gap: 12px; | ||
align-items: flex-start; | ||
color: $dark-grey; | ||
line-height: 1.4; | ||
padding: 0 24px; | ||
margin: 12px 0 32px 0; | ||
height: 42px; | ||
} | ||
|
||
&__wave { | ||
font-size: 32px; | ||
align-self: center; | ||
} | ||
|
||
&__user-name { | ||
font-size: 16px; | ||
font-weight: 500; | ||
} | ||
|
||
&__content { | ||
font-size: 14px; | ||
font-weight: 400; | ||
} | ||
|
||
&__menubutton { | ||
color: $menu-botton-color; | ||
} | ||
|
||
&__title { | ||
line-height: 1.3; | ||
color: $menu-botton-color; | ||
} | ||
|
||
&__zero-state { | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
&__option { | ||
font-weight: normal; | ||
color: #0077ee; | ||
font-size: 16px; | ||
} | ||
|
||
&__select-state { | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
min-width: 120px; | ||
} | ||
|
||
&__select-state-checkbox { | ||
margin-right: 8px; | ||
} | ||
|
||
&__skip-cta { | ||
color: $blue-black; | ||
text-align: center; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 500; | ||
line-height: 1.3; | ||
} | ||
} |
Empty file.
32 changes: 32 additions & 0 deletions
32
src/app/fyle/spender-onboarding/spender-onboarding.page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Component } from '@angular/core'; | ||
import { from, map, switchMap } from 'rxjs'; | ||
import { ExtendedOrgUser } from 'src/app/core/models/extended-org-user.model'; | ||
import { LoaderService } from 'src/app/core/services/loader.service'; | ||
import { OrgUserService } from 'src/app/core/services/org-user.service'; | ||
|
||
@Component({ | ||
selector: 'app-spender-onboarding', | ||
templateUrl: './spender-onboarding.page.html', | ||
styleUrls: ['./spender-onboarding.page.scss'], | ||
}) | ||
export class SpenderOnboardingPage { | ||
isLoading = true; | ||
|
||
userFullName: string; | ||
|
||
constructor(private loaderService: LoaderService, private orgUserService: OrgUserService) {} | ||
|
||
ionViewWillEnter(): void { | ||
this.isLoading = true; | ||
from(this.loaderService.showLoader()) | ||
.pipe( | ||
switchMap(() => this.orgUserService.getCurrent()), | ||
map((eou: ExtendedOrgUser) => { | ||
this.userFullName = eou.us.full_name; | ||
this.isLoading = false; | ||
this.loaderService.hideLoader(); | ||
}) | ||
) | ||
.subscribe(); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.