From ad1fe435a3c6538ba82d625cca4290248be117d8 Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Fri, 4 Sep 2020 16:41:28 +0200 Subject: [PATCH] [frontend] Add not found page --- .../heading-one/heading-one.component.scss | 3 +++ .../shared/not-found/not-found.component.html | 2 +- .../not-found/not-found.component.spec.ts | 25 ------------------- .../shared/not-found/not-found.component.ts | 1 + 4 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 kibicara-frontend/src/app/shared/not-found/not-found.component.spec.ts diff --git a/kibicara-frontend/src/app/shared/heading-one/heading-one.component.scss b/kibicara-frontend/src/app/shared/heading-one/heading-one.component.scss index 10005ff..6b3f37f 100644 --- a/kibicara-frontend/src/app/shared/heading-one/heading-one.component.scss +++ b/kibicara-frontend/src/app/shared/heading-one/heading-one.component.scss @@ -6,6 +6,9 @@ min-height: 70px; padding-left: 10%; padding-top: 5%; + padding-right: 10%; + padding-bottom: 0; + margin-bottom: 0; color: white; font-size: $h1-font-size; font-weight: $h1-font-weight; diff --git a/kibicara-frontend/src/app/shared/not-found/not-found.component.html b/kibicara-frontend/src/app/shared/not-found/not-found.component.html index 8071020..0671adc 100644 --- a/kibicara-frontend/src/app/shared/not-found/not-found.component.html +++ b/kibicara-frontend/src/app/shared/not-found/not-found.component.html @@ -1 +1 @@ -

not-found works!

+ diff --git a/kibicara-frontend/src/app/shared/not-found/not-found.component.spec.ts b/kibicara-frontend/src/app/shared/not-found/not-found.component.spec.ts deleted file mode 100644 index 35189ed..0000000 --- a/kibicara-frontend/src/app/shared/not-found/not-found.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { NotFoundComponent } from './not-found.component'; - -describe('NotFoundComponent', () => { - let component: NotFoundComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [ NotFoundComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(NotFoundComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/kibicara-frontend/src/app/shared/not-found/not-found.component.ts b/kibicara-frontend/src/app/shared/not-found/not-found.component.ts index 7cb4124..7989ce8 100644 --- a/kibicara-frontend/src/app/shared/not-found/not-found.component.ts +++ b/kibicara-frontend/src/app/shared/not-found/not-found.component.ts @@ -6,6 +6,7 @@ import { Component, OnInit } from '@angular/core'; styleUrls: ['./not-found.component.scss'] }) export class NotFoundComponent implements OnInit { + title = 'Sorry, this page was not found!'; constructor() { }