From 24d193504e04ce0b9839ff406094d5d0ddd99e92 Mon Sep 17 00:00:00 2001 From: kaipher7 Date: Mon, 20 Apr 2026 11:38:46 -0600 Subject: [PATCH] create icon and cards improved --- src/main/resources/static/css/explore.css | 22 ++ src/main/resources/static/css/home.css | 22 ++ src/main/resources/static/css/my-profile.css | 21 ++ src/main/resources/templates/explore.html | 30 +- src/main/resources/templates/home.html | 26 +- .../resources/templates/public-profile.html | 1 - .../resources/templates/update-recipe.html | 346 ++++++++++++++++++ 7 files changed, 442 insertions(+), 26 deletions(-) diff --git a/src/main/resources/static/css/explore.css b/src/main/resources/static/css/explore.css index d64242b..78e60a2 100644 --- a/src/main/resources/static/css/explore.css +++ b/src/main/resources/static/css/explore.css @@ -141,6 +141,27 @@ body, html { transition: transform 0.2s ease; } +.create_icon::after { + content: "Create a recipe"; + display: none; + position: absolute; + left: 50%; + bottom: 100%; + transform: translateX(-50%); + background: var(--dark-yellow); + color: var(--dusty-red); + font-family: 'Mali', cursive; + font-size: 0.85em; + font-weight: 600; + white-space: nowrap; + padding: 4px 10px; + border-radius: 10px; +} + +.create_icon:hover::after { + display: block; +} + .create_icon:hover { transform: scale(1.02); } @@ -262,6 +283,7 @@ input[type="text"]::placeholder { height: 50px; width: 50px; margin: 10px; + cursor: pointer; } .search-bar label { display: none; } diff --git a/src/main/resources/static/css/home.css b/src/main/resources/static/css/home.css index bc41372..62eb60b 100644 --- a/src/main/resources/static/css/home.css +++ b/src/main/resources/static/css/home.css @@ -141,6 +141,28 @@ body, html { transition: transform 0.2s ease; } +.create_icon::after { + content: "Create a recipe"; + display: none; + position: absolute; + left: 50%; + bottom: 100%; + transform: translateX(-50%); + background: var(--dark-yellow); + color: var(--dusty-red); + font-family: 'Mali', cursive; + font-size: 0.85em; + font-weight: 600; + white-space: nowrap; + padding: 4px 10px; + border-radius: 10px; +} + +.create_icon:hover::after { + display: block; +} + + .create_icon:hover { transform: scale(1.02); } diff --git a/src/main/resources/static/css/my-profile.css b/src/main/resources/static/css/my-profile.css index c0376af..ec62180 100644 --- a/src/main/resources/static/css/my-profile.css +++ b/src/main/resources/static/css/my-profile.css @@ -145,6 +145,27 @@ body, html { transition: transform 0.2s ease; } +.create_icon::after { + content: "Create a recipe"; + display: none; + position: absolute; + left: 50%; + bottom: 100%; + transform: translateX(-50%); + background: var(--dark-yellow); + color: var(--dusty-red); + font-family: 'Mali', cursive; + font-size: 0.85em; + font-weight: 600; + white-space: nowrap; + padding: 4px 10px; + border-radius: 10px; +} + +.create_icon:hover::after { + display: block; +} + .create_icon:hover { transform: scale(1.02); } diff --git a/src/main/resources/templates/explore.html b/src/main/resources/templates/explore.html index 7389405..63870bd 100644 --- a/src/main/resources/templates/explore.html +++ b/src/main/resources/templates/explore.html @@ -52,21 +52,23 @@ - -
+
+

There are no recipes that fit this description.

- -
-

-

-
-
-
- Recipe Image -
-
-
- +
+ +
+

Recipe Title

+

Description

+
+
+
+ Recipe Image +
+

Cost

+
+
+
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index fab4464..f432621 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -39,17 +39,21 @@
- -
-

-

-
-
-
- Recipe Image -
-
-
+

You have not saved any recipes.

+ +
+ +
+

Recipe Title

+

Description

+
+
+
+ Recipe Image +
+

Cost

+
+
diff --git a/src/main/resources/templates/public-profile.html b/src/main/resources/templates/public-profile.html index 7c8ed07..060dd50 100644 --- a/src/main/resources/templates/public-profile.html +++ b/src/main/resources/templates/public-profile.html @@ -59,7 +59,6 @@

Cost

- Edit diff --git a/src/main/resources/templates/update-recipe.html b/src/main/resources/templates/update-recipe.html index e69de29..598d09c 100644 --- a/src/main/resources/templates/update-recipe.html +++ b/src/main/resources/templates/update-recipe.html @@ -0,0 +1,346 @@ + + + + + + + Create Thyme Crunch Recipe + + + + + +
+ Violin f-hole shape to the left of header. +

Thyme Crunch

+ Violin f-hole shape to the right of header. +
+ +
+
+ + +
+
New Recipe
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+
+
+

Click to upload or drag and drop an image.

+
+
+ Cover preview + +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+ + +
+ +
+ +
+ + +
+
+
+
+ +
+ +
+ +
+ + + + \ No newline at end of file