diff --git a/src/components/RecipeDetail.jsx b/src/components/RecipeDetail.jsx index 2c2e810..851ef49 100644 --- a/src/components/RecipeDetail.jsx +++ b/src/components/RecipeDetail.jsx @@ -37,7 +37,7 @@ function RecipeDetail({ recipe, marketsPromise }) { if (markets) { displayMarkets = markets.map((mkt) => { return ( -

{mkt}

+

{mkt.market_name}

); }); } @@ -45,30 +45,33 @@ function RecipeDetail({ recipe, marketsPromise }) { return (
{recipe.title}
-
-

Quick Facts

-
-

Ready in {recipe.readyInMinutes} minutes -

+
+
+

Quick Facts

+
+

Ready in {recipe.readyInMinutes} minutes +

+
+
+

Is is affordable? {recipe.cheap} +

+
+
+

Servings: {recipe.servings} +

+
+ { recipe.dishTypes && (

Dish Types:
{dishTypes}

)} +
+

Source: {' '} + {recipe.sourceName} +

+
-
-

Is is affordable? {recipe.cheap} -

-
-
-

Servings: {recipe.servings} -

-
- { recipe.dishTypes && (

Dish Types:
{dishTypes}

)} -
-

Source: {' '} - {recipe.sourceName} -

+
+ {markets && (

Shop Local!

{displayMarkets}
)}
-
- {markets && (

Shop Local!

{displayMarkets}
)} -
+
); } diff --git a/src/style.scss b/src/style.scss index b5885ec..290a0fe 100644 --- a/src/style.scss +++ b/src/style.scss @@ -45,6 +45,7 @@ body, html { h4 { margin-bottom: 0px; + margin-top: 10px; } h5 { @@ -287,7 +288,7 @@ body, html { display: flex; flex-direction: row; justify-content: space-between; - height: 30% + height: 35% } .ingredient-container { @@ -320,8 +321,19 @@ body, html { color: #78774d; } - #details { + #detail-container { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: end; + } + .details { + flex-direction: column; + } + + .details-right { flex-direction: column; + text-align: right; } #dish-types {