faqs-2

PreviousNext

Split-screen FAQ layout with bordered sections, interactive accordion, and a clean call-to-action footer.

Docs
efferdblock

Preview

Loading preview…
registry/faqs/2/faqs-section.tsx
import {
	Accordion,
	AccordionContent,
	AccordionItem,
	AccordionTrigger,
} from "@/components/ui/accordion";

export function FaqsSection() {
	return (
		<div className="mx-auto min-h-screen w-full max-w-5xl lg:border-x">
			<div className="mx-4 grid h-[calc(100vh-3.5rem)] grid-cols-1 border-x md:mx-0 md:grid-cols-2 md:border-x-0">
				<div className="space-y-4 px-4 pt-12 pb-4 md:border-r">
					<h2 className="font-black text-3xl md:text-4xl">FAQs</h2>
					<p className="text-muted-foreground">
						Here are some common questions and answers that you might encounter
						when using Efferd.
					</p>
				</div>
				<div className="place-content-center">
					<Accordion collapsible defaultValue="item-1" type="single">
						{questions.map((item) => (
							<AccordionItem
								className="first:border-t last:border-b data-[state=open]:bg-card"
								key={item.id}
								value={item.id}
							>
								<AccordionTrigger className="px-4 py-4 text-[15px] leading-6 hover:no-underline">
									{item.title}
								</AccordionTrigger>
								<AccordionContent className="px-4 pb-4 text-muted-foreground">
									{item.content}
								</AccordionContent>
							</AccordionItem>
						))}
					</Accordion>
				</div>
			</div>
			<div className="flex h-14 items-center justify-center border-t">
				<p className="text-muted-foreground">
					Can't find what you're looking for?{" "}
					<a className="text-primary hover:underline" href="#">
						Contact Us
					</a>
				</p>
			</div>
		</div>
	);
}

const questions = [
	{
		id: "item-1",
		title: "What is Efferd?",
		content:
			"Efferd is a collection of beautifully crafted Shadcn UI blocks and components, designed to help developers build modern websites with ease.",
	},
	{
		id: "item-2",
		title: "Who can benefit from Efferd?",
		content:
			"Efferd is built for founders, product teams, and agencies that want to accelerate idea validation and delivery.",
	},
	{
		id: "item-3",
		title: "What features does Efferd include?",
		content:
			"Efferd offers a collaborative workspace where you can design and build beautiful web applications, with reusable UI blocks, deployment automation, and comprehensive analytics all in one place. With Efferd, you can streamline your team’s workflow and deliver high-quality websites quickly and efficiently.",
	},
	{
		id: "item-4",
		title: "Can I customize components in Efferd?",
		content:
			"Yes. Efferd offers editable design systems and code scaffolding so you can tailor blocks to your brand and workflow.",
	},
	{
		id: "item-5",
		title: "Does Efferd integrate with my existing tools?",
		content:
			"Efferd connects with popular source control, design tools, and cloud providers to fit into your current stack.",
	},
	{
		id: "item-6",
		title: "How do I get support while using Efferd?",
		content:
			"You can access detailed docs, community forums, and dedicated customer success channels for help at any time.",
	},
	{
		id: "item-7",
		title: "How do I get started with Efferd?",
		content:
			"You can access detailed docs, community forums, and dedicated customer success channels for help at any time.",
	},
];

Installation

npx shadcn@latest add @efferd/faqs-2

Usage

import { Faqs2 } from "@/components/faqs-2"
<Faqs2 />