new pages created
This commit is contained in:
67
app/(public)/crm/_components/FAQ.tsx
Normal file
67
app/(public)/crm/_components/FAQ.tsx
Normal file
@@ -0,0 +1,67 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { motion } from "framer-motion";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { crm, hrms } from "@/services/Constants";
|
||||
|
||||
|
||||
const FAQSection: React.FC = () => {
|
||||
return (
|
||||
<section className="py-20 px-4 bg-gradient-to-br from-gray-50 to-blue-50">
|
||||
<div className="container mx-auto max-w-4xl">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<Badge className="mb-4 bg-purple-100 text-purple-700 border-purple-200">
|
||||
FAQ
|
||||
</Badge>
|
||||
<h2 className="text-4xl md:text-5xl font-bold text-gray-900 mb-4">
|
||||
Frequently Asked{" "}
|
||||
<span className="bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
|
||||
Questions
|
||||
</span>
|
||||
</h2>
|
||||
<p className="text-xl text-gray-600">
|
||||
Everything you need to know about our CRM Software
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
<Accordion type="single" collapsible className="space-y-4">
|
||||
{crm.CRM_FAQ.map((faq, idx) => (
|
||||
<motion.div
|
||||
key={idx}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: idx * 0.1 }}
|
||||
>
|
||||
<AccordionItem
|
||||
value={`item-${idx}`}
|
||||
className="bg-white border-2 border-gray-100 rounded-xl px-6 hover:border-blue-300 transition-all shadow-sm hover:shadow-md"
|
||||
>
|
||||
<AccordionTrigger className="text-left hover:text-blue-600 text-lg font-semibold py-6">
|
||||
{faq.question}
|
||||
</AccordionTrigger>
|
||||
<AccordionContent className="text-gray-600 text-base leading-relaxed pb-6">
|
||||
{faq.answer}
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
</motion.div>
|
||||
))}
|
||||
</Accordion>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default FAQSection
|
||||
Reference in New Issue
Block a user