From 5109d296bc661fdd8033489cd8d76952683af773 Mon Sep 17 00:00:00 2001 From: Cathy Hu Date: Sat, 25 Jul 2020 22:20:17 +0200 Subject: [PATCH] [frontend] Add homepage boilerplate --- kibicara-frontend/src/app/app.module.ts | 6 +++-- .../src/app/homepage/homepage.component.html | 1 + .../src/app/homepage/homepage.component.scss | 0 .../app/homepage/homepage.component.spec.ts | 25 +++++++++++++++++++ .../src/app/homepage/homepage.component.ts | 15 +++++++++++ 5 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 kibicara-frontend/src/app/homepage/homepage.component.html create mode 100644 kibicara-frontend/src/app/homepage/homepage.component.scss create mode 100644 kibicara-frontend/src/app/homepage/homepage.component.spec.ts create mode 100644 kibicara-frontend/src/app/homepage/homepage.component.ts diff --git a/kibicara-frontend/src/app/app.module.ts b/kibicara-frontend/src/app/app.module.ts index 4fac076..4ffd5e1 100644 --- a/kibicara-frontend/src/app/app.module.ts +++ b/kibicara-frontend/src/app/app.module.ts @@ -3,10 +3,12 @@ import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; +import { SharedModule } from './shared/shared.module'; +import { HomepageComponent } from './homepage/homepage.component'; @NgModule({ - declarations: [AppComponent], - imports: [BrowserModule, AppRoutingModule], + declarations: [AppComponent, HomepageComponent], + imports: [BrowserModule, AppRoutingModule, SharedModule], providers: [], bootstrap: [AppComponent], }) diff --git a/kibicara-frontend/src/app/homepage/homepage.component.html b/kibicara-frontend/src/app/homepage/homepage.component.html new file mode 100644 index 0000000..1dc1d5a --- /dev/null +++ b/kibicara-frontend/src/app/homepage/homepage.component.html @@ -0,0 +1 @@ +

homepage works!

diff --git a/kibicara-frontend/src/app/homepage/homepage.component.scss b/kibicara-frontend/src/app/homepage/homepage.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/kibicara-frontend/src/app/homepage/homepage.component.spec.ts b/kibicara-frontend/src/app/homepage/homepage.component.spec.ts new file mode 100644 index 0000000..8d1d3bb --- /dev/null +++ b/kibicara-frontend/src/app/homepage/homepage.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomepageComponent } from './homepage.component'; + +describe('HomepageComponent', () => { + let component: HomepageComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ HomepageComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(HomepageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/kibicara-frontend/src/app/homepage/homepage.component.ts b/kibicara-frontend/src/app/homepage/homepage.component.ts new file mode 100644 index 0000000..710ca29 --- /dev/null +++ b/kibicara-frontend/src/app/homepage/homepage.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-homepage', + templateUrl: './homepage.component.html', + styleUrls: ['./homepage.component.scss'] +}) +export class HomepageComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}