|
| 1 | +import { Metadata } from 'next'; |
| 2 | +import { ExternalLink, MessageCircle, BookOpen } from 'lucide-react'; |
| 3 | +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; |
| 4 | +import { FaqAccordion } from '@/components/support/faq-accordion'; |
| 5 | +import { ContactForm } from '@/components/support/contact-form'; |
| 6 | +import { FAQ_ITEMS } from '@/lib/faq-data'; |
| 7 | + |
| 8 | +export const metadata: Metadata = { |
| 9 | + title: 'Support — NiffyInsur', |
| 10 | + description: 'Get help with NiffyInsur. Browse FAQs or contact our support team.', |
| 11 | +}; |
| 12 | + |
| 13 | +export default function SupportPage() { |
| 14 | + return ( |
| 15 | + <main className="mx-auto max-w-3xl px-4 py-16 space-y-16"> |
| 16 | + {/* Header */} |
| 17 | + <div className="text-center space-y-2"> |
| 18 | + <h1 className="text-3xl font-bold tracking-tight">Support Center</h1> |
| 19 | + <p className="text-muted-foreground"> |
| 20 | + Find answers to common questions or reach out to our team. |
| 21 | + </p> |
| 22 | + </div> |
| 23 | + |
| 24 | + {/* Quick links */} |
| 25 | + <div className="grid grid-cols-1 sm:grid-cols-2 gap-4"> |
| 26 | + <a |
| 27 | + href="https://discord.gg/niffyinsur" |
| 28 | + target="_blank" |
| 29 | + rel="noopener noreferrer" |
| 30 | + className="flex items-center gap-3 rounded-lg border p-4 hover:bg-muted/50 transition-colors" |
| 31 | + > |
| 32 | + <MessageCircle className="h-5 w-5 text-primary shrink-0" /> |
| 33 | + <div> |
| 34 | + <p className="font-medium text-sm">Discord Community</p> |
| 35 | + <p className="text-xs text-muted-foreground">Chat with the community</p> |
| 36 | + </div> |
| 37 | + <ExternalLink className="ml-auto h-4 w-4 text-muted-foreground" /> |
| 38 | + </a> |
| 39 | + <a |
| 40 | + href="https://docs.niffyinsur.com" |
| 41 | + target="_blank" |
| 42 | + rel="noopener noreferrer" |
| 43 | + className="flex items-center gap-3 rounded-lg border p-4 hover:bg-muted/50 transition-colors" |
| 44 | + > |
| 45 | + <BookOpen className="h-5 w-5 text-primary shrink-0" /> |
| 46 | + <div> |
| 47 | + <p className="font-medium text-sm">Documentation</p> |
| 48 | + <p className="text-xs text-muted-foreground">Guides and API reference</p> |
| 49 | + </div> |
| 50 | + <ExternalLink className="ml-auto h-4 w-4 text-muted-foreground" /> |
| 51 | + </a> |
| 52 | + </div> |
| 53 | + |
| 54 | + {/* FAQ */} |
| 55 | + <section aria-labelledby="faq-heading"> |
| 56 | + <h2 id="faq-heading" className="text-xl font-semibold mb-4">Frequently Asked Questions</h2> |
| 57 | + <FaqAccordion items={FAQ_ITEMS} /> |
| 58 | + </section> |
| 59 | + |
| 60 | + {/* Contact form */} |
| 61 | + <section aria-labelledby="contact-heading"> |
| 62 | + <Card> |
| 63 | + <CardHeader> |
| 64 | + <CardTitle id="contact-heading">Contact Support</CardTitle> |
| 65 | + <CardDescription> |
| 66 | + Can't find what you need? Send us a message and we'll respond within 1–2 business days. |
| 67 | + </CardDescription> |
| 68 | + </CardHeader> |
| 69 | + <CardContent> |
| 70 | + <ContactForm /> |
| 71 | + </CardContent> |
| 72 | + </Card> |
| 73 | + </section> |
| 74 | + </main> |
| 75 | + ); |
| 76 | +} |
0 commit comments