From f1bebeee4840253f2a2f4fca5cb974c028c40bbe Mon Sep 17 00:00:00 2001 From: David Katrinka Date: Fri, 4 Jul 2025 21:32:57 +0200 Subject: [PATCH] TIST-41: added reviews and reviews form to singe recipe page --- apps/Recipes/Templates/single.php | 69 +++++++++++++++++++- assets/css/style.css | 102 +++++++++++++++++++++++++++++- 2 files changed, 167 insertions(+), 4 deletions(-) diff --git a/apps/Recipes/Templates/single.php b/apps/Recipes/Templates/single.php index 0cd22ae..b3617f0 100644 --- a/apps/Recipes/Templates/single.php +++ b/apps/Recipes/Templates/single.php @@ -65,7 +65,7 @@ the_header(
-
+
+

Reviews

+

Average Rating: 4.5

+
+
+

All Reviews

+
+ 5 Divine disc of + deliciousness! +
+ Blessings of Aqua-sama upon you, fellow foodies! As a proud and very sane member of the Axis + Cult, I recently partook in a holy culinary experience that rivaled even the sacred waters + of the Blue Lake: a homemade pepperoni and mushroom pizza! + The moment I laid eyes on that glorious golden crust, I knew—Aqua-sama herself must have + guided my ovens temperature dial! The cheese was melted with such heavenly grace, + stretching with every bite like the ribbons of our goddesss divine garments. The pepperoni? + Spicy circles of salvation! And the mushrooms—earthy little blessings sent straight from the + soil Aqua purifies daily! + The crust had the perfect balance of crispy edge and fluffy soul. It crackled like the + laughter of a cultist pranking a stubborn Eris follower (teehee~). Each bite sang praises in + my mouth: “Axis! Axis! AXIS!!” + Would I recommend this pizza? Of course! Id even offer it as tribute at the next festival + in Aquas honor. Try it yourself and bask in the savory enlightenment. And remember: if it + tastes weird, just pour holy water on it. Or beer. Aqua would approve either way. + Rating: 5 out of 5 Axis Blessings!(Any lower would be heresy.) +
+
+
+ GreenDavid004 +
+
+
+
+
+
+

Your Review

+
+
+ + +
+
+ +
+ + + +
+ +
+
+
diff --git a/assets/css/style.css b/assets/css/style.css index 76a51a1..f5bfadc 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -876,6 +876,10 @@ input[type="checkbox"]{ display: flex; } +.single-recipe-info__details { + min-width: 400px; +} + .single-recipe-info__image { width: 350px; height: 260px; @@ -1041,7 +1045,7 @@ input[type="checkbox"]{ align-items: flex-start; margin-top: 30px; gap: 40px; - /* flex-wrap: wrap; */ + margin-bottom: 30px; } .single-instructions { @@ -1119,6 +1123,102 @@ label { row-gap: 40px; } +.single-recipe-reviews{ + margin-bottom: 46px; +} + +.single-recipe-reviews .title{ + text-align: start; + margin-top: 20px; +} + +.single-recipe-reviews .rating{ + font-size: 20px; + color: var(--common-text); + font-family: var(--title-font); + font-weight: 400; + margin-bottom: 30px; +} + +.reviews{ + display: flex; + align-items: flex-start; + justify-content: space-between; + width: 100%; + gap: 40px; + margin-top: 40px; +} + +.review-list{ + width: 50%; +} + +.review-form{ + width: 50%; +} + +.subtitle{ + font-family: var(--title-font); + font-size: 16px; + color: var(--common-font); + margin-bottom: 20px; +} + +.review-title{ + font-family: var(--title-font); + font-size: 16px; + color: var(--title-color); + margin-bottom: 10px; + font-weight: 500; +} + +.review-body{ + font-size: 16px; + padding: 5px; +} + +.single-review-meta{ + font-size: 14px; + margin-top: 15px; + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: space-between; + padding: 5px; +} + +.review-meta__user{ + font-size: 14px; +} + +.review-meta__date{ + font-size: 14px; +} + +.rating-select{ + color: var(--title-color); +} + +.rating-selection{ + display: flex; + align-items: center; + gap: 10px; + height: 70px; +} + +.rating-selection select{ + margin: 0; +} + +.review-form textarea{ + width: 100%; + height: 150px; + margin-bottom: 10px; + font-family: var(--common-font); +} + + + @media (max-width: 768px) { .catalog-items {