diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 5c191fa..92c8fb0 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,10 +1,15 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomePageComponent } from './pages/home-page/home-page.component'; +import { RestoPageComponent } from './pages/resto-page/resto-page.component'; +import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component'; const routes: Routes = [ { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: 'home', component: HomePageComponent }, + {path: 'restaurants',component: RestoPageComponent}, + {path: 'page-not-found',component: PageNotFoundComponent}, + {path: '**', redirectTo: 'page-not-found' } ]; @NgModule({ diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 958ce0d..5cdb4dd 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,6 +15,8 @@ import { CardRestoComponent } from './card-resto/card-resto.component'; import { FooterComponent } from './footer/footer.component'; import { HomePageComponent } from './pages/home-page/home-page.component'; import { HttpClientModule } from '@angular/common/http'; +import { RestoPageComponent } from './pages/resto-page/resto-page.component'; +import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component'; @NgModule({ declarations: [ @@ -29,7 +31,9 @@ import { HttpClientModule } from '@angular/common/http'; CardCategoryComponent, CardRestoComponent, FooterComponent, - HomePageComponent + HomePageComponent, + RestoPageComponent, + PageNotFoundComponent ], imports: [ BrowserModule, diff --git a/src/app/card-category/card-category.component.html b/src/app/card-category/card-category.component.html index 88cd2a0..6b51e8c 100644 --- a/src/app/card-category/card-category.component.html +++ b/src/app/card-category/card-category.component.html @@ -1,8 +1,10 @@ +
Card image cap
- {{ categoryData.libelle }} + {{ categoryData.libelle }}
-
\ No newline at end of file + + \ No newline at end of file diff --git a/src/app/card-category/card-category.component.scss b/src/app/card-category/card-category.component.scss index 8e2f5e7..8a2edff 100644 --- a/src/app/card-category/card-category.component.scss +++ b/src/app/card-category/card-category.component.scss @@ -12,4 +12,5 @@ width: 100%; font-size: 1.5em; font-weight: bold; -} \ No newline at end of file +} + diff --git a/src/app/pages/home-page/home-page.component.html b/src/app/pages/home-page/home-page.component.html index fbce5a4..6f4f708 100644 --- a/src/app/pages/home-page/home-page.component.html +++ b/src/app/pages/home-page/home-page.component.html @@ -1,3 +1,5 @@ +

Catégories :

+
diff --git a/src/app/pages/home-page/home-page.component.scss b/src/app/pages/home-page/home-page.component.scss index e69de29..b0748b5 100644 --- a/src/app/pages/home-page/home-page.component.scss +++ b/src/app/pages/home-page/home-page.component.scss @@ -0,0 +1,20 @@ +.parent{ + width: auto; + margin: 3em 10em 0 10em ; + +} +.separation{ + display: flex; + justify-content: flex-start; + border-bottom: 2px solid #CE0000; + max-width: 83%; +} + +.titre{ + + display: flex; + justify-content: flex-start; + margin: 0 0 0.5em 8.2em; + color: #CE0000; + +} \ No newline at end of file diff --git a/src/app/pages/page-not-found/page-not-found.component.html b/src/app/pages/page-not-found/page-not-found.component.html new file mode 100644 index 0000000..cc75e49 --- /dev/null +++ b/src/app/pages/page-not-found/page-not-found.component.html @@ -0,0 +1 @@ +

page-not-found works!

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

Catégories :

+
+ diff --git a/src/app/pages/resto-page/resto-page.component.scss b/src/app/pages/resto-page/resto-page.component.scss new file mode 100644 index 0000000..9f66cf0 --- /dev/null +++ b/src/app/pages/resto-page/resto-page.component.scss @@ -0,0 +1,15 @@ +.separation{ + display: flex; + justify-content: flex-start; + border-bottom: 2px solid #CE0000; + max-width: 83%; +} + +.titre{ + + display: flex; + justify-content: flex-start; + margin: 0 0 0.5em 8.2em; + color: #CE0000; + +} \ No newline at end of file diff --git a/src/app/pages/resto-page/resto-page.component.spec.ts b/src/app/pages/resto-page/resto-page.component.spec.ts new file mode 100644 index 0000000..f04e14e --- /dev/null +++ b/src/app/pages/resto-page/resto-page.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RestoPageComponent } from './resto-page.component'; + +describe('RestoPageComponent', () => { + let component: RestoPageComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ RestoPageComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(RestoPageComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/resto-page/resto-page.component.ts b/src/app/pages/resto-page/resto-page.component.ts new file mode 100644 index 0000000..a0a5221 --- /dev/null +++ b/src/app/pages/resto-page/resto-page.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-resto-page', + templateUrl: './resto-page.component.html', + styleUrls: ['./resto-page.component.scss'] +}) +export class RestoPageComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/assets/ImagesCategory/Americain.png b/src/assets/ImagesCategory/Americain.png index 5bcc5f4..c2844e1 100644 Binary files a/src/assets/ImagesCategory/Americain.png and b/src/assets/ImagesCategory/Americain.png differ diff --git a/src/assets/ImagesCategory/Asiatique.png b/src/assets/ImagesCategory/Asiatique.png new file mode 100644 index 0000000..86984fe Binary files /dev/null and b/src/assets/ImagesCategory/Asiatique.png differ diff --git a/src/assets/ImagesCategory/Brasserie.png b/src/assets/ImagesCategory/Brasserie.png new file mode 100644 index 0000000..e752c3f Binary files /dev/null and b/src/assets/ImagesCategory/Brasserie.png differ diff --git a/src/assets/ImagesCategory/Chinois.png b/src/assets/ImagesCategory/Chinois.png new file mode 100644 index 0000000..b7218d6 Binary files /dev/null and b/src/assets/ImagesCategory/Chinois.png differ diff --git a/src/assets/ImagesCategory/Français.png b/src/assets/ImagesCategory/Français.png new file mode 100644 index 0000000..7e609a2 Binary files /dev/null and b/src/assets/ImagesCategory/Français.png differ diff --git a/src/assets/ImagesCategory/Fruits de Mer.png b/src/assets/ImagesCategory/Fruits de Mer.png new file mode 100644 index 0000000..33c5346 Binary files /dev/null and b/src/assets/ImagesCategory/Fruits de Mer.png differ diff --git a/src/assets/ImagesCategory/Indien.png b/src/assets/ImagesCategory/Indien.png new file mode 100644 index 0000000..61b7a48 Binary files /dev/null and b/src/assets/ImagesCategory/Indien.png differ diff --git a/src/assets/ImagesCategory/Italien.png b/src/assets/ImagesCategory/Italien.png new file mode 100644 index 0000000..981e5ed Binary files /dev/null and b/src/assets/ImagesCategory/Italien.png differ diff --git a/src/assets/ImagesCategory/Japonais.png b/src/assets/ImagesCategory/Japonais.png new file mode 100644 index 0000000..02c2140 Binary files /dev/null and b/src/assets/ImagesCategory/Japonais.png differ diff --git a/src/assets/ImagesCategory/Marocain.png b/src/assets/ImagesCategory/Marocain.png new file mode 100644 index 0000000..73b9663 Binary files /dev/null and b/src/assets/ImagesCategory/Marocain.png differ diff --git a/src/assets/ImagesCategory/Steack.png b/src/assets/ImagesCategory/Steack.png new file mode 100644 index 0000000..5206077 Binary files /dev/null and b/src/assets/ImagesCategory/Steack.png differ