src/components/uiable/blocks/faq/faq-9/faq-9.tsx
// shadcn
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const items = [
{
question: "What Features Does Your Platform Offer?",
answer:
"Our platform provides project management, team collaboration, workflow automation, analytics, and integrations with popular tools to help your team work more efficiently.",
colorClass: "bg-pink-500 text-pink-500",
},
{
question: "Is My Data Secure?",
answer:
"Yes. We use industry-standard security practices, encrypted connections, and secure cloud infrastructure to keep your data protected at all times.",
colorClass: "bg-purple-500 text-purple-500",
},
{
question: "Can I Upgrade or Downgrade My Plan Later?",
answer:
"Absolutely. You can change your subscription plan at any time. Your billing will be adjusted automatically based on the new plan you choose.",
colorClass: "bg-blue-500 text-blue-500",
},
{
question: "Does Your Platform Support Team Collaboration?",
answer:
"Yes. Invite team members, assign roles, share projects, leave comments, and collaborate in real time from a single workspace.",
colorClass: "bg-cyan-500 text-cyan-500",
},
{
question: "Do You Offer a Free Trial?",
answer:
"Yes. You can explore all core features with our free trial before deciding on a paid subscription. No long-term commitment is required.",
colorClass: "bg-lime-500 text-lime-500",
},
{
question: "How Can I Contact Customer Support?",
answer:
"Our support team is available through live chat, email, and our help center. We're here to assist you with any questions or technical issues.",
colorClass: "bg-amber-500 text-amber-500",
},
]
// ------------------------------ | FAQ - 9 | ------------------------------ //
export default function Faq9() {
return (
<div className="relative overflow-hidden bg-slate-900 py-24 sm:py-32">
<div className="absolute top-2/4 right-0 z-10 size-45 -translate-y-2/4 rounded-full bg-blue-500 blur-[150px]"></div>
<div className="relative z-30 container mx-auto px-6 lg:px-8">
<div className="grid grid-cols-12 items-start gap-6 md:gap-12">
<div className="col-span-12 lg:col-span-5">
<div className="flex max-w-100 flex-col items-start gap-3 sm:gap-6">
<h2 className="text-lg font-medium text-slate-100 sm:text-3xl">
Got Questions? We've Got Answers
</h2>
<p className="max-w-200 text-slate-300">
Browse our frequently asked questions to find quick, clear
answers and helpful information.
</p>
<Button
size="lg"
className="rounded-full border-0 border-b-2 border-b-blue-700 bg-blue-500 hover:translate-y-1 hover:opacity-90 hover:shadow-none"
>
Still not get answers?
</Button>
</div>
</div>
<div className="col-span-12 lg:col-span-7">
<div className="mx-auto w-330 max-w-full">
<Accordion
defaultValue={["item-1"]}
className="gap-2 overflow-hidden border-0"
>
{items.map((item, index) => (
<AccordionItem
key={index}
value={`item-${index + 1}`}
className="relative gap-2 overflow-hidden rounded-sm bg-slate-800 p-4 transition-all duration-300 not-last:border-b-0 sm:p-6"
>
<div
className={`absolute inset-y-0 left-0 w-1 ${item.colorClass}`}
></div>
<AccordionTrigger className="p-0 text-lg [&>svg]:hidden!">
<div className="flex w-full flex-row items-center gap-4">
<div className="flex grow flex-col gap-0.5">
<p className="text-base text-slate-100 transition-all group-hover:text-slate-100 md:text-lg">
{item.question}
</p>
</div>
<div className="shrink-0">
<svg
className={`size-6 ${item.colorClass} bg-transparent! transition-all duration-300 group-aria-expanded/accordion-trigger:rotate-90 md:size-8`}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
>
<path
fill="currentColor"
d="M16.19 2H7.81C4.17 2 2 4.17 2 7.81v8.37C2 19.83 4.17 22 7.81 22h8.37c3.64 0 5.81-2.17 5.81-5.81V7.81C22 4.17 19.83 2 16.19 2z"
className="opacity-10"
></path>
<path
fill="currentColor"
d="M10.74 16.28c-.19 0-.38-.07-.53-.22a.754.754 0 010-1.06l3-3-3-3a.754.754 0 010-1.06c.29-.29.77-.29 1.06 0l3.53 3.53c.29.29.29.77 0 1.06l-3.53 3.53c-.15.15-.34.22-.53.22z"
></path>
</svg>
</div>
</div>
</AccordionTrigger>
<AccordionContent className="p-0 text-slate-300">
<div className="mt-4 w-full rounded-lg bg-slate-700 p-4 sm:mt-6 sm:p-6">
{item.answer}
</div>
</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
</div>
</div>
</div>
</div>
)
}




























