diff --git a/src/app/card-resto/card-resto.component.html b/src/app/card-resto/card-resto.component.html
index 6fe87a0..ee5931a 100644
--- a/src/app/card-resto/card-resto.component.html
+++ b/src/app/card-resto/card-resto.component.html
@@ -10,9 +10,9 @@
{{restaurant.nom }}
-
+
@@ -75,6 +75,7 @@
Accès PMR :
+
favoris-user works!
+Mes favoris :
+
+
diff --git a/src/app/pages/favoris-user/favoris-user.component.scss b/src/app/pages/favoris-user/favoris-user.component.scss
index e69de29..b75a95b 100644
--- a/src/app/pages/favoris-user/favoris-user.component.scss
+++ b/src/app/pages/favoris-user/favoris-user.component.scss
@@ -0,0 +1,27 @@
+.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: 2.5em 0 0.5em 8.2em;
+ color: #CE0000;
+
+}
+
+.card{
+ width: 800px;
+ margin: 0;
+ padding: 0;
+ background-color: #CE0000;
+}
\ 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 83f79f6..68c67ae 100644
--- a/src/app/pages/home-page/home-page.component.html
+++ b/src/app/pages/home-page/home-page.component.html
@@ -1,8 +1,2 @@
-Catégories :
-
-
+Hello :D
diff --git a/src/app/pages/home-page/home-page.component.scss b/src/app/pages/home-page/home-page.component.scss
index 8abe656..e69de29 100644
--- a/src/app/pages/home-page/home-page.component.scss
+++ b/src/app/pages/home-page/home-page.component.scss
@@ -1,20 +0,0 @@
-.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: 2.5em 0 0.5em 8.2em;
- color: #CE0000;
-
-}
\ No newline at end of file
diff --git a/src/app/pages/home-page/home-page.component.ts b/src/app/pages/home-page/home-page.component.ts
index 128cd6d..95509ba 100644
--- a/src/app/pages/home-page/home-page.component.ts
+++ b/src/app/pages/home-page/home-page.component.ts
@@ -8,19 +8,13 @@ import { ApiBackService } from 'src/app/services/api-back.service';
})
export class HomePageComponent implements OnInit {
- listCategories : string[];
constructor(private apiBackService : ApiBackService) {
- this.listCategories = [];
+
}
ngOnInit(): void {
- this.apiBackService.getCategories().subscribe((listCategories: any[]) => {
- // console.log(listCategories);
-
- this.listCategories = listCategories;
-
- });
+
}
onEventLike(isLiked : boolean) {
diff --git a/src/app/pages/list-categories/list-categories.component.html b/src/app/pages/list-categories/list-categories.component.html
index 744a7e2..936fa07 100644
--- a/src/app/pages/list-categories/list-categories.component.html
+++ b/src/app/pages/list-categories/list-categories.component.html
@@ -1 +1,7 @@
-category-works!
+Catégories :
+
+
diff --git a/src/app/pages/list-categories/list-categories.component.scss b/src/app/pages/list-categories/list-categories.component.scss
index e69de29..8abe656 100644
--- a/src/app/pages/list-categories/list-categories.component.scss
+++ b/src/app/pages/list-categories/list-categories.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: 2.5em 0 0.5em 8.2em;
+ color: #CE0000;
+
+}
\ No newline at end of file
diff --git a/src/app/pages/list-categories/list-categories.component.ts b/src/app/pages/list-categories/list-categories.component.ts
index a2b5ac0..17b44dc 100644
--- a/src/app/pages/list-categories/list-categories.component.ts
+++ b/src/app/pages/list-categories/list-categories.component.ts
@@ -8,9 +8,18 @@ import { ApiBackService } from 'src/app/services/api-back.service';
styleUrls: ['./list-categories.component.scss']
})
export class ListCategoriesComponent implements OnInit {
+ listCategories : string[];
constructor(private apiBackService : ApiBackService) {
+ this.listCategories = [];
}
- ngOnInit(): void {}
+ ngOnInit(): void {
+ this.apiBackService.getCategories().subscribe((listCategories: any[]) => {
+ // console.log(listCategories);
+
+ this.listCategories = listCategories;
+
+ });
+ }
}
diff --git a/src/app/pages/resto-page/resto-page.component.scss b/src/app/pages/resto-page/resto-page.component.scss
index d553109..27792a8 100644
--- a/src/app/pages/resto-page/resto-page.component.scss
+++ b/src/app/pages/resto-page/resto-page.component.scss
@@ -5,6 +5,7 @@
justify-content: flex-start;
border-bottom: 2px solid #CE0000;
max-width: 83%;
+ padding-bottom: 3vh;
}
.titre{
diff --git a/src/app/pages/resto-page/resto-page.component.ts b/src/app/pages/resto-page/resto-page.component.ts
index 38a2ac5..62ec299 100644
--- a/src/app/pages/resto-page/resto-page.component.ts
+++ b/src/app/pages/resto-page/resto-page.component.ts
@@ -20,7 +20,7 @@ export class RestoPageComponent implements OnInit {
if(this.apiBackService.routeParam === "filtres"){
this.listRestaurants = this.apiBackService.restoFilter;
- }else if(this.apiBackService.routeParam === "home"){
+ }else if(this.apiBackService.routeParam === "categories"){
this.apiBackService.restoByCat.subscribe((restaurants: any[]) => {
this.listRestaurants = restaurants;
});