From 067a5c3b0eeeb9591d8617bea28ce1ba679162fe Mon Sep 17 00:00:00 2001 From: Mann Patel <130435633+MannPatel0@users.noreply.github.com> Date: Fri, 18 Apr 2025 10:43:41 -0600 Subject: [PATCH] color theme update emerald --- frontend/src/components/FloatingAlert.jsx | 2 +- frontend/src/components/Navbar.jsx | 2 +- frontend/src/components/UserDropdown.jsx | 4 ++-- frontend/src/pages/Favorites.jsx | 2 +- frontend/src/pages/Home.jsx | 8 +++---- frontend/src/pages/ProductDetail.jsx | 26 +++++++++++------------ frontend/src/pages/SearchPage.jsx | 4 ++-- frontend/src/pages/Settings.jsx | 22 +++++++++---------- 8 files changed, 35 insertions(+), 35 deletions(-) diff --git a/frontend/src/components/FloatingAlert.jsx b/frontend/src/components/FloatingAlert.jsx index 6c6bf69..c3f0229 100644 --- a/frontend/src/components/FloatingAlert.jsx +++ b/frontend/src/components/FloatingAlert.jsx @@ -11,7 +11,7 @@ const FloatingAlert = ({ message, onClose, duration = 3000 }) => { }, [onClose, duration]); return ( -
+
{message}
); diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index 95d41c6..aeceb2c 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -35,7 +35,7 @@ const Navbar = ({ onLogout, userName }) => { alt="Campus Plug" className="h-8 px-2" /> - + Campus Plug diff --git a/frontend/src/components/UserDropdown.jsx b/frontend/src/components/UserDropdown.jsx index 1798b20..e8eed00 100644 --- a/frontend/src/components/UserDropdown.jsx +++ b/frontend/src/components/UserDropdown.jsx @@ -48,8 +48,8 @@ const UserDropdown = ({ onLogout, userName }) => { className="flex items-center focus:outline-none" onClick={toggleDropdown} > -
- +
+
diff --git a/frontend/src/pages/Favorites.jsx b/frontend/src/pages/Favorites.jsx index ffe7139..0a30101 100644 --- a/frontend/src/pages/Favorites.jsx +++ b/frontend/src/pages/Favorites.jsx @@ -119,7 +119,7 @@ const Favorites = () => {

Browse Listings diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index 04b26a8..08b17a2 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -211,7 +211,7 @@ const Home = () => {

@@ -277,7 +277,7 @@ const Home = () => {

{recommended.title}

- + ${recommended.price} @@ -372,7 +372,7 @@ const Home = () => {

{listing.title}

- + ${listing.price} @@ -464,7 +464,7 @@ const Home = () => {

{history.title}

- + ${history.price} diff --git a/frontend/src/pages/ProductDetail.jsx b/frontend/src/pages/ProductDetail.jsx index 0b38ca2..8de5e21 100644 --- a/frontend/src/pages/ProductDetail.jsx +++ b/frontend/src/pages/ProductDetail.jsx @@ -247,7 +247,7 @@ const ProductDetail = () => { if (loading.product) { return (
-
+
); } @@ -261,7 +261,7 @@ const ProductDetail = () => {

{error.product}

Back to Listings @@ -278,7 +278,7 @@ const ProductDetail = () => {

Product Not Found

Back to Listings @@ -293,7 +293,7 @@ const ProductDetail = () => {
Back @@ -350,7 +350,7 @@ const ProductDetail = () => { {product.images.map((image, index) => (
selectImage(index)} > {
-
+
$ {typeof product.Price === "number" ? product.Price.toFixed(2) @@ -416,7 +416,7 @@ const ProductDetail = () => {
@@ -428,7 +428,7 @@ const ProductDetail = () => { href={`tel:${product.SellerPhone}`} className="flex items-center gap-2 p-3 hover:bg-gray-50 border-b border-gray-100" > - + Call Seller )} @@ -438,7 +438,7 @@ const ProductDetail = () => { href={`mailto:${product.SellerEmail}`} className="flex items-center gap-2 p-3 hover:bg-gray-50" > - + Email Seller )} @@ -475,7 +475,7 @@ const ProductDetail = () => {
{loading.reviews ? (
-
+
) : error.reviews ? (
@@ -522,7 +522,7 @@ const ProductDetail = () => {
@@ -580,7 +580,7 @@ const ProductDetail = () => { id="comment" value={reviewForm.comment} onChange={handleReviewInputChange} - className="w-full p-3 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-3 border border-gray-300 focus:outline-none focus:border-emerald-500" rows="4" required > @@ -596,7 +596,7 @@ const ProductDetail = () => { @@ -187,7 +187,7 @@ const SearchPage = () => {

{listing.title}

-

+

${Number(listing.price).toFixed(2)}

diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx index 9dc30f1..f6d610b 100644 --- a/frontend/src/pages/Settings.jsx +++ b/frontend/src/pages/Settings.jsx @@ -230,7 +230,7 @@ const Settings = () => { if (isLoading) { return (
-
+
); } @@ -274,7 +274,7 @@ const Settings = () => { id="name" value={userData.name} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" required />
@@ -291,7 +291,7 @@ const Settings = () => { id="email" value={userData.email} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" required readOnly // Email is often used as identifier and not changeable /> @@ -309,7 +309,7 @@ const Settings = () => { id="phone" value={userData.phone} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" />
@@ -325,7 +325,7 @@ const Settings = () => { id="UCID" value={userData.UCID} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" required />
@@ -342,14 +342,14 @@ const Settings = () => { id="address" value={userData.address} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" />
@@ -381,7 +381,7 @@ const Settings = () => { id="currentPassword" value={userData.currentPassword} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" required />
@@ -398,7 +398,7 @@ const Settings = () => { id="newPassword" value={userData.newPassword} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" required />
@@ -415,7 +415,7 @@ const Settings = () => { id="confirmPassword" value={userData.confirmPassword} onChange={handleInputChange} - className="w-full p-2 border border-gray-300 focus:outline-none focus:border-green-500" + className="w-full p-2 border border-gray-300 focus:outline-none focus:border-emerald-500" required />
@@ -423,7 +423,7 @@ const Settings = () => {