From de7595e52f3c4ebee8fa0274fa6a51e42cb43067 Mon Sep 17 00:00:00 2001 From: kaipher7 Date: Tue, 21 Apr 2026 21:59:50 -0600 Subject: [PATCH] dollar signs and filtering css --- src/main/java/com/example/demo/entity/Recipe.java | 2 +- src/main/resources/static/css/explore.css | 2 +- src/main/resources/templates/explore.html | 10 ++++++++-- src/main/resources/templates/home.html | 12 +++++++++++- src/main/resources/templates/my-profile.html | 10 +++++++++- 5 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/demo/entity/Recipe.java b/src/main/java/com/example/demo/entity/Recipe.java index b1c1bd0..2c246bb 100644 --- a/src/main/java/com/example/demo/entity/Recipe.java +++ b/src/main/java/com/example/demo/entity/Recipe.java @@ -1,4 +1,4 @@ -ackage com.example.demo.entity; +package com.example.demo.entity; import jakarta.persistence.*; import java.util.List; diff --git a/src/main/resources/static/css/explore.css b/src/main/resources/static/css/explore.css index c9e1898..0ea3246 100644 --- a/src/main/resources/static/css/explore.css +++ b/src/main/resources/static/css/explore.css @@ -186,7 +186,7 @@ body, html { .sidebar-right { display: flex; flex-direction: column; - justify-content: space-between; + justify-content: flex-start; align-items: center; margin: 25px; padding: 5px; diff --git a/src/main/resources/templates/explore.html b/src/main/resources/templates/explore.html index 04d5528..97f1db0 100644 --- a/src/main/resources/templates/explore.html +++ b/src/main/resources/templates/explore.html @@ -4,7 +4,7 @@ - Thyme Crunch Home + Explore - Thyme Crunch @@ -65,7 +65,7 @@
Recipe Image
- +

Cost

@@ -235,6 +235,12 @@ window.location.href = '/explore?' + out.toString(); } })(); + + // For cost display + document.querySelectorAll('.card-cost').forEach(el => { + const num = parseInt(el.textContent); + el.textContent = num === 0 ? '' : '$'.repeat(num); +}); diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index 3d2cf1a..7420eff 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -50,7 +50,7 @@
Recipe Image
- +

Cost

@@ -63,5 +63,15 @@ + + + diff --git a/src/main/resources/templates/my-profile.html b/src/main/resources/templates/my-profile.html index 7e7c060..4a616c9 100644 --- a/src/main/resources/templates/my-profile.html +++ b/src/main/resources/templates/my-profile.html @@ -56,7 +56,7 @@
Recipe Image
-

Cost

+

Cost

Edit @@ -91,5 +91,13 @@ + + \ No newline at end of file