From 1b472e5249b70cde9d6ba4b0e6a4f82956d09608 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 9 Jun 2020 22:27:39 +0530 Subject: [PATCH] Video Chapter UI --- src/app/app-routing.module.ts | 4 +- src/app/app.module.ts | 2 + .../courses/details/details.component.html | 10 +- .../video-chapter.component.html | 99 ++++++++ .../video-chapter.component.scss | 215 ++++++++++++++++++ .../video-chapter.component.spec.ts | 25 ++ .../video-chapter/video-chapter.component.ts | 35 +++ 7 files changed, 384 insertions(+), 6 deletions(-) create mode 100644 src/app/tabs/courses/video-chapter/video-chapter.component.html create mode 100644 src/app/tabs/courses/video-chapter/video-chapter.component.scss create mode 100644 src/app/tabs/courses/video-chapter/video-chapter.component.spec.ts create mode 100644 src/app/tabs/courses/video-chapter/video-chapter.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index a9f39ad..53c9d7f 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -3,6 +3,7 @@ import { Routes, RouterModule } from '@angular/router'; import { WelcomeComponent } from './welcome/welcome.component'; import { TabsComponent } from './tabs/tabs.component'; import { DetailsComponent } from './tabs/courses/details/details.component'; +import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapter.component'; const routes: Routes = [ { path: '', pathMatch: 'full', redirectTo: 'welcome' }, @@ -10,7 +11,8 @@ const routes: Routes = [ { component: TabsComponent, path: 'tabs' }, { component: TabsComponent, path: 'tabs/:subpage' }, { component: DetailsComponent, path: 'course-details' }, - { component: DetailsComponent, path: 'course-details/:heading' } + { component: DetailsComponent, path: 'course-details/:heading' }, + { component: VideoChapterComponent, path: 'video-chapter/:heading' } ]; @NgModule({ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ea95f44..3cbcdd4 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -12,6 +12,7 @@ import { CoursesComponent } from './tabs/courses/courses.component'; import { ReportsComponent } from './tabs/reports/reports.component'; import { MoreComponent } from './tabs/more/more.component'; import { DetailsComponent } from './tabs/courses/details/details.component'; +import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapter.component'; @NgModule({ declarations: [ @@ -23,6 +24,7 @@ import { DetailsComponent } from './tabs/courses/details/details.component'; ReportsComponent, MoreComponent, DetailsComponent, + VideoChapterComponent, ], imports: [ BrowserModule, diff --git a/src/app/tabs/courses/details/details.component.html b/src/app/tabs/courses/details/details.component.html index 107ef4d..f0ade54 100644 --- a/src/app/tabs/courses/details/details.component.html +++ b/src/app/tabs/courses/details/details.component.html @@ -53,7 +53,7 @@