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 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/src/app/tabs/courses/video-chapter/video-chapter.component.html b/src/app/tabs/courses/video-chapter/video-chapter.component.html
new file mode 100644
index 0000000..b34291d
--- /dev/null
+++ b/src/app/tabs/courses/video-chapter/video-chapter.component.html
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+ Transcript
+ Attachments (2)
+ Notes (2)
+
+
+
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis voluptates sint illum dolorem. Non beatae, illum repellendus maxime sunt nulla at inventore odit, voluptate laudantium doloribus. Atque vitae, veritatis aperiam.
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita dolores ea facere quae temporibus. Beatae modi voluptates, dolorem, eveniet sed non a quaerat aperiam officiis voluptatibus nemo! Similique, tempora aspernatur.
+
+
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic nihil molestias perspiciatis reprehenderit, ad adipisci quas nam, minima id vitae dolore impedit iste mollitia quibusdam alias commodi quam qui voluptatibus.
+
+
+
+
+
+
+
Attachment 1
+
+ quidem minima dolor delectus optio, dicta.
+
+
+
+
+
+
+
+
Attachment 2
+
+ quidem minima dolor delectus optio, dicta.
+
+
+
+
+
+
+
+
+
+
Notes 1
+
+ quidem minima dolor delectus optio, dicta.
+
+
+
+
+
+
+
+
Notes 2
+
+ quidem minima dolor delectus optio, dicta.
+
+
+
+
+
+
+
+
Notes 2
+
+ quidem minima dolor delectus optio, dicta.
+
+
+
+
+
+
+
+ SAVE A NOTE
+
+
+
+
diff --git a/src/app/tabs/courses/video-chapter/video-chapter.component.scss b/src/app/tabs/courses/video-chapter/video-chapter.component.scss
new file mode 100644
index 0000000..8eb8bf0
--- /dev/null
+++ b/src/app/tabs/courses/video-chapter/video-chapter.component.scss
@@ -0,0 +1,215 @@
+.page {
+ background-color: var(--black);
+ height: 100vh;
+ overflow: auto;
+}
+
+.nav-header {
+ background-color: var(--ash-black);
+ display: flex;
+ align-items: center;
+ padding: 0 5%;
+ height: 60px;
+ position: sticky;
+ position: -webkit-sticky;
+ top: 0;
+ z-index: 1;
+
+ .close-button {
+ border: 0px;
+ background-color: transparent;
+ .icon {
+ width: 16px;
+ height: 16px;
+ fill: var(--light-grey);
+ }
+ }
+
+ h5 {
+ font-size: 16px;
+ color: white;
+ font-weight: 400;
+ margin-left: 20px;
+ letter-spacing: 1px;
+
+ .icon {
+ width: 15px;
+ height: 15px;
+ fill: white;
+ margin-right: 3px;
+ vertical-align: middle;
+ position: relative;
+ top: -1px;
+ }
+ }
+}
+
+.video-player {
+ background-color: var(--dark-grey);
+ color: white;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 40vh;
+ width: 100%;
+
+ .play-button {
+ background-color: transparent;
+ border: 0px;
+ }
+
+ .icon {
+ width: 50px;
+ height: 50px;
+ fill: white;
+ }
+}
+
+.segments {
+ display: flex;
+ align-items: stretch;
+ height: 40px;
+ border-radius: 7px;
+ overflow: hidden;
+ width: 90%;
+ margin: 20px auto;
+ background-color: var(--dark-grey);
+
+ button {
+ flex-grow: 1;
+ border-radius: 7px;
+ background-color: transparent;
+ color: white;
+ font-size: 13px;
+ border: 0px;
+
+ &.active {
+ background-color: white;
+ color: var(--teal);
+ font-weight: 500;
+ }
+ }
+}
+
+.segment-details {
+ padding: 0 6%;
+}
+
+.transcript {
+ color: var(--light-grey);
+
+ p {
+ font-size: 17px;
+ line-height: 2;
+ margin-bottom: 20px;
+
+ .highlight {
+ color: white;
+ }
+ }
+}
+
+.attachment-list {
+ list-style: none;
+
+ li {
+ padding: 15px;
+ background-color: var(--ash-black);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-radius: 10px;
+ overflow: hidden;
+ margin-bottom: 15px;
+ }
+
+ .content {
+ width: calc(100% - 50px);
+ }
+
+ label {
+ color: white;
+ font-size: 15px;
+ display: block;
+ }
+
+ p {
+ color: var(--light-grey);
+ font-size: 12px;
+ }
+
+ .icon {
+ width: 20px;
+ height: 20px;
+ fill: var(--light-grey);
+
+ &.download {
+ fill: var(--teal-green);
+ }
+ }
+}
+
+
+.notes-list {
+ list-style: none;
+ padding-bottom: 60px;
+
+ li {
+ padding: 15px;
+ background-color: var(--ash-black);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-radius: 10px;
+ overflow: hidden;
+ margin-bottom: 15px;
+ }
+
+ .content {
+ width: calc(100% - 50px);
+ }
+
+ label {
+ color: white;
+ font-size: 15px;
+ display: block;
+ }
+
+ p {
+ color: var(--light-grey);
+ font-size: 12px;
+ }
+
+ .icon {
+ width: 20px;
+ height: 20px;
+ fill: var(--light-grey);
+
+ &.arrow {
+ transform: rotate(-45deg);
+ }
+ }
+
+ .add-notes-button {
+ position: fixed;
+ left: 0px;
+ bottom: 0px;
+ background-color: var(--ash-black);
+ color: var(--light-grey);
+ font-size: 14px;
+ width: 100%;
+ height: 50px;
+ border: 0px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ box-shadow: 0px 0px 5px var(--black);
+
+ .icon {
+ width: 20px;
+ height: 20px;
+ fill: var(--light-grey);
+ margin-right: 5px;
+ }
+ }
+}
diff --git a/src/app/tabs/courses/video-chapter/video-chapter.component.spec.ts b/src/app/tabs/courses/video-chapter/video-chapter.component.spec.ts
new file mode 100644
index 0000000..8036d80
--- /dev/null
+++ b/src/app/tabs/courses/video-chapter/video-chapter.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { VideoChapterComponent } from './video-chapter.component';
+
+describe('VideoChapterComponent', () => {
+ let component: VideoChapterComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ VideoChapterComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(VideoChapterComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/tabs/courses/video-chapter/video-chapter.component.ts b/src/app/tabs/courses/video-chapter/video-chapter.component.ts
new file mode 100644
index 0000000..8d7a46b
--- /dev/null
+++ b/src/app/tabs/courses/video-chapter/video-chapter.component.ts
@@ -0,0 +1,35 @@
+import { Component, OnInit } from '@angular/core';
+import { ActivatedRoute } from '@angular/router';
+import { Subscription } from 'rxjs';
+import { Location } from '@angular/common';
+
+@Component({
+ selector: 'app-video-chapter',
+ templateUrl: './video-chapter.component.html',
+ styleUrls: ['./video-chapter.component.scss']
+})
+export class VideoChapterComponent implements OnInit {
+ selectedSegment: string = 'transcript';
+ heading: string;
+ routeSubscription: Subscription;
+
+ constructor(
+ private route: ActivatedRoute,
+ private location: Location
+ ) { }
+
+ ngOnInit(): void {
+ this.routeSubscription = this.route.params.subscribe((params) => {
+ this.heading = params['heading'];
+ });
+ }
+
+ ngOnDestroy() {
+ this.routeSubscription.unsubscribe();
+ }
+
+ back() {
+ this.location.back();
+ }
+
+}