diff --git a/Frontend/src/Component/Animation/Appointment.tsx b/Frontend/src/Component/Animation/Appointment.tsx index 8582441..67b6041 100644 --- a/Frontend/src/Component/Animation/Appointment.tsx +++ b/Frontend/src/Component/Animation/Appointment.tsx @@ -1,69 +1,67 @@ import { useState, useEffect } from 'react'; -import image1 from '../../Assets/image (1).jpg' -import image2 from '../../Assets/image (2).jpg' -import image3 from '../../Assets/image.jpg' +import image1 from '../../Assets/image (1).jpg'; +import image2 from '../../Assets/image (2).jpg'; +import image3 from '../../Assets/image.jpg'; import { useNavigate } from 'react-router-dom'; const Appointment = () => { const [currentDoctorIndex, setCurrentDoctorIndex] = useState(0); - - - const navigate = useNavigate(); - - const doctors = [ { id: 1, - name: "Dr. Arjun Sharma", + name: 'Dr. Arjun Sharma', image: image3, - description: "Certified Ayurvedic practitioner with 20+ years of experience in holistic healing and natural therapies.", - specialist: "Ayurvedic Specialist", + description: + 'Certified Ayurvedic practitioner with 20+ years of experience in holistic healing and natural therapies.', + specialist: 'Ayurvedic Specialist', rating: 4.9, - location: "123 Wellness Street, Delhi, India" + location: '123 Wellness Street, Delhi, India', }, { id: 2, - name: "Dr. Meera Kapoor", + name: 'Dr. Meera Kapoor', image: image1, - description: "Expert in Panchakarma therapy and Ayurvedic diet planning for chronic diseases.", - specialist: "Panchakarma Specialist", + description: + 'Expert in Panchakarma therapy and Ayurvedic diet planning for chronic diseases.', + specialist: 'Panchakarma Specialist', rating: 4.8, - location: "456 Ayurveda Avenue, Mumbai, India" + location: '456 Ayurveda Avenue, Mumbai, India', }, { id: 3, - name: "Dr. Rajesh Verma", + name: 'Dr. Rajesh Verma', image: image2, - description: "Specialist in Ayurvedic treatments for skin disorders and natural wellness therapies.", - specialist: "Ayurvedic Dermatologist", + description: + 'Specialist in Ayurvedic treatments for skin disorders and natural wellness therapies.', + specialist: 'Ayurvedic Dermatologist', rating: 4.7, - location: "789 Holistic Lane, Bangalore, India" + location: '789 Holistic Lane, Bangalore, India', }, ]; useEffect(() => { const interval = setInterval(() => { - setCurrentDoctorIndex((prevIndex) => + setCurrentDoctorIndex((prevIndex) => prevIndex === doctors.length - 1 ? 0 : prevIndex + 1 ); }, 10000); - + return () => clearInterval(interval); }, [doctors.length]); const doctor = doctors[currentDoctorIndex]; - const renderStars = (rating) => { + const renderStars = (rating: number) => { const fullStars = Math.floor(rating); const hasHalfStar = rating % 1 >= 0.5; - + return (
{[...Array(5)].map((_, i) => ( - {i < fullStars ? "★" : i === fullStars && hasHalfStar ? "½" : "☆"} + {i < fullStars ? '★' : i === fullStars && hasHalfStar ? '½' : '☆'} ))} {rating.toFixed(1)} @@ -72,77 +70,88 @@ const Appointment = () => { }; return ( -
-
-
- -
-
- +
+ {/* Card Layout */} +
+ {/* Doctor Image */} +
+
+ {doctor.name}
- -
+ + {/* Doctor Info */} +
-

{doctor.name}

+

+ {doctor.name} +

{doctor.specialist}

{doctor.description}

-
- {renderStars(doctor.rating)} -
+
{renderStars(doctor.rating)}
- - - + + +

{doctor.location}

- - +
- + + {/* Dots */}
{doctors.map((_, index) => (
+ {/* Staggered Card Layout */} +
+

+ Explore Ayurvedic Remedies + +

+ +
+
+ {diseases.map((disease, idx) => ( +
handleCardClick(disease, idx)} + className={`absolute transition-all duration-300 cursor-pointer ${getCardWidth()} bg-white border border-amber-200 rounded-xl p-3 sm:p-4 shadow-md hover:shadow-xl`} + style={getCardStyle(idx)} + > +
+
+
+ {disease.alt_text +
+ {disease.alt_text || 'Remedy'} +
+
+ + + {/* Accessible caption (screen readers only) */} +
+ {disease.alt_text || 'Remedy'} +
+
+ + + {idx === activeCardIndex && ( +
+ View Details

{disease.alt_text || 'Ayurvedic Treatment'} diff --git a/Frontend/src/Component/Aurleaf/Home.tsx b/Frontend/src/Component/Aurleaf/Home.tsx index 4ad332d..e75bb99 100644 --- a/Frontend/src/Component/Aurleaf/Home.tsx +++ b/Frontend/src/Component/Aurleaf/Home.tsx @@ -4,112 +4,53 @@ import StepProcess from '../Animation/StepProcess'; import AyurvedicHealthSection from '../Animation/Infinte'; import ReviewForm from '../Rating/ReviewForm'; - - - - - export default function Home() { - - - - - return ( - <> - - - - -
-

- - Ayufit: AI-Powered Diet & Fitness for Better Health -

- -

- Struggling with diabetes, BP, or asthma? Get AI-powered diet & workout plans backed by Ayurveda! -

- - -
- -
-
- - - - - - - - - - - - - - - -
-

- Ayumed: Your One-Stop Shop for Health & Wellness

- -

- Shop medical essentials and Ayurvedic solutions for a healthier life—trusted, safe, and effective. -

- - - -
- -
-
- - - - - - -
-

- AyuDoctor: Find & Book Ayurvedic Doctors Near You -

- -

- Connect with expert Ayurvedic doctors and book hassle-free appointments for natural healing and wellness. -

- - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - + {/* Hero / Ayurvedic Health Section */} + + + {/* AyuFit Section */} +
+

+ Ayufit: AI-Powered Diet & Fitness for Better Health +

+

+ Struggling with diabetes, BP, or asthma? Get AI-powered diet & workout plans backed by Ayurveda! +

+
+ +
+
+ + {/* AyuMed Section */} +
+

+ Ayumed: Your One-Stop Shop for Health & Wellness +

+

+ Shop medical essentials and Ayurvedic solutions for a healthier life—trusted, safe, and effective. +

+
+ +
+
+ + {/* AyuDoctor Section */} +
+

+ AyuDoctor: Find & Book Ayurvedic Doctors Near You +

+

+ Connect with expert Ayurvedic doctors and book hassle-free appointments for natural healing and wellness. +

+
+ +
+
+ + {/* Reviews Section */} + ); } diff --git a/Frontend/src/Component/Footer/Foot.tsx b/Frontend/src/Component/Footer/Foot.tsx index 5ce0423..32d1695 100644 --- a/Frontend/src/Component/Footer/Foot.tsx +++ b/Frontend/src/Component/Footer/Foot.tsx @@ -1,5 +1,6 @@ -import { Link, NavLink } from "react-router-dom"; -import { FaTwitter, FaLinkedin, FaGithub } from "react-icons/fa"; +import { Link, NavLink } from "react-router-dom"; +import { Link, NavLink } from "react-router-dom"; // React Router DOM +import { FaTwitter, FaLinkedin, FaGithub } from "react-icons/fa"; // Only required social icons import logo from "../../Assets/logo.png"; export default function Foot() { @@ -7,6 +8,7 @@ export default function Foot() {