blowfish/layouts/partials/newsletter.html
2024-10-20 13:24:38 +03:00

118 lines
No EOL
3.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ro">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
#modern-banner {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
background: #245a9478;
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
border-radius: 10px;
padding: 15px;
max-width: 90%;
width: 400px;
transition: all 0.3s ease;
font-family: Arial, sans-serif;
}
#modern-banner .banner-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
#modern-banner .banner-title {
color: #ffffff;
font-size: 18px;
font-weight: bold;
}
#modern-banner .banner-content {
position: relative;
overflow: hidden;
border-radius: 8px;
height: 250px;
}
#modern-banner iframe {
display: block;
width: 100%;
height: 100%;
border: none;
}
#modern-banner .close-btn {
background: none;
color: #fff;
border: none;
font-size: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
opacity: 0.7;
padding: 0;
width: 30px;
height: 30px;
}
#modern-banner .close-btn:hover {
transform: scale(1.1);
opacity: 1;
}
@media (max-width: 600px) {
#modern-banner {
width: calc(100% - 40px);
max-width: none;
}
}
</style>
</head>
<body>
<!-- Aici este conținutul existent al site-ului dvs. -->
<div id="modern-banner" style="display: none;">
<div class="banner-header">
<div class="banner-title">Abonează-te la newsletter</div>
<button class="close-btn" onclick="closeBanner()">×</button>
</div>
<div class="banner-content">
<iframe src="https://b3fbfc70.sibforms.com/serve/MUIFAJQAf4lHXvpQRYC5kXUc2kt0fnqqdcMDEUnigL_faJ1Go5-BMyAHFLONk4Pqsr13PN2oxTv5Yd9-Efej7GzSmY2PjwYEUmWHoAkm-c_nViMitl98zUIDf8qvAX4ScG16hXXIfnX4LcKmQ9ZuTMDaTA9BgBjoVssIx4FoiSzN08PFrFqCol3sPoNrpjEZmjTDdvEghZUvyzr8" frameborder="0" scrolling="auto" allowfullscreen></iframe>
</div>
</div>
<script>
function setCookie(name, value, days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function closeBanner() {
document.getElementById('modern-banner').style.display = 'none';
setCookie('bannerClosed', 'true', 1); // Set cookie for 24 hours
}
window.onload = function() {
if (!getCookie('bannerClosed')) {
document.getElementById('modern-banner').style.display = 'block';
}
}
</script>
</body>
</html>