diff --git a/apps/Recipes/Controllers/FavoritesController.php b/apps/Recipes/Controllers/FavoritesController.php
new file mode 100644
index 0000000..ab406cc
--- /dev/null
+++ b/apps/Recipes/Controllers/FavoritesController.php
@@ -0,0 +1,26 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/Recipes/urls.php b/apps/Recipes/urls.php
index 235ae5e..cfb9f0e 100644
--- a/apps/Recipes/urls.php
+++ b/apps/Recipes/urls.php
@@ -8,4 +8,5 @@ $recipes_urls = [
new Path('/recipe/[:int]/export-pdf', new Controllers\ExportPdfController(), 'export-pdf'),
new Path('/catalog', new Controllers\CatalogController(), 'catalog'),
new Path('/daily-meals', new Controllers\DailyMealsController, 'daily-meals'),
+ new Path('/favorites', new Controllers\FavoritesController(), 'favorites'),
];
diff --git a/assets/css/style.css b/assets/css/style.css
index 1dd0f98..8b42546 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -734,8 +734,11 @@ input[type="checkbox"]{
}
.catalog-recipe {
- display: block;
- width: 200px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
}
.catalog-recipe__image {
@@ -1063,6 +1066,23 @@ label {
margin-top: 46px;
}
+.favorites-items a {
+ text-decoration: none;
+}
+
+.favorites{
+ margin-top: 46px;
+ display: flex;
+}
+
+.favorites-items{
+ width: 100%;
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ column-gap: 25px;
+ row-gap: 40px;
+}
+
@media (max-width: 768px) {
.catalog-items {
@@ -1071,6 +1091,8 @@ label {
margin-right: 0;
}
+
+
.welcome__inner {
flex-direction: column;
}
@@ -1238,6 +1260,11 @@ label {
grid-template-rows: repeat(6, 100px);
}
+ .favorites-items {
+ width: 100%;
+ grid-template-columns: repeat(2, 1fr);
+ }
+
}
@@ -1272,6 +1299,13 @@ label {
padding: 5px;
}
+ .favorites-items {
+ margin-right: 0;
+ justify-items: center;
+ align-items: center;
+ padding: 5px;
+ }
+
.catalog-recipe {
display: flex;
flex-direction: column;
@@ -1298,4 +1332,10 @@ label {
grid-template-columns: 1fr;
margin-right: 0;
}
+
+ .favorites-items {
+ width: 100%;
+ grid-template-columns: 1fr;
+ margin-right: 0;
+ }
}
\ No newline at end of file
diff --git a/components/templates/layout/header.php b/components/templates/layout/header.php
index b3120ca..2c18985 100644
--- a/components/templates/layout/header.php
+++ b/components/templates/layout/header.php
@@ -55,7 +55,7 @@
" class="nav-link">HOME
" class="nav-link">RECIPES
- FAVORITES
+ " class="nav-link">FAVORITES
" class="nav-link">MEAL A DAY
SUBMIT RECIPE