<link href="https://fonts.googleapis.com/css?family=Poppins:700&display=swap" rel="stylesheet">
.close {
position: absolute;
right: 18px;
top: 0px;
width: 18px;
height: 18px;
}
.close:before, .close:after {
position: absolute;
left: 15px;
content: ' ';
height: 18px;
width: 2px;
background-color: rgb(218, 218, 218);
}
.close:hover {
cursor: pointer;
}
.close:before {
transform: rotate(45deg);
}
.close:after {
transform: rotate(-45deg);
}
#yl-popup-popupOknoPixel_2{
top: 50%;
transform: translateY(-50%);
}
#popup-form@(popupName){
margin-bottom: 1em;
}
#popup-container{
background-image: url('https://oknoplast.user.com/media/uploads/kj7d8v-oknoplast/pop-up-pixel-8a832526d698.jpg');
box-sizing: border-box;
-webkit-box-sizing: border-box;
max-width: 1000px;
margin: 0 auto;
background-size: cover;
background-position: center center;
height: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#qpContent, #qpContent *{
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#qpContent{
display: flex;
align-items: center;
padding: 40px;
text-align: center;
font-family: Calibri, Arial, sans-serif;
background: black;
background: rgba(0, 0, 0, 0.8);
color: white;
width: 50%;
float: right;
height: 500px;
letter-spacing: 0.05em;
overflow: hidden;
}
#qpThankYou{
margin-top: 50%;
transform: translateY(-50%);
}
#qpContent input[type=email]{
background: #4F5C6C;
border: none;
width: 100%;
height: 54px;
line-height: 54px;
margin: 10px 0 40px;
padding: 0 15px;
color: white;
outline:none !important;
}
.ue_form>form {
height: 100vh;
display: flex;
}
#popup-container{
align-self: center;
}
.qpButton{
font-family: Poppins, Arial, sans-serif;
font-weight: bold;
width: 171px;
font-size: 15px;
height: 42px;
line-height: 42px;
text-align: center;
background: #00B2EC;
border-radius: 42px;
border: none;
color: white;
text-transform: uppercase;
margin-bottom: 40px;
text-decoration: none;
display: inline-block;
}
.qpButton:last-child{
margin-bottom: 0;
}
.qpP, .qpH{
font-size: 17px;
line-height: 17px;
}
.qpH{
font-weight: bold;
margin-bottom: 20px;
text-transform: uppercase;
}
.qpP{
margin-bottom: 40px;
}
.qpInfoSmall{
font-size: 13px;
color: #979797;
text-align: left;
letter-spacing: 0;
}
.qpInfo{
font-size: 14px;
color: #979797;
text-align: left;
line-height: 15px;
letter-spacing: -0.2px;
padding-bottom: 30px;
}
.qpInfo a{
text-decoration: underline;
color: #00c0ff;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #ffffff;
}
::-moz-placeholder { /* Firefox 19+ */
color: #ffffff;
}
:-ms-input-placeholder { /* IE 10+ */
color: #ffffff;
}
:-moz-placeholder { /* Firefox 18- */
color: #ffffff;
}
@@media screen and (max-width: 1099px){
.qpH, .qpP{
font-size: 16px;
}
}
@@media screen and (max-width: 749px){
#popup-container{
height: auto;
}
#qpContent{
height: auto;
width: auto;
float: none;
}
}
<div id="popup-container">
<p id="hide-popup" class="close"></p>
Dowiedz się więcej o oknach Pixel
Okna Pixel to nie tylko wyjątkowy design. To także technologia, która zapewnia więcej światła w pomieszczeniu.
<br />
Jeśli chcesz dowiedzieć się o nich więcej pozostaw swój adres e-mail.
<form id="popup-form@(popupName)">
[:email class="ue_input"]
<button id="submitButton" type="submit" class="qpButton">Chcę!
</button>
Administratorem podanych danych osobowych jest Oknoplast Sp. z o.o. z siedzibą w Ochmanowie, Ochmanów 117, 32-003 Podłęże. Więcej informacji
o przetwarzaniu danych osobowych i przysługujących Państwu prawach można znaleźć w
<a href="https://oknoplast.com.pl/polityka-prywatnosci/" target="_blank">Polityce Prywatności
</a>
<div id="qpThankYou" style="display: none;">
POTWIERDŹ SWÓJ ADRES E-MAIL
Wejdź teraz na swoją skrzynkę mailową
i kliknij w link, który wysłaliśmy Ci
w wiadomości, aby potwierdzić zapis do newslettera. Jeśli nie widzisz wiadomości, sprawdź inne zakładki.
Jeśli masz inne pytania, skontaktuj
się z najbliższym salonem OKNOPLAST.
<a class="qpButton" href="https://oknoplast.com.pl/znajdz-salon/" target="_blank">Znajdź salon
</a>
<script type="text/javascript">
let hideCross = document.querySelector('#hide-popup');
let popup = document.querySelector('#popup-container');
hideCross.addEventListener('click', () => {
popup.style.display = 'none'
})
(function () {
$('#popup-form@(popupName)').submit(function (e) {
e.preventDefault();
var validationPassed = true;
var email = $('#popup-container .yl-email').val();
if (!email)
validationPassed = false;
if (validationPassed)
{
Monitor.TrackForm("popup-form@(popupName)", 2);
$('#qpForm').hide();
$('#qpThankYou').show();
}
});
})();
var isIE = /*@@cc_on!@@*/ false || !!document.documentMode;
if(isIE){
setTimeout(function(){
var w = window.outerWidth;
var h = window.outerHeight;
window.resizeTo(w, h);
}, 200);
}