Guía de estilo starryai | Edición Orion

Guía de estilo starryai | Edición Orion

Un escaparate de creaciones de estilos específicos catalogadas para Orión

Share on :
`; document.body.appendChild(overlay); document.body.appendChild(popup); // Send event to Google Tag Manager when popup is shown - matching original format if (window.dataLayer) { window.dataLayer.push({ 'event': 'exitPopupShown', 'popupStatus': 'displayed' }); } document.getElementById('create-btn').addEventListener('click', function() { if (window.dataLayer) { window.dataLayer.push({ 'event': 'exitPopupCTA', 'popupStatus': 'ctaClicked' }); } window.location.href = '/app/create'; closeModal(); }); document.getElementById('explore-btn').addEventListener('click', function() { if (window.dataLayer) { window.dataLayer.push({ 'event': 'exitPopupCTA', 'popupStatus': 'ctaClicked' }); } window.location.href = '/app/explore'; closeModal(); }); overlay.addEventListener('click', function(e) { if (e.target === overlay) { closeModal(); } }); function closeModal() { if (window.dataLayer) { window.dataLayer.push({ 'event': 'exitPopupClosed', 'popupStatus': 'closed' }); } overlay.remove(); popup.remove(); localStorage.setItem('exitPopupClosed', 'true'); // Using localStorage like original } } // [Rest of the CSS styles remain the same...] let styles = document.createElement('style'); styles.innerHTML = ` #modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.25); z-index: 9999; display: flex; align-items: center; justify-content: center; } #modal-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 999999; opacity: 0; animation: fadeIn 0.3s ease-out forwards; } .modal-container { display: flex; width: 100%; max-width: 700px; background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .modal-image-container { position: relative; width: 300px; flex-shrink: 0; } .modal-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; } .modal-image { width: 100%; height: 100%; object-fit: cover; } .modal-content { flex: 1; padding: 32px; display: flex; flex-direction: column; gap: 24px; } .modal-title { text-align: center; font-size: 20px; font-weight: 500; color: #403E3D; margin: 0; } .modal-subtitle { text-align: center; font-size: 14px; font-weight: 500; color: #666564; margin: 0; } .modal-buttons { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; } .primary-button { width: 100%; padding: 14px; border-radius: 64px; background: #550fd0; color: white; font-weight: bold; border: none; cursor: pointer; transition: background-color 0.2s ease; } .primary-button:hover { background: #651be5; } .secondary-button { width: 100%; padding: 14px; border-radius: 64px; background: white; color: #403E3D; font-weight: bold; border: 1px solid #E6E6E6; cursor: pointer; transition: background-color 0.2s ease; } .secondary-button:hover { background: #f5f5f5; } .modal-features { display: flex; flex-direction: column; gap: 12px; text-align: center; font-size: 14px; color: #666564; } .modal-features p { margin: 0; } @keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -55%); } to { opacity: 1; transform: translate(-50%, -50%); } } @media (max-width: 768px) { .modal-container { flex-direction: column; margin: 16px; max-width: calc(100% - 32px); } .modal-image-container { width: 100%; height: 200px; } .modal-content { padding: 24px; } } `; document.head.appendChild(styles); })(); -->