Social Proof Copy Generator

Social Proof Copy Generator

Turn your customer success into compelling marketing copy with AI.

Your Details

Generated Copy

Your generated copy will appear here.

${copy}

`; dom.output.innerHTML += copyCard; }); dom.output.classList.remove('hidden'); dom.downloadBtn.classList.remove('hidden'); lucide.createIcons(); dom.output.querySelectorAll('.copy-btn').forEach(btn => { btn.addEventListener('click', (e) => copyText(decodeURIComponent(e.currentTarget.dataset.text), e.currentTarget)); }); } function copyText(text, button) { navigator.clipboard.writeText(text).then(() => { const originalHTML = button.innerHTML; button.innerHTML = 'Copied!'; button.disabled = true; setTimeout(() => { button.innerHTML = originalHTML; button.disabled = false; lucide.createIcons(); }, 1500); }).catch(err => console.error('Failed to copy text: ', err)); } function downloadPDF() { const { jsPDF } = window.jspdf; const copies = Array.from(dom.output.querySelectorAll('.copy-text')).map(el => el.textContent); if (copies.length === 0) return; const pdf = new jsPDF({ orientation: 'p', unit: 'pt', format: 'a4' }); const pageMargin = 40; const pdfWidth = pdf.internal.pageSize.getWidth(); const contentWidth = pdfWidth - (pageMargin * 2); pdf.setFont('Inter', 'bold'); pdf.setFontSize(18); pdf.text('Generated Social Proof Copy', pdfWidth / 2, pageMargin, { align: 'center' }); pdf.setFontSize(11); let yPos = pageMargin + 40; copies.forEach((copy, index) => { pdf.setFont('Inter', 'bold'); pdf.text(`Option ${index + 1}:`, pageMargin, yPos); yPos += 15; pdf.setFont('Inter', 'normal'); const lines = pdf.splitTextToSize(copy, contentWidth); pdf.text(lines, pageMargin, yPos); yPos += (lines.length * 12) + 20; // 12pt font size, plus spacing }); pdf.save('Social_Proof_Copy.pdf'); } init(); });
Scroll to Top