From dd50a19f8a3a2e09d9fcf7d6251049c054379fee Mon Sep 17 00:00:00 2001 From: Jonathan Ngbonga Date: Wed, 7 Jul 2021 14:59:42 +0200 Subject: [PATCH] home & landing page Co-authored-by: Pi Delport --- web-client/src/app/app-routing.module.ts | 14 +++++++++++ .../src/app/views/home/home-routing.module.ts | 16 ++++++++++++ web-client/src/app/views/home/home.module.ts | 12 +++++++++ web-client/src/app/views/home/home.page.html | 7 ++++++ web-client/src/app/views/home/home.page.scss | 0 .../src/app/views/home/home.page.spec.ts | 25 +++++++++++++++++++ web-client/src/app/views/home/home.page.ts | 12 +++++++++ .../views/landing/landing-routing.module.ts | 16 ++++++++++++ .../src/app/views/landing/landing.module.ts | 12 +++++++++ .../src/app/views/landing/landing.page.html | 7 ++++++ .../src/app/views/landing/landing.page.scss | 0 .../app/views/landing/landing.page.spec.ts | 25 +++++++++++++++++++ .../src/app/views/landing/landing.page.ts | 12 +++++++++ 13 files changed, 158 insertions(+) create mode 100644 web-client/src/app/views/home/home-routing.module.ts create mode 100644 web-client/src/app/views/home/home.module.ts create mode 100644 web-client/src/app/views/home/home.page.html create mode 100644 web-client/src/app/views/home/home.page.scss create mode 100644 web-client/src/app/views/home/home.page.spec.ts create mode 100644 web-client/src/app/views/home/home.page.ts create mode 100644 web-client/src/app/views/landing/landing-routing.module.ts create mode 100644 web-client/src/app/views/landing/landing.module.ts create mode 100644 web-client/src/app/views/landing/landing.page.html create mode 100644 web-client/src/app/views/landing/landing.page.scss create mode 100644 web-client/src/app/views/landing/landing.page.spec.ts create mode 100644 web-client/src/app/views/landing/landing.page.ts diff --git a/web-client/src/app/app-routing.module.ts b/web-client/src/app/app-routing.module.ts index 810766d7c..f509faa28 100644 --- a/web-client/src/app/app-routing.module.ts +++ b/web-client/src/app/app-routing.module.ts @@ -29,6 +29,20 @@ const routes: Routes = [ m => m.RegisterPageModule // prettier-ignore ), }, + { + path: 'home', + loadChildren: () => + import('./views/home/home.module').then( + m => m.HomePageModule // prettier-ignore + ), + }, + { + path: 'landing', + loadChildren: () => + import('./views/landing/landing.module').then( + m => m.LandingPageModule // prettier-ignore + ), + }, ]; @NgModule({ diff --git a/web-client/src/app/views/home/home-routing.module.ts b/web-client/src/app/views/home/home-routing.module.ts new file mode 100644 index 000000000..dcf3102a3 --- /dev/null +++ b/web-client/src/app/views/home/home-routing.module.ts @@ -0,0 +1,16 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { HomePage } from './home.page'; + +const routes: Routes = [ + { + path: '', + component: HomePage, + }, +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class HomePageRoutingModule {} diff --git a/web-client/src/app/views/home/home.module.ts b/web-client/src/app/views/home/home.module.ts new file mode 100644 index 000000000..648bcca57 --- /dev/null +++ b/web-client/src/app/views/home/home.module.ts @@ -0,0 +1,12 @@ +import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; +import { IonicModule } from '@ionic/angular'; +import { HomePageRoutingModule } from './home-routing.module'; +import { HomePage } from './home.page'; + +@NgModule({ + imports: [CommonModule, FormsModule, IonicModule, HomePageRoutingModule], + declarations: [HomePage], +}) +export class HomePageModule {} diff --git a/web-client/src/app/views/home/home.page.html b/web-client/src/app/views/home/home.page.html new file mode 100644 index 000000000..484a52674 --- /dev/null +++ b/web-client/src/app/views/home/home.page.html @@ -0,0 +1,7 @@ + + + home + + + + diff --git a/web-client/src/app/views/home/home.page.scss b/web-client/src/app/views/home/home.page.scss new file mode 100644 index 000000000..e69de29bb diff --git a/web-client/src/app/views/home/home.page.spec.ts b/web-client/src/app/views/home/home.page.spec.ts new file mode 100644 index 000000000..fc342e870 --- /dev/null +++ b/web-client/src/app/views/home/home.page.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; +import { HomePage } from './home.page'; + +describe('HomePage', () => { + let component: HomePage; + let fixture: ComponentFixture; + + beforeEach( + waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [HomePage], + imports: [IonicModule.forRoot()], + }).compileComponents(); + + fixture = TestBed.createComponent(HomePage); + component = fixture.componentInstance; + fixture.detectChanges(); + }) + ); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/web-client/src/app/views/home/home.page.ts b/web-client/src/app/views/home/home.page.ts new file mode 100644 index 000000000..8daf20c8d --- /dev/null +++ b/web-client/src/app/views/home/home.page.ts @@ -0,0 +1,12 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-home', + templateUrl: './home.page.html', + styleUrls: ['./home.page.scss'], +}) +export class HomePage implements OnInit { + constructor() {} + + ngOnInit() {} +} diff --git a/web-client/src/app/views/landing/landing-routing.module.ts b/web-client/src/app/views/landing/landing-routing.module.ts new file mode 100644 index 000000000..8f30c8d24 --- /dev/null +++ b/web-client/src/app/views/landing/landing-routing.module.ts @@ -0,0 +1,16 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { LandingPage } from './landing.page'; + +const routes: Routes = [ + { + path: '', + component: LandingPage, + }, +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class LandingPageRoutingModule {} diff --git a/web-client/src/app/views/landing/landing.module.ts b/web-client/src/app/views/landing/landing.module.ts new file mode 100644 index 000000000..bdf6dce6f --- /dev/null +++ b/web-client/src/app/views/landing/landing.module.ts @@ -0,0 +1,12 @@ +import { CommonModule } from '@angular/common'; +import { NgModule } from '@angular/core'; +import { FormsModule } from '@angular/forms'; +import { IonicModule } from '@ionic/angular'; +import { LandingPageRoutingModule } from './landing-routing.module'; +import { LandingPage } from './landing.page'; + +@NgModule({ + imports: [CommonModule, FormsModule, IonicModule, LandingPageRoutingModule], + declarations: [LandingPage], +}) +export class LandingPageModule {} diff --git a/web-client/src/app/views/landing/landing.page.html b/web-client/src/app/views/landing/landing.page.html new file mode 100644 index 000000000..f3295094e --- /dev/null +++ b/web-client/src/app/views/landing/landing.page.html @@ -0,0 +1,7 @@ + + + landing + + + + diff --git a/web-client/src/app/views/landing/landing.page.scss b/web-client/src/app/views/landing/landing.page.scss new file mode 100644 index 000000000..e69de29bb diff --git a/web-client/src/app/views/landing/landing.page.spec.ts b/web-client/src/app/views/landing/landing.page.spec.ts new file mode 100644 index 000000000..a62f69c6e --- /dev/null +++ b/web-client/src/app/views/landing/landing.page.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; +import { LandingPage } from './landing.page'; + +describe('LandingPage', () => { + let component: LandingPage; + let fixture: ComponentFixture; + + beforeEach( + waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [LandingPage], + imports: [IonicModule.forRoot()], + }).compileComponents(); + + fixture = TestBed.createComponent(LandingPage); + component = fixture.componentInstance; + fixture.detectChanges(); + }) + ); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/web-client/src/app/views/landing/landing.page.ts b/web-client/src/app/views/landing/landing.page.ts new file mode 100644 index 000000000..896a6932f --- /dev/null +++ b/web-client/src/app/views/landing/landing.page.ts @@ -0,0 +1,12 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-landing', + templateUrl: './landing.page.html', + styleUrls: ['./landing.page.scss'], +}) +export class LandingPage implements OnInit { + constructor() {} + + ngOnInit() {} +}