From 37f8cca7813c7eafdb1427bfa35cb07079c30d10 Mon Sep 17 00:00:00 2001
From: kaipher7
Date: Mon, 20 Apr 2026 20:58:23 -0600
Subject: [PATCH] js for cost
---
src/main/resources/static/css/explore.css | 6 ++++++
src/main/resources/static/css/home.css | 6 ++++++
src/main/resources/static/css/my-profile.css | 5 +++++
src/main/resources/templates/explore.html | 10 ++++++++--
src/main/resources/templates/home.html | 14 +++++++++++---
src/main/resources/templates/my-profile.html | 9 ++++++++-
6 files changed, 44 insertions(+), 6 deletions(-)
diff --git a/src/main/resources/static/css/explore.css b/src/main/resources/static/css/explore.css
index 78e60a2..86a0df9 100644
--- a/src/main/resources/static/css/explore.css
+++ b/src/main/resources/static/css/explore.css
@@ -425,6 +425,12 @@ a {
color: var(--dusty-red-hover);
}
+.card-cost {
+ font-weight: 800;
+ color: var(--dusty-red);
+}
+
+
/* =========================
Card Image
========================= */
diff --git a/src/main/resources/static/css/home.css b/src/main/resources/static/css/home.css
index 62eb60b..d203aa3 100644
--- a/src/main/resources/static/css/home.css
+++ b/src/main/resources/static/css/home.css
@@ -290,6 +290,12 @@ a {
color: var(--dusty-red-hover);
}
+.card-cost {
+ font-weight: 800;
+ color: var(--dusty-red);
+}
+
+
/* =========================
Card Image
========================= */
diff --git a/src/main/resources/static/css/my-profile.css b/src/main/resources/static/css/my-profile.css
index ec62180..5b3a175 100644
--- a/src/main/resources/static/css/my-profile.css
+++ b/src/main/resources/static/css/my-profile.css
@@ -399,6 +399,11 @@ a {
overflow: hidden;
}
+.card-cost {
+ font-weight: 800;
+ color: var(--dusty-red);
+}
+
/* =========================
Card Image
========================= */
diff --git a/src/main/resources/templates/explore.html b/src/main/resources/templates/explore.html
index 63870bd..7c14e6f 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 @@
- Cost
+ Cost
@@ -234,6 +234,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 f432621..744e94d 100644
--- a/src/main/resources/templates/home.html
+++ b/src/main/resources/templates/home.html
@@ -2,7 +2,7 @@
-
Thyme Crunch Home
+
Home - Thyme Crunch
@@ -51,7 +51,7 @@
-
Cost
+
Cost
@@ -64,5 +64,13 @@
+
+
+
-