From f01b48b35f3732935c63b42f0bee70cd8887ec49 Mon Sep 17 00:00:00 2001 From: sanjidaRimi023 Date: Fri, 1 May 2026 22:55:38 +0600 Subject: [PATCH] refector:redesign faq section --- src/components/FAQSection.tsx | 213 +++++++++++++++++++--------------- 1 file changed, 121 insertions(+), 92 deletions(-) diff --git a/src/components/FAQSection.tsx b/src/components/FAQSection.tsx index 716526d..7fb60cf 100644 --- a/src/components/FAQSection.tsx +++ b/src/components/FAQSection.tsx @@ -4,135 +4,164 @@ import { AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; -import { motion, useInView } from "framer-motion"; -import { ArrowRight, Mail } from "lucide-react"; -import { useRef } from "react"; +import { motion, useInView, useScroll, useSpring } from "framer-motion"; +import { ArrowUpRight, Sparkles,ShieldQuestion } from "lucide-react"; +import { useRef, useState } from "react"; const faqs = [ { question: "What services does TechZaa offer?", answer: - "We provide comprehensive technology solutions including web development, mobile app development, AI/ML solutions, and cloud infrastructure services. Our team specializes in creating custom software tailored to your business needs.", + "We provide comprehensive technology solutions including web development, mobile app development, AI/ML solutions, and cloud infrastructure services.", + category: "Services", }, { question: "How long does a typical project take?", answer: - "Project timelines vary based on complexity and scope. A simple website might take 4-6 weeks, while complex enterprise applications can take 3-6 months. We provide detailed timelines during our initial consultation and keep you updated throughout the development process.", + "Timelines vary: simple sites take 4-6 weeks, while enterprise apps take 3-6 months. We prioritize agile delivery and constant feedback.", + category: "Process", }, { question: "What is your development process?", answer: - "We follow an agile methodology with iterative development cycles. Our process includes: Discovery & Planning, UI/UX Design, Development Sprints, Quality Assurance, Deployment, and Ongoing Support. We maintain transparent communication with regular updates and demos.", + "We follow an agile methodology: Discovery, UI/UX Design, Development Sprints, QA, Deployment, and 24/7 Ongoing Support.", + category: "Workflow", }, { - question: "Do you provide ongoing maintenance and support?", + question: "Do you provide maintenance?", answer: - "Yes! We offer comprehensive maintenance packages that include bug fixes, security updates, performance optimization, and feature enhancements. Our support team is available to ensure your application runs smoothly 24/7.", + "Yes. Our maintenance packages include security updates, performance optimization, and feature enhancements to keep you ahead.", + category: "Support", }, { question: "How do you handle project pricing?", answer: - "We offer flexible pricing models including fixed-price projects, time & materials, and dedicated team arrangements. After understanding your requirements, we provide transparent quotes with no hidden costs. Contact us for a free consultation and estimate.", - }, - { - question: "What industries do you serve?", - answer: - "We've delivered successful projects across fintech, healthcare, e-commerce, education, real estate, and SaaS industries. Our diverse experience allows us to bring cross-industry insights and best practices to every project.", + "Flexible models: fixed-price, time & materials, or dedicated teams. We ensure 100% transparency with no hidden costs.", + category: "Billing", }, ]; export default function FAQSection() { - const ref = useRef(null); - const isInView = useInView(ref, { once: true, margin: "-100px" }); + const [activeItem, setActiveItem] = useState(undefined); + const containerRef = useRef(null); + const isInView = useInView(containerRef, { once: true, amount: 0.2 }); + + // Progress bar for reading engagement + const { scrollYProgress } = useScroll({ + target: containerRef, + offset: ["start end", "end start"], + }); + const scaleX = useSpring(scrollYProgress, { stiffness: 100, damping: 30 }); return (
- {/* Decorative gradients */} -
-
+ {/* Dynamic Background Elements */} +
+
+
+
-
-
- {/* Left Column - Header and CTA */} - -
- +
+
+
+
+
+ +
+ Got Questions? -

- Frequently Asked
- Questions -

-

- Everything you need to know about working with TechZaa. Can't - find what you're looking for? Reach out to our team. -

- {/* Support CTA Card */} -
-
-
- -
-
-

- Still have questions? -

-

- We're here to help you out with any queries. -

-
-
- - Contact Support - - -
- +

+ Clear Answers
+ + For Big Ideas. + +

- {/* Right Column - Accordion */} - + We believe in radical transparency. If you don't find your answer + here, our engineers are just a click away. +

+
+ + {/* Bottom Section: Interactive Accordion */} + - - {faqs.map((faq, index) => ( - ( + + - - - {faq.question} - - + +
+ +
+ + {faq.category} + + + {faq.question} + +
+
+
+ +
{faq.answer} - - - - ))} - - +
+ +
+
+
+
+
+ ))} +
+ + {/* Bottom Indicator */} +