From eea7252b9672c8dea4a51784c7c9d0287956140d Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Wed, 17 Sep 2025 16:10:49 +0530 Subject: [PATCH 1/5] Changes in UI of Dashboard getplans. --- src/pages/Home/SubscriptionPlans.jsx | 220 +++++++-------------------- 1 file changed, 59 insertions(+), 161 deletions(-) diff --git a/src/pages/Home/SubscriptionPlans.jsx b/src/pages/Home/SubscriptionPlans.jsx index 0d44472c..7c06a751 100644 --- a/src/pages/Home/SubscriptionPlans.jsx +++ b/src/pages/Home/SubscriptionPlans.jsx @@ -1,113 +1,3 @@ -// // src/components/SubscriptionPlans.jsx -// import React, { useState, useEffect } from "react"; -// import axios from "axios"; - -// const SubscriptionPlans = () => { -// const [plans, setPlans] = useState([]); -// const [frequency, setFrequency] = useState(1); // 1=Monthly, 2=Quarterly, 3=Half-Yearly, 4=Yearly -// const [loading, setLoading] = useState(false); - -// useEffect(() => { -// const fetchPlans = async () => { -// try { -// setLoading(true); -// const res = await axios.get( -// `/api/market/list/subscription-plan?frequency=${frequency}` -// ); -// setPlans(res.data?.data || []); -// } catch (err) { -// console.error("Error fetching plans:", err); -// } finally { -// setLoading(false); -// } -// }; - -// fetchPlans(); -// }, [frequency]); - -// return ( -//
-// {/* Frequency Switcher */} -//
-//
-// {["Monthly", "Quarterly", "Half-Yearly", "Yearly"].map((label, idx) => ( -// -// ))} -//
-//
- -// {/* Cards */} -//
-// {loading ? ( -//
Loading...
-// ) : plans.length === 0 ? ( -//
No plans found
-// ) : ( -// plans.map((plan) => ( -//
-//
-//
-//

{plan.planName}

-//

{plan.description}

-//
-// -// {plan.currency?.symbol} -// {plan.price} -// -// /mo -//
-//
-// Max Users: {plan.maxUser} | Storage: {plan.maxStorage} MB -//
-//
- -//
-//
    -// {plan.features?.modules && -// Object.values(plan.features.modules).map((mod) => ( -//
  • -// -// {mod.name}{" "} -// {mod.enabled ? ( -// Enabled -// ) : ( -// Disabled -// )} -//
  • -// ))} -//
  • -// -// Support:{" "} -// {plan.features?.supports?.prioritySupport -// ? "Priority" -// : plan.features?.supports?.phoneSupport -// ? "Phone & Email" -// : "Email Only"} -//
  • -//
-//
- -//
-// -//
-//
-//
-// )) -// )} -//
-//
-// ); -// }; - -// export default SubscriptionPlans; - import React, { useState, useEffect } from "react"; import axios from "axios"; @@ -120,11 +10,10 @@ const SubscriptionPlans = () => { const fetchPlans = async () => { try { setLoading(true); - const res = await axios.get(`http://localhost:5032/api/market/list/subscription-plan?frequency=${frequency}`, { - headers: { - "Content-Type": "application/json" - } - }); + const res = await axios.get( + `http://localhost:5032/api/market/list/subscription-plan?frequency=${frequency}`, + { headers: { "Content-Type": "application/json" } } + ); setPlans(res.data?.data || []); } catch (err) { console.error("Error fetching plans:", err); @@ -155,7 +44,7 @@ const SubscriptionPlans = () => { key={idx} type="button" className={`btn btn-${frequency === idx ? "primary" : "outline-secondary"}`} - onClick={() => setFrequency(idx)} // use idx directly (0,1,2,3) + onClick={() => setFrequency(idx)} > {label} @@ -163,7 +52,6 @@ const SubscriptionPlans = () => { - {/* Cards */}
{loading ? ( @@ -173,54 +61,65 @@ const SubscriptionPlans = () => { ) : ( plans.map((plan) => (
-
-
-

{plan.planName}

-

{plan.description}

-
- - {plan.currency?.symbol}{plan.price} - - /{frequencyLabel(frequency)} -
-
- Max Users: {plan.maxUser} | Storage: {plan.maxStorage} MB +
+ {/* Header */} +
+ +
+

+ {plan.planName} +

+

{plan.description}

-
-
    - {plan.features?.modules && - Object.values(plan.features.modules).map((modGroup) => - Object.values(modGroup).map((mod) => - mod && mod.name ? ( -
  • - - {mod.name}{" "} - {mod.enabled ? ( - Enabled - ) : ( - Disabled - )} -
  • - ) : null - ) - )} - -
  • - - Support:{" "} - {plan.features?.supports?.prioritySupport - ? "Priority" - : plan.features?.supports?.phoneSupport - ? "Phone & Email" - : "Email Only"} -
  • -
+ {/* Price */} +
+

+ {plan.currency?.symbol} {plan.price} +

-
- + {/* Storage & Trial */} +
+
+ + Storage {plan.maxStorage} MB +
+
+ + Trial Days {plan.trialDays} +
+
+ + {/* Features */} +
+ Features +
+
    + {plan.features?.modules && + Object.values(plan.features.modules).map((mod) => + mod && mod.name ? ( +
  • + {mod.enabled ? ( + + ) : ( + + )} + {mod.name} +
  • + ) : null + )} +
+ + {/* Button */} +
+
@@ -232,4 +131,3 @@ const SubscriptionPlans = () => { }; export default SubscriptionPlans; - -- 2.43.0 From df9107f0d830a51dcdb5f4fc5a32904b368ab905 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Wed, 17 Sep 2025 16:49:52 +0530 Subject: [PATCH 2/5] Changes in UI of Subscription-plan. --- src/pages/Home/SubscriptionPlans.jsx | 45 +++++++++++++++------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/src/pages/Home/SubscriptionPlans.jsx b/src/pages/Home/SubscriptionPlans.jsx index 7c06a751..6799efb6 100644 --- a/src/pages/Home/SubscriptionPlans.jsx +++ b/src/pages/Home/SubscriptionPlans.jsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from "react"; import axios from "axios"; +import { Link } from "react-router-dom"; const SubscriptionPlans = () => { const [plans, setPlans] = useState([]); @@ -26,10 +27,10 @@ const SubscriptionPlans = () => { const frequencyLabel = (freq) => { switch (freq) { - case 0: return "mo"; + case 0: return "1mo"; case 1: return "3mo"; case 2: return "6mo"; - case 3: return "yr"; + case 3: return "1yr"; default: return "mo"; } }; @@ -61,28 +62,25 @@ const SubscriptionPlans = () => { ) : ( plans.map((plan) => (
-
+
{/* Header */} -
- -
-

- {plan.planName} -

-

{plan.description}

-
+
+ +

{plan.planName}

+

{plan.description}

{/* Price */} -
-

+
+

{plan.currency?.symbol} {plan.price} + / {frequencyLabel(frequency)}

{/* Storage & Trial */} -
-
+
+
Storage {plan.maxStorage} MB
@@ -92,17 +90,18 @@ const SubscriptionPlans = () => {
+ {/* Features */} -
+
Features
-
    +
      {plan.features?.modules && Object.values(plan.features.modules).map((mod) => mod && mod.name ? (
    • {mod.enabled ? ( @@ -117,15 +116,19 @@ const SubscriptionPlans = () => { {/* Button */}
      - + + Enquiry +

)) )}
+
); }; -- 2.43.0 From 1c0e8655c4ba177083f515ab0fef0f905bf55e05 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Wed, 17 Sep 2025 17:09:56 +0530 Subject: [PATCH 3/5] Changes in Login-form hide/unhide button add secondary. --- src/pages/authentication/LoginPage.jsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/pages/authentication/LoginPage.jsx b/src/pages/authentication/LoginPage.jsx index db99e6a1..3e331376 100644 --- a/src/pages/authentication/LoginPage.jsx +++ b/src/pages/authentication/LoginPage.jsx @@ -136,7 +136,7 @@ const LoginPage = () => { )}
*/} -
+
@@ -146,7 +146,8 @@ const LoginPage = () => { type={hidepass ? "password" : "text"} autoComplete="new-password" id="password" - className="form-control form-control-xl shadow-none" + className={`form-control form-control-xl shadow-none ${errors.password ? "is-invalid" : "" + }`} name="password" {...register("password")} placeholder="••••••••••••" @@ -155,7 +156,7 @@ const LoginPage = () => {
+ + {/* ✅ Error message */} + {errors.password && ( +
+ {errors.password.message} +
+ )}
+ {/* Remember Me + Forgot Password */}
-- 2.43.0 From fd36298543cc3fbc04ea5698b7b21a5403958068 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Thu, 18 Sep 2025 12:07:46 +0530 Subject: [PATCH 4/5] Changes in UI of Landing Page subscription and add skeleton --- src/pages/Home/PlanCardSkeleton.jsx | 44 ++++++++++++++++++++++++++++ src/pages/Home/SubscriptionPlans.jsx | 23 +++++++++------ 2 files changed, 58 insertions(+), 9 deletions(-) create mode 100644 src/pages/Home/PlanCardSkeleton.jsx diff --git a/src/pages/Home/PlanCardSkeleton.jsx b/src/pages/Home/PlanCardSkeleton.jsx new file mode 100644 index 00000000..837ea686 --- /dev/null +++ b/src/pages/Home/PlanCardSkeleton.jsx @@ -0,0 +1,44 @@ +import React from "react"; + +const SubscriptionPlanSkeleton = () => { + return ( +
+
+ {/* Header */} +
+
+
+
+
+ + {/* Price */} +
+
+
+ + {/* Storage & Trial */} +
+
+
+
+ + {/* Features */} +
+ Features +
+
    + {[1, 2, 3].map((i) => ( +
  • +
    +
  • + ))} +
+ + {/* Button */} +
+
+
+ ); +}; + +export default SubscriptionPlanSkeleton; diff --git a/src/pages/Home/SubscriptionPlans.jsx b/src/pages/Home/SubscriptionPlans.jsx index 6799efb6..24be62f9 100644 --- a/src/pages/Home/SubscriptionPlans.jsx +++ b/src/pages/Home/SubscriptionPlans.jsx @@ -1,6 +1,7 @@ import React, { useState, useEffect } from "react"; import axios from "axios"; import { Link } from "react-router-dom"; +import PlanCardSkeleton from "./PlanCardSkeleton"; const SubscriptionPlans = () => { const [plans, setPlans] = useState([]); @@ -27,10 +28,10 @@ const SubscriptionPlans = () => { const frequencyLabel = (freq) => { switch (freq) { - case 0: return "1mo"; - case 1: return "3mo"; - case 2: return "6mo"; - case 3: return "1yr"; + case 0: return "1 mo"; + case 1: return "3 mo"; + case 2: return "6 mo"; + case 3: return "1 yr"; default: return "mo"; } }; @@ -54,15 +55,20 @@ const SubscriptionPlans = () => {
{/* Cards */} -
+
{loading ? ( -
Loading...
+ // Show 3 skeletons + <> + + + + ) : plans.length === 0 ? (
No plans found
) : ( plans.map((plan) => (
-
+
{/* Header */}
@@ -90,7 +96,6 @@ const SubscriptionPlans = () => {
- {/* Features */}
Features @@ -120,7 +125,7 @@ const SubscriptionPlans = () => { to="/auth/reqest/demo" className="btn btn-outline-primary w-100 fw-bold" > - Enquiry + Request a Demo
-- 2.43.0 From a27b8571b555fe82497fe283127f1fb82ed7192e Mon Sep 17 00:00:00 2001 From: Vikas Nale Date: Thu, 18 Sep 2025 12:35:04 +0530 Subject: [PATCH 5/5] cosmatic changes --- src/pages/Home/LandingPage.css | 3 +- src/pages/Home/LandingPage.jsx | 95 ++++++++++++++++++++-------------- 2 files changed, 59 insertions(+), 39 deletions(-) diff --git a/src/pages/Home/LandingPage.css b/src/pages/Home/LandingPage.css index 318eadd5..35b05e9e 100644 --- a/src/pages/Home/LandingPage.css +++ b/src/pages/Home/LandingPage.css @@ -299,7 +299,7 @@ nav.layout-navbar.navbar-active::after { color: #d3d4dc; } .landing-footer .footer-bottom { - background-color: #282c3e; + background-color: #f44336; } .landing-footer .footer-link { transition: all 0.2s ease-in-out; @@ -312,6 +312,7 @@ nav.layout-navbar.navbar-active::after { padding-bottom: 1.3rem; border-top-left-radius: 1.75rem; border-top-right-radius: 1.75rem; + background-color: #f44336; } @media (max-width: 767.98px) { .landing-footer .footer-top { diff --git a/src/pages/Home/LandingPage.jsx b/src/pages/Home/LandingPage.jsx index 6d5a44ca..35b01202 100644 --- a/src/pages/Home/LandingPage.jsx +++ b/src/pages/Home/LandingPage.jsx @@ -591,14 +591,14 @@ const LandingPage = () => { FAQ

- Frequently asked - - questions - + Questions + {/* laptop charging + /> */}

@@ -816,19 +816,26 @@ const LandingPage = () => {

+
+ hero elements +
{" "}

- Let's work - laptop charging + /> */} - together + Together

Any question or remark? just write us a message @@ -873,15 +880,15 @@ const LandingPage = () => {

-

+

Ready to Get Started? -
-
- Start your project with a 14-day free trial
- +
+ Start your project with a free trial +
+ {/*
Get Started - {" "} + {" "} */} {
-
- hero elements -
@@ -1056,7 +1056,10 @@ const LandingPage = () => { {/* Footer: Start */} -- 2.43.0