From 36911b5701edee120e75934285ed4d5152171be0 Mon Sep 17 00:00:00 2001 From: Atharva Date: Sun, 23 Feb 2025 07:33:20 +0530 Subject: [PATCH] Feat:Added loader animation --- Frontend/src/pages/Home/Testimonial.jsx | 169 +++++++++++++----- .../src/pages/UserPanel/Farm/CropTable.jsx | 9 +- 2 files changed, 126 insertions(+), 52 deletions(-) diff --git a/Frontend/src/pages/Home/Testimonial.jsx b/Frontend/src/pages/Home/Testimonial.jsx index 43d459f..26fcb74 100644 --- a/Frontend/src/pages/Home/Testimonial.jsx +++ b/Frontend/src/pages/Home/Testimonial.jsx @@ -29,24 +29,24 @@ const ScrollReveal = ({ children, direction = "left" }) => { ); }; - const Testimonial = () => { + const myRef = document.querySelector(".scrollable-div"); - const myRef = document.querySelector('.scrollable-div') - return ( <>
-

WHY CHOOSE US?

+

+ WHY CHOOSE US? +

{

- -
-
+ -
Excellent Dashboards
+
+ Excellent Dashboards +
-

Our descriptive dashboards give insights into your crop's health and keeps track of your burning expenses

- - Check Out - - -
- - - - - -
-
+ -
Crop Planner
+
+ {" "} + Crop Disease Prediction{" "} +
-

Based on previous season's crop and used pertilizers and pesticides, plan what crops would best suit the present state of your soil

- - Check Out - +

+ Predict the possible crop diseases based on their shown + symptoms +

+
+ Check Out +
+ +
+ + +
+ Crop Planner +
+
+

+ Based on previous season's crop and used pertilizers and + pesticides, plan what crops would best suit the present state + of your soil +

+ + Check Out + + +
+
diff --git a/Frontend/src/pages/UserPanel/Farm/CropTable.jsx b/Frontend/src/pages/UserPanel/Farm/CropTable.jsx index b200dd9..07ce6ea 100644 --- a/Frontend/src/pages/UserPanel/Farm/CropTable.jsx +++ b/Frontend/src/pages/UserPanel/Farm/CropTable.jsx @@ -1,4 +1,5 @@ import React, { useState, useEffect } from "react"; +import Laoder from "../../../components/Laoder"; const CropTable = ({ farmId }) => { const [crops, setCrops] = useState([]); @@ -48,11 +49,7 @@ const CropTable = ({ farmId }) => { }, []); if (loading) { - return ( -
- Loading crops... -
- ); + return ; } if (error) { @@ -161,7 +158,7 @@ const CropTable = ({ farmId }) => {