|
| 1 | +"use client" |
| 2 | + |
| 3 | +import { motion } from "framer-motion" |
| 4 | +import { |
| 5 | + Accordion, |
| 6 | + AccordionContent, |
| 7 | + AccordionItem, |
| 8 | + AccordionTrigger, |
| 9 | +} from "@/components/ui/accordion" |
| 10 | + |
| 11 | +const faqs = [ |
| 12 | + { |
| 13 | + question: "How long does verification take?", |
| 14 | + answer: "Most applications are reviewed within 24-48 hours. You'll receive an email notification once your company is verified and ready to start hosting events.", |
| 15 | + }, |
| 16 | + { |
| 17 | + question: "What documents are required for verification?", |
| 18 | + answer: "You'll need to provide business registration documents, your company website URL, and an official company email domain. All documents are securely stored and virus-scanned.", |
| 19 | + }, |
| 20 | + { |
| 21 | + question: "Can I invite team members to help manage events?", |
| 22 | + answer: "Yes! You can invite unlimited team members with role-based permissions. Assign roles like Owner, Admin, Editor, or Viewer to control what each team member can do.", |
| 23 | + }, |
| 24 | + { |
| 25 | + question: "Is there a cost to host events on Codeunia?", |
| 26 | + answer: "Currently, hosting events on Codeunia is completely free for all verified companies. We may introduce premium features in the future, but the core platform will remain free.", |
| 27 | + }, |
| 28 | + { |
| 29 | + question: "What types of events can I host?", |
| 30 | + answer: "You can host workshops, hackathons, webinars, conferences, networking events, and any tech-related gatherings. Both online and in-person events are supported.", |
| 31 | + }, |
| 32 | + { |
| 33 | + question: "Can I edit events after publishing?", |
| 34 | + answer: "Yes, admins and editors can update event details anytime. Changes are reflected immediately, and registered participants are notified of significant updates.", |
| 35 | + }, |
| 36 | + { |
| 37 | + question: "How do I track event performance?", |
| 38 | + answer: "Your dashboard provides real-time analytics including views, registrations, attendance, and engagement metrics. You can also export detailed reports as CSV files.", |
| 39 | + }, |
| 40 | + { |
| 41 | + question: "What happens if my company is rejected?", |
| 42 | + answer: "If your application is rejected, you'll receive an email with the specific reason. You can address the issues and resubmit your application for review.", |
| 43 | + }, |
| 44 | +] |
| 45 | + |
| 46 | +export function CompanyFAQ() { |
| 47 | + return ( |
| 48 | + <section className="py-20 relative overflow-hidden"> |
| 49 | + <div className="absolute inset-0 bg-gradient-to-br from-transparent via-primary/5 to-transparent"></div> |
| 50 | + |
| 51 | + <div className="container px-4 mx-auto relative z-10"> |
| 52 | + <motion.div |
| 53 | + className="text-center space-y-6 mb-12" |
| 54 | + initial={{ opacity: 0, y: 20 }} |
| 55 | + whileInView={{ opacity: 1, y: 0 }} |
| 56 | + transition={{ duration: 0.6 }} |
| 57 | + viewport={{ once: true }} |
| 58 | + > |
| 59 | + <div className="flex flex-col items-center justify-center gap-4"> |
| 60 | + <button className="bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block cursor-default"> |
| 61 | + <span className="absolute inset-0 overflow-hidden rounded-full"> |
| 62 | + <span className="absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" /> |
| 63 | + </span> |
| 64 | + <div className="relative flex space-x-2 items-center z-10 rounded-full bg-zinc-950 py-0.5 px-4 ring-1 ring-white/10"> |
| 65 | + <span>FAQ</span> |
| 66 | + </div> |
| 67 | + <span className="absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-emerald-400/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" /> |
| 68 | + </button> |
| 69 | + </div> |
| 70 | + |
| 71 | + <h2 className="text-3xl md:text-4xl lg:text-5xl font-bold"> |
| 72 | + Frequently Asked{" "} |
| 73 | + <span className="bg-gradient-to-r from-primary to-purple-500 bg-clip-text text-transparent"> |
| 74 | + Questions |
| 75 | + </span> |
| 76 | + </h2> |
| 77 | + |
| 78 | + <p className="text-xl text-muted-foreground max-w-2xl mx-auto"> |
| 79 | + Everything you need to know about hosting events on Codeunia |
| 80 | + </p> |
| 81 | + </motion.div> |
| 82 | + |
| 83 | + <motion.div |
| 84 | + className="max-w-3xl mx-auto" |
| 85 | + initial={{ opacity: 0, y: 20 }} |
| 86 | + whileInView={{ opacity: 1, y: 0 }} |
| 87 | + transition={{ duration: 0.6, delay: 0.2 }} |
| 88 | + viewport={{ once: true }} |
| 89 | + > |
| 90 | + <Accordion type="single" collapsible className="w-full space-y-4"> |
| 91 | + {faqs.map((faq, index) => ( |
| 92 | + <AccordionItem |
| 93 | + key={index} |
| 94 | + value={`item-${index}`} |
| 95 | + className="border border-primary/10 rounded-lg px-6 bg-background/50 backdrop-blur-sm hover:border-primary/20 transition-colors" |
| 96 | + > |
| 97 | + <AccordionTrigger className="text-left hover:no-underline py-4"> |
| 98 | + <span className="font-semibold text-lg">{faq.question}</span> |
| 99 | + </AccordionTrigger> |
| 100 | + <AccordionContent className="text-muted-foreground pb-4"> |
| 101 | + {faq.answer} |
| 102 | + </AccordionContent> |
| 103 | + </AccordionItem> |
| 104 | + ))} |
| 105 | + </Accordion> |
| 106 | + </motion.div> |
| 107 | + </div> |
| 108 | + </section> |
| 109 | + ) |
| 110 | +} |
0 commit comments