Generador de Página de Contacto

Generador de Página de Contacto Personalizada

Crea una página de contacto sencilla y un código QR para compartir fácilmente tu información.

Datos de Contacto y Personalización

Opciones de Estilo

Si usas una imagen, el color de fondo principal se aplicará detrás de la imagen.

Enlaces de Contacto

Vista Previa y Descarga

Completa el formulario y haz clic en "Generar Página de Contacto" para ver la vista previa aquí.

Código HTML copiado al portapapeles
${profilePic ? `
Foto de Perfil
` : ''}

${name}

${description ? `

${description}

` : ''}
`; } // Función para copiar el HTML generado al portapapeles function copyGeneratedHtml() { if (!generatedFullHtml) { alert('Por favor, genera la página de contacto primero.'); return; } navigator.clipboard.writeText(generatedFullHtml) .then(() => { // Mostrar notificación const notification = document.getElementById('copy-notification'); notification.classList.add('show'); // Ocultar notificación después de 3 segundos setTimeout(() => { notification.classList.remove('show'); }, 3000); }) .catch(err => { console.error('Error al copiar: ', err); alert('Error al copiar el código HTML. Por favor, inténtalo de nuevo.'); }); } function downloadContact() { const name = document.getElementById('name').value; const phone = document.getElementById('phone').value; const whatsapp = document.getElementById('whatsapp').value; const email = document.getElementById('email').value; const website = document.getElementById('website').value; const facebook = document.getElementById('facebook').value; const twitter = document.getElementById('twitter').value; const linkedin = document.getElementById('linkedin').value; const instagram = document.getElementById('instagram').value; const youtube = document.getElementById('youtube').value; const tiktok = document.getElementById('tiktok').value; const map = document.getElementById('map').value; if (!name) { alert('Por favor, genera la página primero para descargar el contacto.'); return; } let vCardData = `BEGIN:VCARD\r\nVERSION:3.0\r\nFN:${name}\r\nORG:${name};\r\n`; if (phone) { vCardData += `TEL;TYPE=work,voice:${phone}\r\n`; } if (whatsapp) { vCardData += `TEL;TYPE=CELL,WHATSAPP:${whatsapp}\r\n`; } if (email) { vCardData += `EMAIL:${email}\r\n`; } if (website) { vCardData += `URL;TYPE=Website:${website}\r\n`; } if (facebook) { vCardData += `X-SOCIALPROFILE;TYPE=Facebook:${facebook}\r\n`; } if (twitter) { vCardData += `X-SOCIALPROFILE;TYPE=Twitter:${twitter}\r\n`; } if (linkedin) { vCardData += `X-SOCIALPROFILE;TYPE=LinkedIn:${linkedin}\r\n`; } if (instagram) { vCardData += `X-SOCIALPROfile;TYPE=Instagram:${instagram}\r\n`; } if (youtube) { vCardData += `X-SOCIALPROFILE;TYPE=YouTube:${youtube}\r\n`; } if (tiktok) { vCardData += `X-SOCIALPROFILE;TYPE=TikTok:${tiktok}\\r\\n`; } if (map) { vCardData += `URL;TYPE=Map:${map}\r\n`; } vCardData += `END:VCARD`; const blob = new Blob([vCardData], { type: 'text/vcard' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `contacto_${name.replace(/\s+/g, '_').toLowerCase()}.vcf`; document.body.appendChild(a); a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); } function downloadPage() { const name = document.getElementById('name').value; if (!name) { alert('Por favor, genera la página de contacto primero.'); return; } // Asegurarse de que tenemos el HTML actualizado generateFullHtmlString(); const blob = new Blob([generatedFullHtml], { type: 'text/html' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `pagina_contacto_${name.replace(/\s+/g, '_').toLowerCase()}.html`; document.body.appendChild(a); a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); } function resetForm() { document.getElementById('contact-form').reset(); document.getElementById('contact-page-preview').innerHTML = '

Completa el formulario y haz clic en "Generar Página de Contacto" para ver la vista previa aquí.

'; document.getElementById('download-section').style.display = 'none'; document.getElementById('qr-code-container').innerHTML = ''; document.getElementById('contact-page-preview').style.backgroundImage = 'none'; document.getElementById('contact-page-preview').style.backgroundColor = '#f9f9f9'; document.getElementById('contact-page-preview').style.color = '#333'; generatedFullHtml = ''; } window.onload = function() { const urlParams = new URLSearchParams(window.location.search); const data = urlParams.get('data'); if (data) { try { const decodedData = JSON.parse(atob(data)); document.getElementById('name').value = decodedData.name || ''; document.getElementById('description').value = decodedData.description || ''; document.getElementById('profilePic').value = decodedData.profilePic || ''; document.getElementById('phone').value = decodedData.phone || ''; document.getElementById('whatsapp').value = decodedData.whatsapp || ''; document.getElementById('email').value = decodedData.email || ''; document.getElementById('website').value = decodedData.website || ''; document.getElementById('facebook').value = decodedData.facebook || ''; document.getElementById('twitter').value = decodedData.twitter || ''; document.getElementById('linkedin').value = decodedData.linkedin || ''; document.getElementById('instagram').value = decodedData.instagram || ''; document.getElementById('youtube').value = decodedData.youtube || ''; document.getElementById('tiktok').value = decodedData.tiktok || ''; document.getElementById('map').value = decodedData.map || ''; document.getElementById('mainFontColor').value = decodedData.mainFontColor || '#333333'; document.getElementById('mainBgColor').value = decodedData.mainBgColor || '#f5f7fa'; document.getElementById('bgImageUrl').value = decodedData.bgImageUrl || ''; document.getElementById('bgImageRepeat').value = decodedData.bgImageRepeat || 'no-repeat'; document.getElementById('bgImageSize').value = decodedData.bgImageSize || 'cover'; document.getElementById('bgImageAttachment').value = decodedData.bgImageAttachment || 'scroll'; document.getElementById('cardBgColor').value = decodedData.cardBgColor || '#ffffff'; document.getElementById('cardFontColor').value = decodedData.cardFontColor || '#333333'; document.getElementById('outerCircleColor').value = decodedData.outerCircleColor || '#000000'; document.getElementById('innerCircleColor').value = decodedData.innerCircleColor || '#FFFFFF'; document.getElementById('buttonBorder').value = decodedData.buttonBorderStyle || 'none'; generatePage(); } catch (e) { console.error("Error al decodificar los parámetros de la URL:", e); } } }; ``` background-color: #5a6268; } .preview-section { min-height: 300px; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; } #contact-page-preview { width: 100%; height: 500px; border: 1px solid #ddd; border-radius: 8px; overflow: auto; background-color: #f9f9f9; } .generated-page { padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); max-width: 600px; margin: 20px auto; text-align: center; } .profile-pic-outer-circle { width: 180px; height: 180px; border-radius: 50%; background-color: black; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px auto; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); } .profile-pic-inner-circle { width: 160px; height: 160px; border-radius: 50%; background-color: white; display: flex; justify-content: center; align-items: center; overflow: hidden; } .generated-page .profile-pic { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; } .generated-page h1 { color: #333; margin-bottom: 10px; font-size: 2.2em; } .generated-page p.description { color: #666; margin-bottom: 25px; line-height: 1.6; } .generated-page .contact-links { display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; margin-top: 20px; } .generated-page .contact-links a { background: white; padding: 1.2rem 1.5rem; border-radius: 14px; text-decoration: none; color: #333; font-weight: 500; display: flex; align-items: center; justify-content: flex-start; gap: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 3px 10px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; z-index: 1; width: 100%; } .generated-page .contact-links a::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 100%; background: currentColor; opacity: 0.1; transition: width 0.2s ease-out; z-index: -1; } .generated-page .contact-links a:hover::before { width: 100%; } .generated-page .contact-links a:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); } .generated-page .contact-links a i { font-size: 1.3rem; width: 30px; text-align: center; margin-right: 1rem; } .generated-page .contact-links .btn-whatsapp { border-left: 4px solid #25D366; } .generated-page .contact-links .btn-phone { border-left: 4px solid #007bff; } .generated-page .contact-links .btn-email { border-left: 4px solid #dc3545; } .generated-page .contact-links .btn-website { border-left: 4px solid #ffc107; } .generated-page .contact-links .btn-facebook { border-left: 4px solid #1877F2; } .generated-page .contact-links .btn-twitter { border-left: 4px solid #1DA1F2; } .generated-page .contact-links .btn-linkedin { border-left: 4px solid #0A66C2; } .generated-page .contact-links .btn-instagram { border-left: 4px solid #E4405F; } .generated-page .contact-links .btn-youtube { border-left: 4px solid #FF0000; } .generated-page .contact-links .btn-tiktok { border-left: 4px solid #000000; } .generated-page .contact-links .btn-map { border-left: 4px solid #4CAF50; } /* BOTÓN VCard MEJORADO */ .generated-page .contact-links .btn-vcard { background: #2563EB !important; color: white !important; border: none !important; border-left: 4px solid #1D4ED8 !important; } .generated-page .contact-links .btn-vcard i { color: white !important; } .generated-page .contact-links .btn-vcard:hover { background: #1D4ED8 !important; transform: translateY(-3px) scale(1.02); } .generated-page .contact-links .btn-vcard:hover::before { background: #1D4ED8; } .btn-download-icon { position: relative; margin-right: 15px; } .btn-download-icon::after { content: "↓"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-size: 0.8em; opacity: 0.8; } .download-contact { background: white; padding: 1.2rem 1.5rem; border-radius: 14px; text-decoration: none; color: #333; font-weight: 500; display: flex; align-items: center; justify-content: flex-start; gap: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 3px 10px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; z-index: 1; cursor: pointer; border-left: 4px solid #5D3FD3; margin-top: 1rem; width: 100%; display: inline-flex; } .download-contact:hover { background-color: #f0f5ff; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); } .download-contact i { color: #5D3FD3; font-size: 1.3rem; width: 30px; text-align: center; margin-right: 1rem; } .ripple { position: absolute; width: 100px; height: 100px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; transform: translate(-50%, -50%) scale(0); animation: ripple 0.6s linear; } /* Notificación de copia */ .copy-notification { position: fixed; top: 20px; right: 20px; background-color: #4CAF50; color: white; padding: 15px 25px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; transform: translateX(120%); transition: transform 0.3s ease-out; display: flex; align-items: center; gap: 10px; } .copy-notification.show { transform: translateX(0); } .copy-notification i { font-size: 1.2em; } @keyframes ripple { to { transform: translate(-50%, -50%) scale(4); opacity: 0; } } @media (max-width: 768px) { .container { flex-direction: column; } header h1 { font-size: 2em; } h2 { font-size: 1.8em; } .form-section, .preview-section { padding: 20px; } .button-group { flex-direction: column; gap: 10px; } button { width: 100%; } .profile-pic-outer-circle { width: 140px; height: 150px; } .profile-pic-inner-circle { width: 180px; height: 130px; } .generated-page h1 { font-size: 1.8em; } .generated-page .contact-links a { width: 100%; justify-content: flex-start; } .copy-notification { top: 10px; right: 10px; left: 10px; transform: translateY(-100px); } .copy-notification.show { transform: translateY(0); } } @media (max-width: 480px) { body { padding: 10px; } .generated-page .contact-links a { width: 100%; } }

Generador de Página de Contacto Personalizada

Crea una página de contacto sencilla y un código QR para compartir fácilmente tu información.

Datos de Contacto y Personalización

Opciones de Estilo

Si usas una imagen, el color de fondo principal se aplicará detrás de la imagen.

Enlaces de Contacto

Vista Previa y Descarga

Completa el formulario y haz clic en "Generar Página de Contacto" para ver la vista previa aquí.

Código HTML copiado al portapapeles
Scroll al inicio