From a92259ae8bcd5cb8b188bcbd05b6947e439827b8 Mon Sep 17 00:00:00 2001 From: joekotvas Date: Mon, 13 Nov 2023 16:17:42 -0500 Subject: [PATCH 1/5] fix(tags): change tags link to properly format The tags links were sending users to search for text with underscores and without proper capitalization. This fix links to the display_name instead of the name, allowing for more natural searches. --- src/features/recipes/components/recipe-details/Tags.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/recipes/components/recipe-details/Tags.jsx b/src/features/recipes/components/recipe-details/Tags.jsx index dcb7db7..de75d33 100644 --- a/src/features/recipes/components/recipe-details/Tags.jsx +++ b/src/features/recipes/components/recipe-details/Tags.jsx @@ -18,8 +18,8 @@ export const Tags = ({ tags }) => { return ( {tag.display_name} From 3a3138a3d6a1eaecaaf65c1f1553350eb926f042 Mon Sep 17 00:00:00 2001 From: joekotvas Date: Mon, 13 Nov 2023 17:11:32 -0500 Subject: [PATCH 2/5] fix(search page): layout fixes Remove hairline under wave, center text on button, add padding under recipe of the day --- .../feature-of-the-day/feature-of-the-day.jsx | 14 +++++++++----- src/pages/Search.jsx | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/features/recipes/components/feature-of-the-day/feature-of-the-day.jsx b/src/features/recipes/components/feature-of-the-day/feature-of-the-day.jsx index 1485398..2ed49fa 100644 --- a/src/features/recipes/components/feature-of-the-day/feature-of-the-day.jsx +++ b/src/features/recipes/components/feature-of-the-day/feature-of-the-day.jsx @@ -11,17 +11,21 @@ export const FeatureOfTheDay = () => { Recipe of the day
- + Roasted Chicken And Sweet Potatoes Recipe

@@ -33,10 +37,10 @@ export const FeatureOfTheDay = () => {

diff --git a/src/pages/Search.jsx b/src/pages/Search.jsx index bdd989e..f7a236a 100644 --- a/src/pages/Search.jsx +++ b/src/pages/Search.jsx @@ -31,7 +31,7 @@ const Search = () => { > YumYum Time!! - +
From ed6c084c1644eece8da2559833696c9fdc83d480 Mon Sep 17 00:00:00 2001 From: joekotvas Date: Mon, 13 Nov 2023 17:21:44 -0500 Subject: [PATCH 3/5] fix(recipe difficulty card): hide card when no data available --- .../recipe-details/RecipeDetails.jsx | 6 +- .../recipe-details/RecipeDifficultyCard.jsx | 57 +++++++++++-------- 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/src/features/recipes/components/recipe-details/RecipeDetails.jsx b/src/features/recipes/components/recipe-details/RecipeDetails.jsx index c4b1302..b79b5b2 100644 --- a/src/features/recipes/components/recipe-details/RecipeDetails.jsx +++ b/src/features/recipes/components/recipe-details/RecipeDetails.jsx @@ -26,7 +26,7 @@ export const RecipeDetails = ({ recipe }) => {
-
+
{ renditions={recipe.renditions} className="mb-12 outline-4 md:col-start-7 md:col-end-13 md:row-start-1 lg:col-start-1 lg:col-end-5 lg:row-start-3 lg:-mx-4 lg:-mb-4 2xl:col-end-4" /> - - - + { // Available cards: @@ -28,31 +29,39 @@ export const RecipeDifficultyCard = ({ tags }) => { (tag) => tag.type === "difficulty" && tag.name === "5_ingredients_or_less", ); return ( -
- -
- {easy && ( - +
+ - )} - {quickText && ( - - )} - {simple && ( - - )} -
-
+
+ {easy && ( + + )} + {quickText && ( + + )} + {simple && ( + + )} +
+
+
+ ) ); }; From b5f2ea4d3bfdee97b385887c50cc02dbec234a73 Mon Sep 17 00:00:00 2001 From: joekotvas Date: Mon, 13 Nov 2023 17:27:25 -0500 Subject: [PATCH 4/5] fix(tips): pad control dots and round out avatar images --- src/features/recipes/components/recipe-details/Tips.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/recipes/components/recipe-details/Tips.jsx b/src/features/recipes/components/recipe-details/Tips.jsx index 7d82b76..0fbce59 100644 --- a/src/features/recipes/components/recipe-details/Tips.jsx +++ b/src/features/recipes/components/recipe-details/Tips.jsx @@ -26,7 +26,7 @@ export const Tips = ({ recipeId }) => { showIndicators={true} dynamicHeight={false} stopOnHover={true} - className="bg-transparent mx-[-2.25rem] [&_.carousel-slider]:overflow-visible [&_.control-dots]:bottom-[-2rem]" + className="bg-transparent mx-[-2.25rem] [&_.carousel-slider]:overflow-visible [&_.control-dots]:bottom-[-2rem] [&_.control-dots]:px-6" > {tips.map((tip) => (
@@ -58,7 +58,7 @@ const TipCard = ({ return (
-
+
Date: Mon, 13 Nov 2023 17:36:13 -0500 Subject: [PATCH 5/5] fix(intro card): hide plant corner detail on mobile Avoids layout complications. --- .../recipes/components/recipe-details/Description.jsx | 2 +- src/features/recipes/components/recipe-details/IntroCard.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/recipes/components/recipe-details/Description.jsx b/src/features/recipes/components/recipe-details/Description.jsx index 39663f3..66dd5a6 100644 --- a/src/features/recipes/components/recipe-details/Description.jsx +++ b/src/features/recipes/components/recipe-details/Description.jsx @@ -31,7 +31,7 @@ export const Description = ({ description }) => { const body = words.slice(titleLength).join(" "); console.log("body length:", body.length); return description ? ( -
+
10 ? "text-clamp-h3" : ""}> {title} diff --git a/src/features/recipes/components/recipe-details/IntroCard.jsx b/src/features/recipes/components/recipe-details/IntroCard.jsx index 7f5d8ef..374959a 100644 --- a/src/features/recipes/components/recipe-details/IntroCard.jsx +++ b/src/features/recipes/components/recipe-details/IntroCard.jsx @@ -10,7 +10,7 @@ export const IntroCard = ({ name, imageUrl, description }) => {
@@ -30,7 +30,7 @@ export const IntroCard = ({ name, imageUrl, description }) => { ); return ( -
+