Skip to content

Commit

Permalink
style: add toogle slide btn
Browse files Browse the repository at this point in the history
  • Loading branch information
LemmyMwaura committed May 6, 2024
1 parent 1755ac1 commit 90b3ded
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
8 changes: 8 additions & 0 deletions apps/conv-learning-manager/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,14 @@
}
}
},
"AI-FALLBACK": {
"MAIN-TITLE":"AI Routing & Fallbacks",
"MAIN-DESC": "Sometimes, your users might get stuck or ask something you didn’t foresee. Through this feature you can use the power of AI to control where to route them for optima learner satisfaction!",
"TITLE-SECTION": {
"SLIDE-BTN": "On",
"TITLE": "Ai Routing"
}
},

"TOAST": {
"EDIT-BOT": {
Expand Down
15 changes: 14 additions & 1 deletion libs/features/convs-mgr/fallbacks/src/lib/fallbacks.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@ import { CommonModule } from '@angular/common';

import { ConvlPageModule } from '@app/elements/layout/page-convl';

import {
MaterialBricksModule,
MaterialDesignModule,
} from '@iote/bricks-angular';
import { MultiLangModule } from '@ngfi/multi-lang';

import { FallbackMainPageComponent } from './pages/fallback-main-page/fallback-main-page.component';

import { FallbackRouterModule } from './fallbacks.router';
import { FallbackModalComponent } from './modals/fallback-modal/fallback-modal.component';

@NgModule({
imports: [CommonModule, ConvlPageModule, FallbackRouterModule],
imports: [
CommonModule,
ConvlPageModule,
FallbackRouterModule,
MaterialBricksModule,
MaterialDesignModule,
MultiLangModule,
],
declarations: [FallbackMainPageComponent, FallbackModalComponent],
})
export class FallbacksModule {}
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<convl-page>
<section class="page-container">
<span class="title">AI Routing & Fallbacks</span>
<span class="title">{{'AI-FALLBACK.MAIN-TITLE'| transloco }}</span>

<div>
Sometimes, your users might get stuck or ask something you didn’t foresee. Through this feature you can use the
power of AI to control where to route them for optima learner satisfaction!
<div class="desc">
{{'AI-FALLBACK.MAIN-DESC'| transloco }}
</div>

<div class="btns-section">
<mat-slide-toggle>{{'AI-FALLBACK.TITLE-SECTION.SLIDE-BTN'| transloco }}</mat-slide-toggle>
<span>{{'AI-FALLBACK.TITLE-SECTION.TITLE'| transloco }}</span>
</div>

<button class="btn" (click)="openModal()">OpenModal</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
font-weight: 400;
}

.btns-section {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 2rem;
}

.btn {
max-width: 100px;
max-height: 30px;
Expand Down

0 comments on commit 90b3ded

Please sign in to comment.