[frontend] Add not found page

This commit is contained in:
Cathy Hu 2020-09-04 16:41:28 +02:00
parent 086402222b
commit ad1fe435a3
4 changed files with 5 additions and 26 deletions

View file

@ -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;

View file

@ -1 +1 @@
<p>not-found works!</p>
<app-heading-one [title]="title"></app-heading-one>

View file

@ -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<NotFoundComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ NotFoundComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NotFoundComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

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