AI-Powered Website Builder

AI Website Builder

Define your sections and let AI build a complete website.

Business Information

Hero Section

Features Section

Call To Action Section

Live Preview

Your website preview will appear here

${message}

`; } // --- Download & PDF --- function downloadHtmlFile() { if (!generatedHtml) return; const blob = new Blob([generatedHtml], { type: 'text/html' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'website.html'; document.body.appendChild(a); a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); } function generatePdf() { if (!generatedHtml) return; const { jsPDF } = window.jspdf; const doc = new jsPDF(); const inputs = getInputs(); doc.setFont('helvetica', 'bold'); doc.setFontSize(18); doc.text('AI Website Builder Report', doc.internal.pageSize.getWidth() / 2, 20, { align: 'center' }); doc.autoTable({ startY: 30, head: [['Section', 'User Input']], body: [ ['Business Name', inputs.businessName], ['Industry', inputs.industry], ['Hero Headline', inputs.headline], ['Hero Sub-headline', inputs.subheadline], ['Feature 1', inputs.feature1], ['Feature 2', inputs.feature2], ['Feature 3', inputs.feature3], ['CTA Headline', inputs.ctaHeadline], ['CTA Button', inputs.ctaButton], ], theme: 'striped', headStyles: { fillColor: '#0d9488' }, }); doc.save('website-builder-report.pdf'); } });
Scroll to Top