@@ -5,6 +5,8 @@ import { TabsComponent } from './tabs/tabs.component'; | |||||
import { DetailsComponent } from './tabs/courses/details/details.component'; | import { DetailsComponent } from './tabs/courses/details/details.component'; | ||||
import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapter.component'; | import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapter.component'; | ||||
import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component'; | import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component'; | ||||
import { CalendarComponent } from './calendar/calendar.component'; | |||||
import { ProfileComponent } from './profile/profile.component'; | |||||
const routes: Routes = [ | const routes: Routes = [ | ||||
{ path: '', pathMatch: 'full', redirectTo: 'welcome' }, | { path: '', pathMatch: 'full', redirectTo: 'welcome' }, | ||||
@@ -14,7 +16,9 @@ const routes: Routes = [ | |||||
{ component: DetailsComponent, path: 'course-details' }, | { component: DetailsComponent, path: 'course-details' }, | ||||
{ component: DetailsComponent, path: 'course-details/:heading' }, | { component: DetailsComponent, path: 'course-details/:heading' }, | ||||
{ component: VideoChapterComponent, path: 'video-chapter/:heading' }, | { component: VideoChapterComponent, path: 'video-chapter/:heading' }, | ||||
{ component: NotesDetailsComponent, path: 'notes-details/:heading' } | |||||
{ component: NotesDetailsComponent, path: 'notes-details/:heading' }, | |||||
{ component: CalendarComponent, path: 'calendar' }, | |||||
{ component: ProfileComponent, path: 'profile' }, | |||||
]; | ]; | ||||
@NgModule({ | @NgModule({ | ||||
@@ -16,6 +16,8 @@ import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapte | |||||
import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component'; | import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component'; | ||||
import { ServiceWorkerModule } from '@angular/service-worker'; | import { ServiceWorkerModule } from '@angular/service-worker'; | ||||
import { environment } from '../environments/environment'; | import { environment } from '../environments/environment'; | ||||
import { CalendarComponent } from './calendar/calendar.component'; | |||||
import { ProfileComponent } from './profile/profile.component'; | |||||
@NgModule({ | @NgModule({ | ||||
declarations: [ | declarations: [ | ||||
@@ -29,6 +31,8 @@ import { environment } from '../environments/environment'; | |||||
DetailsComponent, | DetailsComponent, | ||||
VideoChapterComponent, | VideoChapterComponent, | ||||
NotesDetailsComponent, | NotesDetailsComponent, | ||||
CalendarComponent, | |||||
ProfileComponent, | |||||
], | ], | ||||
imports: [ | imports: [ | ||||
BrowserModule, | BrowserModule, | ||||
@@ -0,0 +1 @@ | |||||
<p>calendar works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { CalendarComponent } from './calendar.component'; | |||||
describe('CalendarComponent', () => { | |||||
let component: CalendarComponent; | |||||
let fixture: ComponentFixture<CalendarComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ CalendarComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(CalendarComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-calendar', | |||||
templateUrl: './calendar.component.html', | |||||
styleUrls: ['./calendar.component.scss'] | |||||
}) | |||||
export class CalendarComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
<p>profile works!</p> |
@@ -0,0 +1,25 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { ProfileComponent } from './profile.component'; | |||||
describe('ProfileComponent', () => { | |||||
let component: ProfileComponent; | |||||
let fixture: ComponentFixture<ProfileComponent>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ ProfileComponent ] | |||||
}) | |||||
.compileComponents(); | |||||
})); | |||||
beforeEach(() => { | |||||
fixture = TestBed.createComponent(ProfileComponent); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
}); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-profile', | |||||
templateUrl: './profile.component.html', | |||||
styleUrls: ['./profile.component.scss'] | |||||
}) | |||||
export class ProfileComponent implements OnInit { | |||||
constructor() { } | |||||
ngOnInit(): void { | |||||
} | |||||
} |
@@ -1,7 +1,9 @@ | |||||
<header class="header-bar"> | <header class="header-bar"> | ||||
<img src="https://pbs.twimg.com/profile_images/3478244961/01ebfc40ecc194a2abc81e82ab877af4.jpeg"> | |||||
<button class="profile-button" [routerLink]="['/profile']"> | |||||
<img src="https://pbs.twimg.com/profile_images/3478244961/01ebfc40ecc194a2abc81e82ab877af4.jpeg"> | |||||
</button> | |||||
<button> <svg-icon [applyClass]="true" class="icon" src="assets/custom-icons/calendar.svg"></svg-icon> </button> | |||||
<button [routerLink]="['/calendar']"> <svg-icon [applyClass]="true" class="icon" src="assets/custom-icons/calendar.svg"></svg-icon> </button> | |||||
<button> <svg-icon [applyClass]="true" class="icon" src="assets/custom-icons/bell.svg"></svg-icon> </button> | <button> <svg-icon [applyClass]="true" class="icon" src="assets/custom-icons/bell.svg"></svg-icon> </button> | ||||
</header> | </header> | ||||
@@ -10,7 +10,6 @@ | |||||
height: 35px; | height: 35px; | ||||
border-radius: 50%; | border-radius: 50%; | ||||
overflow: hidden; | overflow: hidden; | ||||
margin-right: auto; | |||||
} | } | ||||
.icon { | .icon { | ||||
@@ -23,6 +22,11 @@ | |||||
margin-left: 25px; | margin-left: 25px; | ||||
border: 0px; | border: 0px; | ||||
background-color: transparent; | background-color: transparent; | ||||
&.profile-button { | |||||
margin-left: 0; | |||||
margin-right: auto; | |||||
} | |||||
} | } | ||||
} | } | ||||