Quellcode durchsuchen

Components, URLs for profile and calendar updated

master
kj1352 vor 5 Jahren
Ursprung
Commit
c484876e05
12 geänderte Dateien mit 100 neuen und 4 gelöschten Zeilen
  1. +5
    -1
      src/app/app-routing.module.ts
  2. +4
    -0
      src/app/app.module.ts
  3. +1
    -0
      src/app/calendar/calendar.component.html
  4. +0
    -0
      src/app/calendar/calendar.component.scss
  5. +25
    -0
      src/app/calendar/calendar.component.spec.ts
  6. +15
    -0
      src/app/calendar/calendar.component.ts
  7. +1
    -0
      src/app/profile/profile.component.html
  8. +0
    -0
      src/app/profile/profile.component.scss
  9. +25
    -0
      src/app/profile/profile.component.spec.ts
  10. +15
    -0
      src/app/profile/profile.component.ts
  11. +4
    -2
      src/app/tabs/home/home.component.html
  12. +5
    -1
      src/app/tabs/home/home.component.scss

+ 5
- 1
src/app/app-routing.module.ts Datei anzeigen

@@ -5,6 +5,8 @@ import { TabsComponent } from './tabs/tabs.component';
import { DetailsComponent } from './tabs/courses/details/details.component';
import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapter.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 = [
{ path: '', pathMatch: 'full', redirectTo: 'welcome' },
@@ -14,7 +16,9 @@ const routes: Routes = [
{ component: DetailsComponent, path: 'course-details' },
{ component: DetailsComponent, path: 'course-details/: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({


+ 4
- 0
src/app/app.module.ts Datei anzeigen

@@ -16,6 +16,8 @@ import { VideoChapterComponent } from './tabs/courses/video-chapter/video-chapte
import { NotesDetailsComponent } from './tabs/courses/notes-details/notes-details.component';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from '../environments/environment';
import { CalendarComponent } from './calendar/calendar.component';
import { ProfileComponent } from './profile/profile.component';

@NgModule({
declarations: [
@@ -29,6 +31,8 @@ import { environment } from '../environments/environment';
DetailsComponent,
VideoChapterComponent,
NotesDetailsComponent,
CalendarComponent,
ProfileComponent,
],
imports: [
BrowserModule,


+ 1
- 0
src/app/calendar/calendar.component.html Datei anzeigen

@@ -0,0 +1 @@
<p>calendar works!</p>

+ 0
- 0
src/app/calendar/calendar.component.scss Datei anzeigen


+ 25
- 0
src/app/calendar/calendar.component.spec.ts Datei anzeigen

@@ -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();
});
});

+ 15
- 0
src/app/calendar/calendar.component.ts Datei anzeigen

@@ -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 {
}

}

+ 1
- 0
src/app/profile/profile.component.html Datei anzeigen

@@ -0,0 +1 @@
<p>profile works!</p>

+ 0
- 0
src/app/profile/profile.component.scss Datei anzeigen


+ 25
- 0
src/app/profile/profile.component.spec.ts Datei anzeigen

@@ -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();
});
});

+ 15
- 0
src/app/profile/profile.component.ts Datei anzeigen

@@ -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 {
}

}

+ 4
- 2
src/app/tabs/home/home.component.html Datei anzeigen

@@ -1,7 +1,9 @@
<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>
</header>



+ 5
- 1
src/app/tabs/home/home.component.scss Datei anzeigen

@@ -10,7 +10,6 @@
height: 35px;
border-radius: 50%;
overflow: hidden;
margin-right: auto;
}

.icon {
@@ -23,6 +22,11 @@
margin-left: 25px;
border: 0px;
background-color: transparent;

&.profile-button {
margin-left: 0;
margin-right: auto;
}
}
}