import { Button } from "@/components/ui/button"; import { useProjects } from "@/hooks/queires/useProjects"; import { motion, useInView } from "framer-motion"; import { ArrowRight } from "lucide-react"; import { useRef } from "react"; import { Link } from "react-router-dom"; import { ProjectCard } from "./ProjectCard"; import PremiumBadge from "../shared/PremiumBadge"; const gradientColors = [ "from-neon-blue/90", "from-neon-purple/90", "from-neon-green/90", "from-neon-pink/90", ]; export default function ProjectsSection() { const { data: projectsData } = useProjects({ fields: "category, title, image, liveUrl", limit: 6, }); const projects = projectsData?.data.data.result || []; const ref = useRef(null); const isInView = useInView(ref, { once: true, margin: "-100px" }); return (
{/* Background Pattern */}
{/* Section Header */}

Featured Projects

Crafted with passion. Delivered with excellence.

{/* Projects Grid */}
{projects.map((project, index) => { const color = gradientColors[index % gradientColors.length]; return ( ); })}
{/* See All Button */}
); }