chore: Docs umstrukturiert, Client-Updates, Scripts nach scripts/
This commit is contained in:
@@ -41,17 +41,17 @@ export function FAQ() {
|
||||
const [openIndex, setOpenIndex] = useState<number | null>(0)
|
||||
|
||||
return (
|
||||
<section id="faq" className="py-24 bg-slate-50">
|
||||
<section id="faq" className="py-24 bg-slate-50 dark:bg-slate-900">
|
||||
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{/* Section header */}
|
||||
<div className="text-center mb-16">
|
||||
<div className="inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-primary-100 mb-6">
|
||||
<HelpCircle className="w-8 h-8 text-primary-600" />
|
||||
<div className="inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-primary-100 dark:bg-primary-900/30 mb-6">
|
||||
<HelpCircle className="w-8 h-8 text-primary-600 dark:text-primary-400" />
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl font-bold text-slate-900 mb-4">
|
||||
<h2 className="text-3xl sm:text-4xl font-bold text-slate-900 dark:text-slate-100 mb-4">
|
||||
FAQ
|
||||
</h2>
|
||||
<p className="text-lg text-slate-600">
|
||||
<p className="text-lg text-slate-600 dark:text-slate-400">
|
||||
Quick answers to common questions.
|
||||
</p>
|
||||
</div>
|
||||
@@ -70,11 +70,11 @@ export function FAQ() {
|
||||
</div>
|
||||
|
||||
{/* Contact CTA */}
|
||||
<div className="mt-12 text-center p-6 bg-white rounded-2xl border border-slate-200">
|
||||
<p className="text-slate-600 mb-2">Still have questions?</p>
|
||||
<div className="mt-12 text-center p-6 bg-white dark:bg-slate-800 rounded-2xl border border-slate-200 dark:border-slate-700">
|
||||
<p className="text-slate-600 dark:text-slate-400 mb-2">Still have questions?</p>
|
||||
<a
|
||||
href="mailto:support@emailsorter.com"
|
||||
className="text-primary-600 font-semibold hover:text-primary-700"
|
||||
className="text-primary-600 dark:text-primary-400 font-semibold hover:text-primary-700 dark:hover:text-primary-300"
|
||||
>
|
||||
Contact us →
|
||||
</a>
|
||||
@@ -93,15 +93,15 @@ interface FAQItemProps {
|
||||
|
||||
function FAQItem({ question, answer, isOpen, onClick }: FAQItemProps) {
|
||||
return (
|
||||
<div className="bg-white rounded-xl border border-slate-200 overflow-hidden">
|
||||
<div className="bg-white dark:bg-slate-800 rounded-xl border border-slate-200 dark:border-slate-700 overflow-hidden">
|
||||
<button
|
||||
className="w-full px-6 py-4 text-left flex items-center justify-between hover:bg-slate-50 transition-colors"
|
||||
className="w-full px-6 py-4 text-left flex items-center justify-between hover:bg-slate-50 dark:hover:bg-slate-700 transition-colors"
|
||||
onClick={onClick}
|
||||
>
|
||||
<span className="font-semibold text-slate-900 pr-4">{question}</span>
|
||||
<span className="font-semibold text-slate-900 dark:text-slate-100 pr-4">{question}</span>
|
||||
<ChevronDown
|
||||
className={cn(
|
||||
"w-5 h-5 text-slate-400 transition-transform duration-200 flex-shrink-0",
|
||||
"w-5 h-5 text-slate-400 dark:text-slate-500 transition-transform duration-200 flex-shrink-0",
|
||||
isOpen && "rotate-180"
|
||||
)}
|
||||
/>
|
||||
@@ -112,7 +112,7 @@ function FAQItem({ question, answer, isOpen, onClick }: FAQItemProps) {
|
||||
isOpen ? "max-h-40" : "max-h-0"
|
||||
)}
|
||||
>
|
||||
<p className="px-6 pb-4 text-slate-600">{answer}</p>
|
||||
<p className="px-6 pb-4 text-slate-600 dark:text-slate-400">{answer}</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user