From 2e8dda0010b3e0b16d6ad7bcc018ea8aa4c99875 Mon Sep 17 00:00:00 2001 From: Vincent Ramiere Date: Thu, 20 Jan 2022 15:10:10 +0100 Subject: [PATCH] Ajout page signin --- src/app/app-routing.module.ts | 2 ++ src/app/pages/signin/signin.component.html | 1 + src/app/pages/signin/signin.component.scss | 0 src/app/pages/signin/signin.component.spec.ts | 25 +++++++++++++++++++ src/app/pages/signin/signin.component.ts | 15 +++++++++++ 5 files changed, 43 insertions(+) create mode 100644 src/app/pages/signin/signin.component.html create mode 100644 src/app/pages/signin/signin.component.scss create mode 100644 src/app/pages/signin/signin.component.spec.ts create mode 100644 src/app/pages/signin/signin.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 791f237..876f5cf 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -5,6 +5,7 @@ import { HomePageComponent } from './pages/home-page/home-page.component'; import { ListCategoriesComponent } from './pages/list-categories/list-categories.component'; import { RestoPageComponent } from './pages/resto-page/resto-page.component'; import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component'; +import { SigninComponent } from './pages/signin/signin.component'; const routes: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full' }, @@ -14,6 +15,7 @@ const routes: Routes = [ { path: 'Deconnexion', redirectTo: 'home'}, {path: 'restaurants',component: RestoPageComponent}, {path: 'page-not-found',component: PageNotFoundComponent}, + {path: 'signin', component: SigninComponent}, {path: '**', redirectTo: 'page-not-found' } ]; diff --git a/src/app/pages/signin/signin.component.html b/src/app/pages/signin/signin.component.html new file mode 100644 index 0000000..cc1a2e3 --- /dev/null +++ b/src/app/pages/signin/signin.component.html @@ -0,0 +1 @@ +

signin works!

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