Skip to content

Commit

Permalink
home & landing page
Browse files Browse the repository at this point in the history
Co-authored-by: Pi Delport <pi@registree.io>
  • Loading branch information
jongbonga and PiDelport committed Jul 12, 2021
1 parent ba44ce0 commit dd50a19
Show file tree
Hide file tree
Showing 13 changed files with 158 additions and 0 deletions.
14 changes: 14 additions & 0 deletions web-client/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
16 changes: 16 additions & 0 deletions web-client/src/app/views/home/home-routing.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
12 changes: 12 additions & 0 deletions web-client/src/app/views/home/home.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
7 changes: 7 additions & 0 deletions web-client/src/app/views/home/home.page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<ion-header>
<ion-toolbar>
<ion-title>home</ion-title>
</ion-toolbar>
</ion-header>

<ion-content> </ion-content>
Empty file.
25 changes: 25 additions & 0 deletions web-client/src/app/views/home/home.page.spec.ts
Original file line number Diff line number Diff line change
@@ -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<HomePage>;

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();
});
});
12 changes: 12 additions & 0 deletions web-client/src/app/views/home/home.page.ts
Original file line number Diff line number Diff line change
@@ -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() {}
}
16 changes: 16 additions & 0 deletions web-client/src/app/views/landing/landing-routing.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
12 changes: 12 additions & 0 deletions web-client/src/app/views/landing/landing.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
7 changes: 7 additions & 0 deletions web-client/src/app/views/landing/landing.page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<ion-header>
<ion-toolbar>
<ion-title>landing</ion-title>
</ion-toolbar>
</ion-header>

<ion-content> </ion-content>
Empty file.
25 changes: 25 additions & 0 deletions web-client/src/app/views/landing/landing.page.spec.ts
Original file line number Diff line number Diff line change
@@ -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<LandingPage>;

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();
});
});
12 changes: 12 additions & 0 deletions web-client/src/app/views/landing/landing.page.ts
Original file line number Diff line number Diff line change
@@ -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() {}
}

0 comments on commit dd50a19

Please sign in to comment.