diff --git a/Frontend/public/images/plant-1573.svg b/Frontend/public/images/plant-1573.svg new file mode 100644 index 0000000..1570b1f --- /dev/null +++ b/Frontend/public/images/plant-1573.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/Frontend/src/components/Piechart.jsx b/Frontend/src/components/Piechart.jsx index 3c1a540..000802c 100644 --- a/Frontend/src/components/Piechart.jsx +++ b/Frontend/src/components/Piechart.jsx @@ -93,7 +93,7 @@ const Piechart = () => { ); chart.render(); - // Get all the checkboxes by their class name + // Get all the checkboxes by their className name const checkboxes = document.querySelectorAll( '#devices input[type="checkbox"]' ); @@ -130,16 +130,16 @@ const Piechart = () => { return ( <> -
-
-
-
+
+
+
+
Cost Analysis
-
-
+
+
-
+
-
+
@@ -279,20 +279,20 @@ const Piechart = () => {
-
+
-
-
+
+
Traffic analysis diff --git a/Frontend/src/components/TotalSpent.jsx b/Frontend/src/components/TotalSpent.jsx new file mode 100644 index 0000000..5756084 --- /dev/null +++ b/Frontend/src/components/TotalSpent.jsx @@ -0,0 +1,19 @@ +const TotalSpent = () => { + return ( + <> + +
+ 100,000 +
+

+ This is the total cost which you spent on this farm +

+
+ + ); +}; +export default TotalSpent; diff --git a/Frontend/src/main.jsx b/Frontend/src/main.jsx index 31563b6..cd79189 100644 --- a/Frontend/src/main.jsx +++ b/Frontend/src/main.jsx @@ -61,4 +61,3 @@ createRoot(document.getElementById("root")).render( ); -d; diff --git a/Frontend/src/pages/Home/Hero.jsx b/Frontend/src/pages/Home/Hero.jsx index 2534b2e..882798b 100644 --- a/Frontend/src/pages/Home/Hero.jsx +++ b/Frontend/src/pages/Home/Hero.jsx @@ -33,9 +33,9 @@ const Hero = () => { > diff --git a/Frontend/src/pages/UserPanel/Dashboard.jsx b/Frontend/src/pages/UserPanel/Dashboard.jsx index 1edadbd..996ef9c 100644 --- a/Frontend/src/pages/UserPanel/Dashboard.jsx +++ b/Frontend/src/pages/UserPanel/Dashboard.jsx @@ -1,5 +1,6 @@ import React from "react"; import Piechart from "../../components/Piechart"; +import TotalSpent from "../../components/TotalSpent"; const Dashboard = () => { return ( @@ -197,8 +198,9 @@ const Dashboard = () => {
*/} -
+
+
diff --git a/Frontend/src/pages/UserPanel/Settings.jsx b/Frontend/src/pages/UserPanel/Settings.jsx index b83ca9d..e1e47d4 100644 --- a/Frontend/src/pages/UserPanel/Settings.jsx +++ b/Frontend/src/pages/UserPanel/Settings.jsx @@ -111,9 +111,9 @@ const Settings = () => { >