diff --git a/src/app/admin-component/add-restau/add-restau.component.ts b/src/app/admin-component/add-restau/add-restau.component.ts
index 586719a..d98ccbd 100644
--- a/src/app/admin-component/add-restau/add-restau.component.ts
+++ b/src/app/admin-component/add-restau/add-restau.component.ts
@@ -83,7 +83,6 @@ export class AddRestauComponent implements OnInit {
restaurant.adresse !== '') {
this.apiBackService.addRestaurant(restaurant).subscribe(
resp =>
-
this.router.navigate(['restaurants'])
);
} else {
diff --git a/src/app/admin-component/update-del-restau/update-del-restau.component.html b/src/app/admin-component/update-del-restau/update-del-restau.component.html
index d18c0d9..4a65ea7 100644
--- a/src/app/admin-component/update-del-restau/update-del-restau.component.html
+++ b/src/app/admin-component/update-del-restau/update-del-restau.component.html
@@ -5,11 +5,9 @@
{{restau.nom}}
-
-
-
+
\ No newline at end of file
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 644c2ab..a01b041 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -7,16 +7,20 @@ import { RestoPageComponent } from './pages/resto-page/resto-page.component';
import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component';
import { FiltersPageComponent } from './pages/filters-page/filters-page.component';
import { SigninComponent } from './pages/signin/signin.component';
+import { SignupComponent } from './pages/signup/signup.component';
import { AdminPageComponent } from './pages/admin-page/admin-page.component';
import { AuthGuard } from './services/auth.guard';
+import { PageAccountComponent } from './pages/page-account/page-account.component';
const routes: Routes = [
- { path: '', redirectTo: 'signin', pathMatch: 'full' },
+ { path: '', redirectTo: 'home', pathMatch: 'full' },
{path: 'signin', component: SigninComponent},
+ {path: 'signup', component: SignupComponent},
{ path: 'home', component: HomePageComponent },
{ path: 'categories', component: ListCategoriesComponent },
{ path: 'favoris', component: FavorisUserComponent },
{ path: 'filtres', component: FiltersPageComponent },
+ { path: 'profil', component: PageAccountComponent },
{ path: 'Deconnexion', redirectTo: 'home'},
{path: 'restaurants', canActivate: [AuthGuard], component: RestoPageComponent},
{path: 'page-not-found',component: PageNotFoundComponent},
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 19dd0a6..0aa81f4 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -3,4 +3,4 @@
-
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index be5ed0d..18917ec 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { ApiBackService } from './services/api-back.service';
+import { AuthGuard } from './services/auth.guard';
@Component({
selector: 'app-root',
@@ -11,7 +12,7 @@ export class AppComponent {
title = 'simpleat';
dontShow: boolean = false;
- constructor(public router:Router, private apiBackService : ApiBackService){
+ constructor(public router:Router, private apiBackService : ApiBackService, private authgard : AuthGuard){
this.router.events.subscribe(e=>{
//console.log(e);
if(e instanceof NavigationEnd){
@@ -26,6 +27,7 @@ export class AppComponent {
}
- ngOnInit(): void { }
+ ngOnInit(): void {}
+ }
+
-}
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 6d701ea..de864a8 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -24,6 +24,8 @@ import { UpdateDelRestauComponent } from './admin-component/update-del-restau/up
import { HeaderLogoComponent } from './header/components/header-logo/header-logo.component';
import { AuthInterceptor } from './services/auth.interceptor';
import { FavorisUserComponent } from './pages/favoris-user/favoris-user.component';
+import { SignupComponent } from './pages/signup/signup.component';
+import { PageAccountComponent } from './pages/page-account/page-account.component';
@NgModule({
declarations: [
@@ -46,7 +48,9 @@ import { FavorisUserComponent } from './pages/favoris-user/favoris-user.componen
AddRestauComponent,
UpdateDelRestauComponent,
HeaderLogoComponent,
- FavorisUserComponent
+ FavorisUserComponent,
+ SignupComponent,
+ PageAccountComponent
],
imports: [
BrowserModule,
diff --git a/src/app/header/components/header-logo/header-logo.component.html b/src/app/header/components/header-logo/header-logo.component.html
index 8cc88e8..af4e171 100644
--- a/src/app/header/components/header-logo/header-logo.component.html
+++ b/src/app/header/components/header-logo/header-logo.component.html
@@ -10,4 +10,5 @@
LE BON PLAN POUR MANGER
+
\ No newline at end of file
diff --git a/src/app/header/components/header-logo/header-logo.component.scss b/src/app/header/components/header-logo/header-logo.component.scss
index 1202554..7d00233 100644
--- a/src/app/header/components/header-logo/header-logo.component.scss
+++ b/src/app/header/components/header-logo/header-logo.component.scss
@@ -10,6 +10,7 @@
}
+
.trait{
width: 100%;
@@ -26,4 +27,12 @@ p{
left: 68px;
padding : 0 10px 0 10px;
color: grey;
+}
+
+@media only screen and (max-width:753px) {
+
+.trait{
+ display: none;
+}
+
}
\ No newline at end of file
diff --git a/src/app/header/components/nav-bar/nav-bar.component.html b/src/app/header/components/nav-bar/nav-bar.component.html
index 8fadc20..6a99db4 100644
--- a/src/app/header/components/nav-bar/nav-bar.component.html
+++ b/src/app/header/components/nav-bar/nav-bar.component.html
@@ -16,6 +16,7 @@
Restaurants
Filtres
Mes favoris
+ Mon profil
Deconnexion
diff --git a/src/app/header/components/nav-bar/nav-bar.component.scss b/src/app/header/components/nav-bar/nav-bar.component.scss
index bf277c2..4b0136e 100644
--- a/src/app/header/components/nav-bar/nav-bar.component.scss
+++ b/src/app/header/components/nav-bar/nav-bar.component.scss
@@ -1,13 +1,15 @@
#image-header{
+
display: flex;
justify-content: center;
+
}
img{
width: 100%;
- display: block;
+ height: auto;
margin: 0 auto;
padding: 0;
@@ -23,3 +25,14 @@ img{
+@media only screen and (max-width:1131px) {
+ .navbar-toggler{
+ margin: 3vh;
+ }
+ .container-fluid{
+ padding: 0;
+ }
+
+
+}
+
diff --git a/src/app/header/components/search-bar/search-bar.component.html b/src/app/header/components/search-bar/search-bar.component.html
index a9d881c..794fc6d 100644
--- a/src/app/header/components/search-bar/search-bar.component.html
+++ b/src/app/header/components/search-bar/search-bar.component.html
@@ -1,5 +1,5 @@
-
\ No newline at end of file
diff --git a/src/app/header/components/search-bar/search-bar.component.scss b/src/app/header/components/search-bar/search-bar.component.scss
index 089d9a6..32a67eb 100644
--- a/src/app/header/components/search-bar/search-bar.component.scss
+++ b/src/app/header/components/search-bar/search-bar.component.scss
@@ -1,4 +1,19 @@
input[type="search"], textarea{
background-color: #edf5f1;
+
+}
+@media only screen and (max-width:753px) {
+
+ .content{
+ margin-left: 3vh;
+ margin-top: 3vh;
+
+
+ }
+ // .btn{
+ // display: none;
+ // }
+
+
}
diff --git a/src/app/pages/admin-page/admin-page.component.html b/src/app/pages/admin-page/admin-page.component.html
index fd8ef34..32d34ce 100644
--- a/src/app/pages/admin-page/admin-page.component.html
+++ b/src/app/pages/admin-page/admin-page.component.html
@@ -1,9 +1,16 @@
-
\ No newline at end of file
+
+
diff --git a/src/app/pages/admin-page/admin-page.component.scss b/src/app/pages/admin-page/admin-page.component.scss
index 8e1cebc..e69de29 100644
--- a/src/app/pages/admin-page/admin-page.component.scss
+++ b/src/app/pages/admin-page/admin-page.component.scss
@@ -1,3 +0,0 @@
-.search-bar{
- width : 30%;
-}
\ No newline at end of file
diff --git a/src/app/pages/filters-page/filters-page.component.html b/src/app/pages/filters-page/filters-page.component.html
index 00fb9ba..b07ef48 100644
--- a/src/app/pages/filters-page/filters-page.component.html
+++ b/src/app/pages/filters-page/filters-page.component.html
@@ -8,7 +8,7 @@