'use client' import { useState } from 'react' import { ChevronDown } from 'lucide-react' interface FAQItem { id: string question: string answer: string } interface FAQProps { items?: FAQItem[] } const defaultFAQs: FAQItem[] = [ { id: 'faq-1', question: 'How do I upload my portfolio?', answer: 'Navigate to your dashboard and click "Create New Portfolio". Fill in your portfolio details, then upload a ZIP file containing your website files. Our system will automatically extract and deploy your portfolio.', }, { id: 'faq-2', question: 'What file formats are supported?', answer: 'We support ZIP files containing standard web files (HTML, CSS, JavaScript, images). The root of your ZIP should contain an index.html file as the entry point.', }, { id: 'faq-3', question: 'Can I use a custom domain?', answer: 'Yes! You can connect your custom domain during portfolio creation. Simply point your domain\'s DNS records to our servers, and we\'ll handle the rest.', }, { id: 'faq-4', question: 'Is SSL/HTTPS included?', answer: 'Absolutely! All portfolios hosted on Portfolio Host include free SSL certificates. Your site will automatically be served over HTTPS for security and SEO benefits.', }, { id: 'faq-5', question: 'How do I update my portfolio?', answer: 'Simply upload a new ZIP file for your portfolio. The system will automatically replace the old version while keeping your custom domain and settings intact.', }, { id: 'faq-6', question: 'What happens if I delete my portfolio?', answer: 'Deleted portfolios are permanently removed and cannot be recovered. Your custom domain will become available for reassignment. Please download any important files before deletion.', }, ] export default function FAQ({ items = defaultFAQs }: FAQProps) { const [expandedId, setExpandedId] = useState(null) const toggleExpand = (id: string) => { setExpandedId(expandedId === id ? null : id) } return (

Frequently Asked Questions

Find answers to common questions about Portfolio Host

{items.map((item) => (
{expandedId === item.id && (
{item.answer}
)}
))}

Still have questions?

Contact our support team
) }