import React, { useState } from "react"; import { motion } from "framer-motion"; import LazyImage from "../common/LazyImage"; import ProfileIcon from "../../assets/images/profileicon.png"; import HoroscodeIcon from "../../assets/images/horoscopericon.png"; import FamilyIcon from "../../assets/images/homeicon.png"; import Box from "@mui/material/Box"; import { useNavigate } from "react-router-dom"; import AstroChatUI from "./AstroChatUI"; import MembershipCard from "./MembershipCard"; const ProfileCompletion = () => { const [completeness, setCompleteness] = useState(30); const navigate = useNavigate(); const cards = [ { id: 1, icon: ProfileIcon, title: "Add Photo(s)", bgColor: "bg-green-50", iconColor: "text-green-600", borderColor: "border-green-200", url:"/profile-edit" }, { id: 2, icon: HoroscodeIcon, title: "Add Horoscope", bgColor: "bg-purple-50", iconColor: "text-purple-600", borderColor: "border-purple-200", url:"/horoscoper-generate" }, { id: 3, icon: FamilyIcon, title: "Family Details", bgColor: "bg-red-50", iconColor: "text-red-600", borderColor: "border-red-200", url:"/profile-edit" }, ]; const container = { hidden: { opacity: 0 }, show: { opacity: 1, transition: { staggerChildren: 0.1, }, }, }; const item = { hidden: { opacity: 0, y: 20 }, show: { opacity: 1, y: 0 }, }; return ( <>
{/* Header Section */}
Complete Your Profile {/* Progress Bar Section */}
Profile completeness score {completeness}%
{/* Progress Bar */}
{/* Cards Section */}
{/* Desktop Logo */} {/* */}
{cards.map((card, index) => (
navigate(card.url)} className=" border border-1 border-red-50 bg-white rounded-3xl hover:bg-red-50 hover:border-2 flex flex-col items-center space-x-2 h-32 justify-center transition-colors duration-500 cursor-pointer "> {/* Icon Container */} {/* Text */} {card.title}
))}
{/* Additional Info Section */}

Complete your profile to increase visibility and get better matches

); }; export default ProfileCompletion;