diff --git a/src/components/ProjectsSection.tsx b/src/components/ProjectsSection.tsx index 2be02f2..eaf96d5 100644 --- a/src/components/ProjectsSection.tsx +++ b/src/components/ProjectsSection.tsx @@ -3,47 +3,31 @@ import { motion, useInView } from 'framer-motion'; import { ArrowRight, ExternalLink } from 'lucide-react'; import { Link } from 'react-router-dom'; import { Button } from '@/components/ui/button'; +import { useProjects } from '@/hooks/queires/useProjects'; -const projects = [ - { - title: 'FinTech Dashboard', - category: 'Web Application', - image: 'https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&h=400&fit=crop', - color: 'from-neon-blue/80', - }, - { - title: 'Health Tracker App', - category: 'Mobile App', - image: 'https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?w=600&h=400&fit=crop', - color: 'from-neon-purple/80', - }, - { - title: 'AI Content Platform', - category: 'AI Solution', - image: 'https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&h=400&fit=crop', - color: 'from-neon-green/80', - }, - { - title: 'E-Commerce Suite', - category: 'Web Application', - image: 'https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=600&h=400&fit=crop', - color: 'from-neon-blue/80', - }, - { - title: 'Smart IoT Platform', - category: 'Cloud Solution', - image: 'https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600&h=400&fit=crop', - color: 'from-neon-purple/80', - }, - { - title: 'Learning Management', - category: 'Web Application', - image: 'https://images.unsplash.com/photo-1501504905252-473c47e087f8?w=600&h=400&fit=crop', - color: 'from-neon-green/80', - }, + + +const gradientColors = [ + "from-neon-blue/80", + "from-neon-purple/80", + "from-neon-green/80", + "from-neon-pink/80" ]; export default function ProjectsSection() { + + const { data: projectsData } = useProjects({ + fields: "category, title, image", + limit: 6 + }); + + + const projects = projectsData?.data.data.result + console.log(projects); + + + + const ref = useRef(null); const isInView = useInView(ref, { once: true, margin: '-100px' }); @@ -72,52 +56,58 @@ export default function ProjectsSection() { Our Projects

- Explore our latest work and see how we've helped businesses + Explore our latest work and see how we've helped businesses transform their digital presence.

{/* Projects Grid */}
- {projects.map((project, index) => ( - - {/* Image */} -
- {project.title} { + const color = gradientColors[index % gradientColors.length]; + + return ( + + {/* Image */} +
+ {project.title} +
+ + {/* Overlay */} +
-
- {/* Overlay */} -
- - {/* Content */} -
-
- - {project.category} - -

{project.title}

-
- View Project - + {/* Content */} +
+
+ + {project.category} + +

{project.title}

+
+ View Project + +
-
- {/* Border glow effect */} -
- - ))} + {/* Border glow effect */} +
+ + ); + })}
{/* See All Button */} diff --git a/src/components/TestimonialsSection.tsx b/src/components/TestimonialsSection.tsx index dbd38b0..c8e62a0 100644 --- a/src/components/TestimonialsSection.tsx +++ b/src/components/TestimonialsSection.tsx @@ -6,49 +6,6 @@ import useEmblaCarousel from 'embla-carousel-react'; import Autoplay from 'embla-carousel-autoplay'; import { useReviews } from '@/hooks/queires/useReviews'; -const testimonials = [ - { - id: 1, - name: 'Jennifer Martinez', - role: 'CEO, InnovateTech', - avatar: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=150&h=150&fit=crop&crop=face', - rating: 5, - quote: 'TechZaa transformed our entire digital infrastructure. Their AI solutions increased our operational efficiency by 40%. Absolutely incredible team to work with!', - }, - { - id: 2, - name: 'Michael Chen', - role: 'CTO, FutureScale', - avatar: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&h=150&fit=crop&crop=face', - rating: 5, - quote: 'The mobile app they developed for us exceeded all expectations. User engagement increased by 200% within the first month. Highly recommend their services.', - }, - { - id: 3, - name: 'Sarah Thompson', - role: 'Director of Operations, CloudFirst', - avatar: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=150&h=150&fit=crop&crop=face', - rating: 5, - quote: 'Their cloud migration expertise saved us countless hours and reduced our infrastructure costs by 35%. Professional, efficient, and always available.', - }, - { - id: 4, - name: 'David Rodriguez', - role: 'Founder, StartupLabs', - avatar: 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop&crop=face', - rating: 5, - quote: 'From concept to launch, TechZaa was with us every step. Their attention to detail and innovative approach made our product stand out in a crowded market.', - }, - { - id: 5, - name: 'Emily Watson', - role: 'VP Engineering, DataFlow', - avatar: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150&h=150&fit=crop&crop=face', - rating: 5, - quote: 'The best tech partner we\'ve ever worked with. Their team understood our vision and delivered a solution that perfectly aligned with our business goals.', - }, -]; - export default function TestimonialsSection() { const {data: reveiwsData} = useReviews();