Spaces:
Running
Running
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Plantilla de Comprobante - DEMO</title> | |
| <script src="https://unpkg.com/@phosphor-icons/web"></script> | |
| <style> | |
| :root { | |
| --banesco-green: #009639; | |
| --banesco-dark: #0066b3; | |
| --bg-color: #f0fdf4; | |
| --card-bg: #ffffff; | |
| --text-dark: #1f2937; | |
| --text-muted: #6b7280; | |
| --border-color: #d1fae5; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', system-ui, sans-serif; | |
| background: linear-gradient(135deg, var(--bg-color) 0%, #dcfce7 100%); | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 2rem; | |
| } | |
| .watermark { | |
| position: fixed; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%) rotate(-45deg); | |
| font-size: 8rem; | |
| font-weight: 900; | |
| color: rgba(239, 68, 68, 0.08); | |
| pointer-events: none; | |
| z-index: 0; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5em; | |
| } | |
| .receipt-container { | |
| width: 100%; | |
| max-width: 480px; | |
| background: var(--card-bg); | |
| border-radius: 24px; | |
| box-shadow: 0 25px 50px -12px rgba(0, 150, 57, 0.25); | |
| overflow: hidden; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .receipt-header { | |
| background: linear-gradient(135deg, var(--banesco-green) 0%, #00b4d8 100%); | |
| padding: 2rem; | |
| text-align: center; | |
| color: white; | |
| position: relative; | |
| } | |
| .receipt-header::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -20px; | |
| left: 0; | |
| right: 0; | |
| height: 40px; | |
| background: var(--card-bg); | |
| border-radius: 50% 50% 0 0; | |
| } | |
| .bank-logo { | |
| width: 80px; | |
| height: 80px; | |
| background: white; | |
| border-radius: 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin: 0 auto 1rem; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.2); | |
| } | |
| .bank-logo i { | |
| font-size: 2.5rem; | |
| color: var(--banesco-green); | |
| } | |
| .receipt-title { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| margin-bottom: 0.25rem; | |
| } | |
| .receipt-subtitle { | |
| opacity: 0.9; | |
| font-size: 0.875rem; | |
| } | |
| .receipt-body { | |
| padding: 2rem; | |
| padding-top: 1rem; | |
| } | |
| .status-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| background: #dcfce7; | |
| color: #166534; | |
| padding: 0.5rem 1rem; | |
| border-radius: 9999px; | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| margin-bottom: 1.5rem; | |
| } | |
| .status-badge i { | |
| font-size: 1.125rem; | |
| } | |
| .detail-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 1rem 0; | |
| border-bottom: 1px dashed var(--border-color); | |
| } | |
| .detail-row:last-of-type { | |
| border-bottom: none; | |
| } | |
| .detail-label { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| color: var(--text-muted); | |
| font-size: 0.875rem; | |
| } | |
| .detail-label i { | |
| font-size: 1.25rem; | |
| color: var(--banesco-green); | |
| } | |
| .detail-value { | |
| font-weight: 600; | |
| color: var(--text-dark); | |
| text-align: right; | |
| } | |
| .amount-section { | |
| background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); | |
| border-radius: 16px; | |
| padding: 1.5rem; | |
| margin: 1.5rem 0; | |
| text-align: center; | |
| border: 2px solid var(--border-color); | |
| } | |
| .amount-label { | |
| font-size: 0.875rem; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| margin-bottom: 0.5rem; | |
| } | |
| .amount-value { | |
| font-size: 2.5rem; | |
| font-weight: 800; | |
| background: linear-gradient(135deg, var(--banesco-green) 0%, var(--banesco-dark) 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .amount-currency { | |
| font-size: 1rem; | |
| color: var(--text-muted); | |
| margin-top: 0.25rem; | |
| } | |
| .receipt-footer { | |
| text-align: center; | |
| padding: 1.5rem; | |
| background: #f9fafb; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .reference-number { | |
| font-family: 'Courier New', monospace; | |
| background: #e5e7eb; | |
| padding: 0.5rem 1rem; | |
| border-radius: 8px; | |
| font-size: 0.875rem; | |
| color: var(--text-dark); | |
| display: inline-block; | |
| margin-bottom: 1rem; | |
| } | |
| .timestamp { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| } | |
| .demo-notice { | |
| position: fixed; | |
| bottom: 2rem; | |
| left: 50%; | |
| transform: translateX(-50%); | |
| background: #fee2e2; | |
| border: 2px solid #ef4444; | |
| color: #991b1b; | |
| padding: 1rem 2rem; | |
| border-radius: 12px; | |
| font-weight: 600; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| z-index: 10; | |
| } | |
| .print-btn { | |
| position: fixed; | |
| top: 2rem; | |
| right: 2rem; | |
| background: var(--banesco-green); | |
| color: white; | |
| border: none; | |
| padding: 1rem 1.5rem; | |
| border-radius: 12px; | |
| cursor: pointer; | |
| font-weight: 600; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| transition: all 0.3s ease; | |
| z-index: 10; | |
| } | |
| .print-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 30px rgba(0, 150, 57, 0.3); | |
| } | |
| @media print { | |
| .demo-notice, .print-btn { | |
| display: none; | |
| } | |
| body { | |
| background: white; | |
| } | |
| .receipt-container { | |
| box-shadow: none; | |
| } | |
| } | |
| @media (max-width: 640px) { | |
| body { | |
| padding: 1rem; | |
| } | |
| .amount-value { | |
| font-size: 1.875rem; | |
| } | |
| .watermark { | |
| font-size: 4rem; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="watermark">DEMO</div> | |
| <button class="print-btn" onclick="window.print()"> | |
| <i class="ph ph-printer"></i> | |
| Imprimir / PDF | |
| </button> | |
| <div class="receipt-container"> | |
| <div class="receipt-header"> | |
| <div class="bank-logo"> | |
| <i class="ph ph-bank"></i> | |
| </div> | |
| <div class="receipt-title">Comprobante de Transferencia</div> | |
| <div class="receipt-subtitle">Banco Banesco</div> | |
| </div> | |
| <div class="receipt-body"> | |
| <div class="status-badge"> | |
| <i class="ph ph-check-circle"></i> | |
| Transacción Exitosa | |
| </div> | |
| <div class="amount-section"> | |
| <div class="amount-label">Monto Transferido</div> | |
| <div class="amount-value">€ 650.000,00</div> | |
| <div class="amount-currency">Seiscientos cincuenta mil euros</div> | |
| </div> | |
| <div class="detail-row"> | |
| <div class="detail-label"> | |
| <i class="ph ph-buildings"></i> | |
| <span>Banco</span> | |
| </div> | |
| <div class="detail-value">Banesco</div> | |
| </div> | |
| <div class="detail-row"> | |
| <div class="detail-label"> | |
| <i class="ph ph-credit-card"></i> | |
| <span>Cuenta Destino</span> | |
| </div> | |
| <div class="detail-value" style="font-family: monospace;">**** **** **** 6629</div> | |
| </div> | |
| <div class="detail-row"> | |
| <div class="detail-label"> | |
| <i class="ph ph-identification-card"></i> | |
| <span>Documento</span> | |
| </div> | |
| <div class="detail-value">V-*********04</div> | |
| </div> | |
| <div class="detail-row"> | |
| <div class="detail-label"> | |
| <i class="ph ph-calendar"></i> | |
| <span>Fecha</span> | |
| </div> | |
| <div class="detail-value" id="currentDate">--</div> | |
| </div> | |
| <div class="detail-row"> | |
| <div class="detail-label"> | |
| <i class="ph ph-clock"></i> | |
| <span>Hora</span> | |
| </div> | |
| <div class="detail-value" id="currentTime">--</div> | |
| </div> | |
| </div> | |
| <div class="receipt-footer"> | |
| <div class="reference-number"> | |
| REF: DEMO-2024-XXXXXX | |
| </div> | |
| <div class="timestamp"> | |
| Generado el <span id="footerDate">--</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="demo-notice"> | |
| <i class="ph ph-warning-circle" style="font-size: 1.5rem;"></i> | |
| <div> | |
| <div>ESTO ES UNA DEMOSTRACIÓN</div> | |
| <div style="font-size: 0.875rem; font-weight: normal;">No es un comprobante real de Banesco</div> | |
| </div> | |
| </div> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" | |
| style="position: fixed; top: 2rem; left: 2rem; color: var(--banesco-green); | |
| text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; | |
| background: white; padding: 0.75rem 1rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);"> | |
| <i class="ph ph-code"></i> | |
| Built with anycoder | |
| </a> | |
| <script> | |
| // Fecha y hora actual | |
| function updateDateTime() { | |
| const now = new Date(); | |
| const dateOptions = { | |
| year: 'numeric', | |
| month: 'long', | |
| day: 'numeric' | |
| }; | |
| const timeOptions = { | |
| hour: '2-digit', | |
| minute: '2-digit', | |
| second: '2-digit', | |
| hour12: false | |
| }; | |
| document.getElementById('currentDate').textContent = now.toLocaleDateString('es-ES', dateOptions); | |
| document.getElementById('currentTime').textContent = now.toLocaleTimeString('es-ES', timeOptions); | |
| document.getElementById('footerDate').textContent = now.toLocaleString('es-ES'); | |
| } | |
| updateDateTime(); | |
| setInterval(updateDateTime, 1000); | |
| // Animación de entrada | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const container = document.querySelector('.receipt-container'); | |
| container.style.opacity = '0'; | |
| container.style.transform = 'translateY(30px)'; | |
| setTimeout(() => { | |
| container.style.transition = 'all 0.6s ease'; | |
| container.style.opacity = '1'; | |
| container.style.transform = 'translateY(0)'; | |
| }, 100); | |
| }); | |
| </script> | |
| </body> | |
| </html> |