diff --git a/konfigurator-mail.php b/konfigurator-mail.php index 17edf03..8c99750 100644 --- a/konfigurator-mail.php +++ b/konfigurator-mail.php @@ -3,7 +3,7 @@ session_start(); require_once 'phpmailer/class.phpmailer.php'; require_once 'phpmailer/class.smtp.php'; -function send_email( $email, $reply, $subject, $text ) +function send_email( $email, $reply, $subject, $text, $attachment = null ) { $mail = new PHPMailer; $mail -> IsSMTP(); @@ -27,40 +27,60 @@ function send_email( $email, $reply, $subject, $text ) $mail -> isHTML( true ); $mail -> Subject = $subject; $mail -> Body = $text; + + if ($attachment && isset($attachment['tmp_name']) && file_exists($attachment['tmp_name'])) { + $mail->addAttachment($attachment['tmp_name'], $attachment['name']); + } + return $mail -> send(); } +if ($_SERVER['REQUEST_METHOD'] === 'POST') { + $configData = json_decode($_POST['configData'], true); -$data = json_decode(file_get_contents('php://input'), true); -$configData = $data['configData']; + $file = isset($_FILES['attachment']) ? $_FILES['attachment'] : null; -$to = 'kontakt@ostal.pl'; -$subject = 'ostal.pl - Konfigurator'; -$message = '

' . $configData['step_1'] . '

'; + $to = 'kontakt@ostal.pl'; + $subject = 'ostal.pl - Konfigurator'; + $message = '

' . $configData['step_1'] . '

'; -$message .= '

Wymiary

'; -$message .= ''; + $message .= '

Wymiary

'; + $message .= ''; -$message .= '

' . $configData['step_3'] . '

'; + $message .= '

' . $configData['step_3'] . '

'; -$message .= '

Dane kontaktowe

'; -$message .= ''; + if (isset($configData['step_3_extra']) && $configData['step_3_extra']) { + $message .= '

' . $configData['step_3_extra'] . '

'; + } -if ( send_email( $to, $configData['step_4']['email'], $subject, $message, $headers ) ) -{ - // send_email( 'biuro@project-pro.pl', $configData['step_4']['email'], $subject, $message, $headers ); - $_SESSION["configurator_sended"] = true; - echo json_encode(array('status' => 'ok', 'message' => 'Wiadmość wysłana')); + $message .= '

Dane kontaktowe

'; + $message .= ''; + + if (send_email($to, $configData['step_4']['email'], $subject, $message, $file)) { + $_SESSION["configurator_sended"] = true; + echo json_encode(['status' => 'ok', 'message' => 'Wiadmość wysłana']); + } else { + echo json_encode(['status' => 'error', 'message' => 'Wystąpił błąd podczas wysyłania wiadomości']); + } exit(); } else { - echo json_encode(array('status' => 'error', 'message' => 'Wystąpił błąd')); + echo json_encode(['status' => 'error', 'message' => 'Nieprawidłowe żądanie']); exit(); } \ No newline at end of file diff --git a/wp-content/themes/ostal_WP/css/custom.css b/wp-content/themes/ostal_WP/css/custom.css index f8737c0..a11a3d2 100644 --- a/wp-content/themes/ostal_WP/css/custom.css +++ b/wp-content/themes/ostal_WP/css/custom.css @@ -1 +1 @@ -#home-page-seo .wrapper{padding-top:75px;padding-bottom:0}#home-page-seo .wrapper h2{margin-left:0;max-width:100%}#garden-page-seo .wrapper{padding-top:0;padding-bottom:75px}#garden-page-seo .wrapper h2{margin-left:0;max-width:100%}.pagination{display:flex;align-items:center;margin:25px 0 50px;justify-content:center;width:100%;font-size:16px;gap:10px}.pagination a{font-size:16px}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file +#home-page-seo .wrapper{padding-top:75px;padding-bottom:0}#home-page-seo .wrapper h2{margin-left:0;max-width:100%}#garden-page-seo .wrapper{padding-top:0;padding-bottom:75px}#garden-page-seo .wrapper h2{margin-left:0;max-width:100%}.pagination{display:flex;align-items:center;margin:25px 0 50px;justify-content:center;width:100%;font-size:16px;gap:10px}.pagination a{font-size:16px}.c-select p{margin-bottom:5px !important}.c-select select{border:1px solid #88b14b;padding:10px;width:100%}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file diff --git a/wp-content/themes/ostal_WP/css/custom.css.map b/wp-content/themes/ostal_WP/css/custom.css.map index d96f88c..4e6e1c2 100644 --- a/wp-content/themes/ostal_WP/css/custom.css.map +++ b/wp-content/themes/ostal_WP/css/custom.css.map @@ -1 +1 @@ -{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AACE,wBACE,gBAAA,CACA,gBAAA,CAEA,2BACE,aAAA,CACA,cAAA,CAMJ,0BACE,aAAA,CACA,mBAAA,CAEA,6BACE,aAAA,CACA,cAAA,CAKN,YACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,sBAAA,CACA,UAAA,CACA,cAAA,CACA,QAAA,CAEA,cACE,cAAA","file":"custom.css","sourcesContent":["#home-page-seo {\r\n .wrapper {\r\n padding-top: 75px;\r\n padding-bottom: 0;\r\n\r\n h2 {\r\n margin-left: 0;\r\n max-width: 100%;\r\n }\r\n }\r\n}\r\n\r\n#garden-page-seo {\r\n .wrapper {\r\n padding-top: 0;\r\n padding-bottom: 75px;\r\n\r\n h2 {\r\n margin-left: 0;\r\n max-width: 100%;\r\n }\r\n }\r\n}\r\n\r\n.pagination {\r\n display: flex;\r\n align-items: center;\r\n margin: 25px 0 50px;\r\n justify-content: center;\r\n width: 100%;\r\n font-size: 16px;\r\n gap: 10px;\r\n\r\n a {\r\n font-size: 16px;\r\n }\r\n}"]} \ No newline at end of file +{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AACC,wBACC,gBAAA,CACA,gBAAA,CAEA,2BACC,aAAA,CACA,cAAA,CAMF,0BACC,aAAA,CACA,mBAAA,CAEA,6BACC,aAAA,CACA,cAAA,CAKH,YACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,sBAAA,CACA,UAAA,CACA,cAAA,CACA,QAAA,CAEA,cACC,cAAA,CAKD,YACC,4BAAA,CAED,iBACC,wBAAA,CACA,YAAA,CACA,UAAA","file":"custom.css"} \ No newline at end of file diff --git a/wp-content/themes/ostal_WP/css/custom.scss b/wp-content/themes/ostal_WP/css/custom.scss index c5d671a..ed5c304 100644 --- a/wp-content/themes/ostal_WP/css/custom.scss +++ b/wp-content/themes/ostal_WP/css/custom.scss @@ -1,37 +1,48 @@ #home-page-seo { - .wrapper { - padding-top: 75px; - padding-bottom: 0; + .wrapper { + padding-top: 75px; + padding-bottom: 0; - h2 { - margin-left: 0; - max-width: 100%; - } - } + h2 { + margin-left: 0; + max-width: 100%; + } + } } #garden-page-seo { - .wrapper { - padding-top: 0; - padding-bottom: 75px; + .wrapper { + padding-top: 0; + padding-bottom: 75px; - h2 { - margin-left: 0; - max-width: 100%; - } - } + h2 { + margin-left: 0; + max-width: 100%; + } + } } .pagination { - display: flex; - align-items: center; - margin: 25px 0 50px; - justify-content: center; - width: 100%; - font-size: 16px; - gap: 10px; + display: flex; + align-items: center; + margin: 25px 0 50px; + justify-content: center; + width: 100%; + font-size: 16px; + gap: 10px; - a { - font-size: 16px; - } -} \ No newline at end of file + a { + font-size: 16px; + } +} + +.c-select { + p { + margin-bottom: 5px !important; + } + select { + border: 1px solid #88b14b; + padding: 10px; + width: 100%; + } +} diff --git a/wp-content/themes/ostal_WP/custom.css b/wp-content/themes/ostal_WP/custom.css index 6a99a43..31ebc13 100644 --- a/wp-content/themes/ostal_WP/custom.css +++ b/wp-content/themes/ostal_WP/custom.css @@ -1 +1,496 @@ -#app .section-header{text-align:center;margin-bottom:60px}#app .section-header .title{margin-bottom:0;margin-top:0;padding-top:0 !important;padding-bottom:0 !important}#app .section-realizacje .recent-realizations-item{width:25%}#app .section-realizacje .recent-realizations-item>p{background:rgba(86,165,61,.8)}@media(min-width: 1536px){#app .section-realizacje .recent-realizations-item{padding-bottom:20rem}}@media(max-width: 1000px){#app .section-realizacje .recent-realizations-item{width:50%;margin:0}}@media(max-width: 640px){#app .section-realizacje .recent-realizations-item{padding-bottom:10rem}}#app .section-contact{display:grid;grid-template-columns:2fr 1fr}@media(max-width: 1300px){#app .section-contact{grid-template-columns:1fr;row-gap:30px}}#app .section-contact .section-contact-texts{display:grid;grid-template-columns:auto 1fr}@media(max-width: 900px){#app .section-contact .section-contact-texts{grid-template-columns:1fr}}#app .section-contact .section-contact-texts .section-contact-texts-img img{width:100%;max-width:-moz-fit-content;max-width:fit-content}@media(max-width: 900px){#app .section-contact .section-contact-texts .section-contact-texts-img img{margin-left:auto;margin-right:auto}}#app .section-contact .section-contact-texts .section-contact-texts-txt{padding:25px;color:#1d293f;font-size:15px;font-style:normal;font-weight:400;line-height:32px}@media(max-width: 900px){#app .section-contact .section-contact-texts .section-contact-texts-txt{padding-left:0;padding-right:0}}#app .section-contact .section-contact-form{width:100%;max-width:400px}@media(max-width: 1300px){#app .section-contact .section-contact-form{max-width:unset}}#app .section-contact .section-contact-form .section-contact-form-wrapper{padding:10px}#app .section-contact .section-contact-form .section-contact-form-wrapper h3{font-size:21px;font-style:normal;font-weight:400;line-height:normal}#app .section-contact .section-contact-form .section-contact-form-wrapper h3 strong{font-weight:700}@media(max-width: 1300px){#app .section-contact .section-contact-form .section-contact-form-wrapper h3{text-align:center}}#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field{padding:7px 0;border-color:#bcbcbc;outline:none !important}#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field input{border-radius:0;color:#000;font-size:11px;font-style:normal;font-weight:400;line-height:normal}#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field input::-moz-placeholder{color:#000}#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field input::placeholder{color:#000}#app .section-contact .section-contact-form .section-contact-form-wrapper form .required-alert p{color:#cd1f27;font-size:12px;font-style:normal;font-weight:400;line-height:normal;margin-bottom:0}#app .section-contact .section-contact-form .section-contact-form-wrapper form .marketing input[type=checkbox]::before{border-radius:0}#app .section-contact .section-contact-form .section-contact-form-wrapper form .marketing label{font-size:10px;font-style:normal;font-weight:400;line-height:normal}#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-submit{display:block;margin-left:auto;border-radius:0;background-color:#88b14b;height:49px;padding:0 30px;color:#fff;text-align:center;font-size:14px;font-style:normal;font-weight:400;line-height:normal}#app #calc-container .calc-bar-fix{overflow:hidden;padding:20px 0}#app #calc-container .calc-bar-fix #progress-bar{max-width:1000px;margin:50px auto 30px auto}#app #calc-container .calc-bar-fix #progress-bar .progress-bar{background:#ddd}#app #calc-container .calc-bar-fix #progress-bar .progress-bar .progress-bar-line{background:#88b14b;display:block;height:10px;width:0;transition:all 250ms ease-in-out}#app #calc-container .calc-bar-fix #calc-bar{display:flex;flex-direction:row;width:350%;margin-left:0%;transition:all 500ms ease-in-out;margin-left:-55%}@media(max-width: 1000px){#app #calc-container .calc-bar-fix #calc-bar{width:400%;margin-left:0%}}#app #calc-container .calc-bar-fix #calc-bar .calc-s{width:100%;max-width:70%;padding:0 20px;opacity:.2;transition:all 500ms ease-in-out;pointer-events:none}@media(max-width: 1000px){#app #calc-container .calc-bar-fix #calc-bar .calc-s{max-width:100%}#app #calc-container .calc-bar-fix #calc-bar .calc-s.calc-placeholder{display:none}}#app #calc-container .calc-bar-fix #calc-bar .calc-s.active{opacity:1;pointer-events:initial}#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data{display:flex;flex-direction:row;row-gap:20px}#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data img{width:100%;max-width:200px;height:-moz-fit-content;height:fit-content}#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data .calc-texts{width:100%}@media(max-width: 767px){#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data{flex-direction:column;align-items:center}}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box{position:relative;padding:25px 70px 65px 70px;box-sizing:border-box;height:100%;position:relative;border:2px solid #88b14b;background:#fff}@media(max-width: 640px){#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box{padding:25px 20px 65px 20px}}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box::before{content:"";position:absolute;width:100%;height:100%;opacity:100%;display:block;z-index:-1;background-color:#88b14b;-webkit-clip-path:polygon(0% 0%, 97% 0, 100% 4%, 100% 100%, 0% 100%);clip-path:polygon(0% 0%, 97% 0, 100% 4%, 100% 100%, 0% 100%);top:-12px;left:inherit;right:-12px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio{list-style:none;margin:0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li{display:flex;flex-direction:row;align-items:center;-moz-column-gap:1rem;column-gap:1rem;margin:0;width:100%;padding:12.5px 0;transition:.3s;box-shadow:1px 1px 0px rgba(0,0,0,0);cursor:pointer}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li:hover{box-shadow:1px 1px 2px rgba(0,0,0,.5);background-color:#eee}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li.selected .radio::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:8px;height:8px;border-radius:100%;background:#88b14b}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li .radio{position:relative;width:20px;height:20px;background-color:#ddd;border-radius:50%;box-shadow:1px 1px 2px rgba(0,0,0,.5);margin-left:20px;flex-shrink:0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li .radio-text .radio-title{font-weight:600;font-size:16px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts{list-style:none;margin:0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li{margin-right:1.75rem}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li:not(:last-child){margin-bottom:10px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li p{font-weight:600;font-size:16px;margin-bottom:0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input.input{background-color:#f7f7f7;padding:4px 10px;border:1px solid #eee;width:100%}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input.input:focus{outline:none}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:rgba(0,0,0,0);cursor:pointer;width:100%}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]:focus{outline:none}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-webkit-slider-runnable-track{background-color:#ddd;border-radius:.5rem;height:.5rem;box-shadow:1px 1px 2px rgba(0,0,0,.5)}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-6px;border-radius:4px;background-color:#121e23;border:1px solid #fff;height:20px;width:10px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-moz-range-track{background-color:#ddd;border-radius:.5rem;height:.5rem;box-shadow:1px 1px 2px rgba(0,0,0,.5);border-radius:4px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-moz-range-thumb{border:none;border-radius:0px;background-color:#121e23;border:1px solid #fff;height:20px;width:10px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data .btn_send{max-width:-moz-fit-content;max-width:fit-content;margin:30px auto 0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data .btn_send:disabled{cursor:progress;background:#cdcdcd}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--title{position:relative;display:block;width:100%;max-width:-moz-fit-content;max-width:fit-content;margin:0 auto 30px auto;text-align:center;padding-bottom:8px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--title h2{margin:0;padding:0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev,#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next{background:#88b14b;top:50%;margin:-15px;position:absolute;transition:.3s;cursor:pointer;border-radius:100%}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev.disabled,#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next.disabled{background:#ddd;cursor:default}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev .svg-arrow,#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next .svg-arrow{margin:0;width:48px;height:48px;display:block;padding:7px;top:0}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev .svg-arrow path,#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next .svg-arrow path{transition:.3s}@media(max-width: 640px){#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev,#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next{top:40px}}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev{left:25px}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev .svg-arrow{transform:rotate(180deg)}#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next{right:25px}#configurator_sended{padding:40px 70px;box-sizing:border-box;height:100%;position:relative;border:2px solid #88b14b;width:100%;max-width:700px;margin:50px auto;background:#fff}#configurator_sended::before{content:"";position:absolute;width:100%;height:100%;opacity:100%;display:block;z-index:-1;background-color:#88b14b;-webkit-clip-path:polygon(0% 0%, 98% 0, 100% 4%, 100% 100%, 0% 100%);clip-path:polygon(0% 0%, 98% 0, 100% 4%, 100% 100%, 0% 100%);top:-12px;left:inherit;right:-12px}#configurator_sended h2{position:relative;display:block;width:100%;max-width:-moz-fit-content;max-width:fit-content;margin:0 auto 50px auto;text-align:center;padding-bottom:8px}#configurator_sended .configurator_sended_text{text-align:center}.step-info{display:block;font-size:14px;margin-left:39px;margin-top:20px}#home-page-seo{padding-top:50px;padding-bottom:50px}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file +#app .section-header { + text-align: center; + margin-bottom: 60px; +} +#app .section-header .title { + margin-bottom: 0; + margin-top: 0; + padding-top: 0 !important; + padding-bottom: 0 !important; +} +#app .section-realizacje .recent-realizations-item { + width: 25%; +} +#app .section-realizacje .recent-realizations-item > p { + background: rgba(86, 165, 61, 0.8); +} +@media (min-width: 1536px) { + #app .section-realizacje .recent-realizations-item { + padding-bottom: 20rem; + } +} +@media (max-width: 1000px) { + #app .section-realizacje .recent-realizations-item { + width: 50%; + margin: 0; + } +} +@media (max-width: 640px) { + #app .section-realizacje .recent-realizations-item { + padding-bottom: 10rem; + } +} +#app .section-contact { + display: grid; + grid-template-columns: 2fr 1fr; +} +@media (max-width: 1300px) { + #app .section-contact { + grid-template-columns: 1fr; + row-gap: 30px; + } +} +#app .section-contact .section-contact-texts { + display: grid; + grid-template-columns: auto 1fr; +} +@media (max-width: 900px) { + #app .section-contact .section-contact-texts { + grid-template-columns: 1fr; + } +} +#app .section-contact .section-contact-texts .section-contact-texts-img img { + width: 100%; + max-width: -moz-fit-content; + max-width: fit-content; +} +@media (max-width: 900px) { + #app .section-contact .section-contact-texts .section-contact-texts-img img { + margin-left: auto; + margin-right: auto; + } +} +#app .section-contact .section-contact-texts .section-contact-texts-txt { + padding: 25px; + color: #1d293f; + font-size: 15px; + font-style: normal; + font-weight: 400; + line-height: 32px; +} +@media (max-width: 900px) { + #app .section-contact .section-contact-texts .section-contact-texts-txt { + padding-left: 0; + padding-right: 0; + } +} +#app .section-contact .section-contact-form { + width: 100%; + max-width: 400px; +} +@media (max-width: 1300px) { + #app .section-contact .section-contact-form { + max-width: unset; + } +} +#app .section-contact .section-contact-form .section-contact-form-wrapper { + padding: 10px; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper h3 { + font-size: 21px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper h3 strong { + font-weight: 700; +} +@media (max-width: 1300px) { + #app .section-contact .section-contact-form .section-contact-form-wrapper h3 { + text-align: center; + } +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field { + padding: 7px 0; + border-color: #bcbcbc; + outline: none !important; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field input { + border-radius: 0; + color: #000; + font-size: 11px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field input::-moz-placeholder { + color: #000; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-field input::placeholder { + color: #000; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .required-alert p { + color: #cd1f27; + font-size: 12px; + font-style: normal; + font-weight: 400; + line-height: normal; + margin-bottom: 0; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .marketing input[type=checkbox]::before { + border-radius: 0; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .marketing label { + font-size: 10px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +#app .section-contact .section-contact-form .section-contact-form-wrapper form .wpforms-submit { + display: block; + margin-left: auto; + border-radius: 0; + background-color: #88b14b; + height: 49px; + padding: 0 30px; + color: #fff; + text-align: center; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +#app #calc-container .calc-bar-fix { + overflow: hidden; + padding: 20px 0; +} +#app #calc-container .calc-bar-fix #progress-bar { + max-width: 1000px; + margin: 50px auto 30px auto; +} +#app #calc-container .calc-bar-fix #progress-bar .progress-bar { + background: #ddd; +} +#app #calc-container .calc-bar-fix #progress-bar .progress-bar .progress-bar-line { + background: #88b14b; + display: block; + height: 10px; + width: 0; + transition: all 250ms ease-in-out; +} +#app #calc-container .calc-bar-fix #calc-bar { + display: flex; + flex-direction: row; + width: 350%; + margin-left: 0%; + transition: all 500ms ease-in-out; + margin-left: -55%; +} +@media (max-width: 1000px) { + #app #calc-container .calc-bar-fix #calc-bar { + width: 400%; + margin-left: 0%; + } +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s { + width: 100%; + max-width: 70%; + padding: 0 20px; + opacity: 0.2; + transition: all 500ms ease-in-out; + pointer-events: none; +} +@media (max-width: 1000px) { + #app #calc-container .calc-bar-fix #calc-bar .calc-s { + max-width: 100%; + } + #app #calc-container .calc-bar-fix #calc-bar .calc-s.calc-placeholder { + display: none; + } +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s.active { + opacity: 1; + pointer-events: initial; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data { + display: flex; + flex-direction: row; + row-gap: 20px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data img { + width: 100%; + max-width: 200px; + height: -moz-fit-content; + height: fit-content; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data .calc-texts { + width: 100%; +} +@media (max-width: 767px) { + #app #calc-container .calc-bar-fix #calc-bar .calc-s#calc-ch-1 .slide-data { + flex-direction: column; + align-items: center; + } +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box { + position: relative; + padding: 25px 70px 65px 70px; + box-sizing: border-box; + height: 100%; + position: relative; + border: 2px solid #88b14b; + background: #fff; +} +@media (max-width: 640px) { + #app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box { + padding: 25px 20px 65px 20px; + } +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box::before { + content: ""; + position: absolute; + width: 100%; + height: 100%; + opacity: 100%; + display: block; + z-index: -1; + background-color: #88b14b; + -webkit-clip-path: polygon(0% 0%, 97% 0, 100% 4%, 100% 100%, 0% 100%); + clip-path: polygon(0% 0%, 97% 0, 100% 4%, 100% 100%, 0% 100%); + top: -12px; + left: inherit; + right: -12px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio { + list-style: none; + margin: 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li:not(.selected) { + background: red !important; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li { + display: flex; + flex-direction: row; + align-items: center; + -moz-column-gap: 1rem; + column-gap: 1rem; + margin: 0; + width: 100%; + padding: 12.5px 0; + transition: 0.3s; + box-shadow: 1px 1px 0px rgba(0, 0, 0, 0); + cursor: pointer; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li:hover { + box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); + background-color: #eee; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li.selected .radio::before { + content: ""; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 8px; + height: 8px; + border-radius: 100%; + background: #88b14b; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li .radio { + position: relative; + width: 20px; + height: 20px; + background-color: #ddd; + border-radius: 50%; + box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); + margin-left: 20px; + flex-shrink: 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-radio li .radio-text .radio-title { + font-weight: 600; + font-size: 16px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts { + list-style: none; + margin: 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li { + margin-right: 1.75rem; + /********** Range Input Styles **********/ + /*Range Reset*/ + /* Removes default focus */ + /***** Chrome, Safari, Opera and Edge Chromium styles *****/ + /* slider track */ + /* slider thumb */ + /******** Firefox styles ********/ + /* slider track */ + /* slider thumb */ +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li:not(:last-child) { + margin-bottom: 10px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li p { + font-weight: 600; + font-size: 16px; + margin-bottom: 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input.input { + background-color: #f7f7f7; + padding: 4px 10px; + border: 1px solid #eee; + width: 100%; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input.input:focus { + outline: none; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range] { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: transparent; + cursor: pointer; + width: 100%; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]:focus { + outline: none; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-webkit-slider-runnable-track { + background-color: #ddd; + border-radius: 0.5rem; + height: 0.5rem; + box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-webkit-slider-thumb { + -webkit-appearance: none; + /* Override default look */ + appearance: none; + margin-top: -6px; + /* Centers thumb on the track */ + border-radius: 4px; + /*custom styles*/ + background-color: #121e23; + border: 1px solid #fff; + height: 20px; + width: 10px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-moz-range-track { + background-color: #ddd; + border-radius: 0.5rem; + height: 0.5rem; + box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); + border-radius: 4px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data ul.calc-texts li input[type=range]::-moz-range-thumb { + border: none; + /*Removes extra border that FF applies*/ + border-radius: 0px; + /*Removes default border-radius that FF applies*/ + /*custom styles*/ + background-color: #121e23; + border: 1px solid #fff; + height: 20px; + width: 10px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data .btn_send { + max-width: -moz-fit-content; + max-width: fit-content; + margin: 30px auto 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--data .btn_send:disabled { + cursor: progress; + background: #cdcdcd; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--title { + position: relative; + display: block; + width: 100%; + max-width: -moz-fit-content; + max-width: fit-content; + margin: 0 auto 30px auto; + text-align: center; + padding-bottom: 8px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box--title h2 { + margin: 0; + padding: 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev, +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next { + background: #88b14b; + top: 50%; + margin: -15px; + position: absolute; + transition: 0.3s; + cursor: pointer; + border-radius: 100%; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev.disabled, +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next.disabled { + background: #ddd; + cursor: default; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev .svg-arrow, +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next .svg-arrow { + margin: 0; + width: 48px; + height: 48px; + display: block; + padding: 7px; + top: 0; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev .svg-arrow path, +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next .svg-arrow path { + transition: 0.3s; +} +@media (max-width: 640px) { + #app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev, + #app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next { + top: 40px; + } +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev { + left: 25px; +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .prev .svg-arrow { + transform: rotate(180deg); +} +#app #calc-container .calc-bar-fix #calc-bar .calc-s .calc-box .next { + right: 25px; +} + +#configurator_sended { + padding: 40px 70px; + box-sizing: border-box; + height: 100%; + position: relative; + border: 2px solid #88b14b; + width: 100%; + max-width: 700px; + margin: 50px auto; + background: #fff; +} +#configurator_sended::before { + content: ""; + position: absolute; + width: 100%; + height: 100%; + opacity: 100%; + display: block; + z-index: -1; + background-color: #88b14b; + -webkit-clip-path: polygon(0% 0%, 98% 0, 100% 4%, 100% 100%, 0% 100%); + clip-path: polygon(0% 0%, 98% 0, 100% 4%, 100% 100%, 0% 100%); + top: -12px; + left: inherit; + right: -12px; +} +#configurator_sended h2 { + position: relative; + display: block; + width: 100%; + max-width: -moz-fit-content; + max-width: fit-content; + margin: 0 auto 50px auto; + text-align: center; + padding-bottom: 8px; +} +#configurator_sended .configurator_sended_text { + text-align: center; +} + +.step-info { + display: block; + font-size: 14px; + margin-left: 39px; + margin-top: 20px; +}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file diff --git a/wp-content/themes/ostal_WP/custom.css.map b/wp-content/themes/ostal_WP/custom.css.map index 22f2ffa..4c31b2e 100644 --- a/wp-content/themes/ostal_WP/custom.css.map +++ b/wp-content/themes/ostal_WP/custom.css.map @@ -1 +1 @@ -{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AACE,qBACE,iBAAA,CACA,kBAAA,CAEA,4BACE,eAAA,CACA,YAAA,CACA,wBAAA,CACA,2BAAA,CAKF,mDACE,SAAA,CAEA,qDACE,6BAAA,CAGF,0BAPF,mDAQI,oBAAA,CAAA,CAGF,0BAXF,mDAYI,SAAA,CACA,QAAA,CAAA,CAGF,yBAhBF,mDAiBI,oBAAA,CAAA,CAKN,sBACE,YAAA,CACA,6BAAA,CAEA,0BAJF,sBAKI,yBAAA,CACA,YAAA,CAAA,CAGF,6CACE,YAAA,CACA,8BAAA,CAEA,yBAJF,6CAKI,yBAAA,CAAA,CAIA,4EACE,UAAA,CACA,0BAAA,CAAA,qBAAA,CAEA,yBAJF,4EAKI,gBAAA,CACA,iBAAA,CAAA,CAKN,wEACE,YAAA,CACA,aAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CAEA,yBARF,wEASI,cAAA,CACA,eAAA,CAAA,CAKN,4CACE,UAAA,CACA,eAAA,CAEA,0BAJF,4CAKI,eAAA,CAAA,CAGF,0EACE,YAAA,CAEA,6EACE,cAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CAEA,oFACE,eAAA,CAGF,0BAVF,6EAWI,iBAAA,CAAA,CAKF,8FACE,aAAA,CACA,oBAAA,CACA,uBAAA,CAEA,oGACE,eAAA,CACA,UAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CAEA,sHACE,UAAA,CADF,iHACE,UAAA,CAMJ,iGACE,aAAA,CACA,cAAA,CACA,iBAAA,CAC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CACA,WAAA,CACA,aAAA,CACA,WAAA,CACA,KAAA,CAEA,0KACE,cAAA,CAIJ,yBA5BF,0IA6BI,QAAA,CAAA,CAIJ,qEACE,SAAA,CAEA,gFACE,wBAAA,CAIJ,qEACE,UAAA,CASd,qBACE,iBAAA,CACA,qBAAA,CACA,WAAA,CACA,iBAAA,CACA,wBAAA,CACA,UAAA,CACA,eAAA,CACA,gBAAA,CACA,eAAA,CAEA,6BACE,UAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,YAAA,CACA,aAAA,CACA,UAAA,CAEA,wBAAA,CACA,oEAAA,CAAA,4DAAA,CACA,SAAA,CACA,YAAA,CACA,WAAA,CAGF,wBACE,iBAAA,CACA,aAAA,CACA,UAAA,CACA,0BAAA,CAAA,qBAAA,CACA,uBAAA,CACA,iBAAA,CACA,kBAAA,CAGF,+CACE,iBAAA,CAIJ,WACE,aAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CAGF,eACE,gBAAA,CACA,mBAAA","file":"custom.css","sourcesContent":["#app {\n .section-header {\n text-align: center;\n margin-bottom: 60px;\n\n .title {\n margin-bottom: 0;\n margin-top: 0;\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n }\n\n .section-realizacje {\n .recent-realizations-item {\n width: 25%;\n\n >p {\n background: rgba(86, 165, 61, 0.8);\n }\n\n @media (min-width: 1536px) {\n padding-bottom: 20rem;\n }\n\n @media (max-width: 1000px) {\n width: 50%;\n margin: 0;\n }\n\n @media (max-width: 640px) {\n padding-bottom: 10rem;\n }\n }\n }\n\n .section-contact {\n display: grid;\n grid-template-columns: 2fr 1fr;\n\n @media (max-width: 1300px) {\n grid-template-columns: 1fr;\n row-gap: 30px;\n }\n\n .section-contact-texts {\n display: grid;\n grid-template-columns: auto 1fr;\n\n @media (max-width: 900px) {\n grid-template-columns: 1fr;\n }\n\n .section-contact-texts-img {\n img {\n width: 100%;\n max-width: fit-content;\n\n @media (max-width: 900px) {\n margin-left: auto;\n margin-right: auto;\n }\n }\n }\n\n .section-contact-texts-txt {\n padding: 25px;\n color: #1d293f;\n font-size: 15px;\n font-style: normal;\n font-weight: 400;\n line-height: 32px;\n\n @media (max-width: 900px) {\n padding-left: 0;\n padding-right: 0;\n }\n }\n }\n\n .section-contact-form {\n width: 100%;\n max-width: 400px;\n\n @media (max-width: 1300px) {\n max-width: unset;\n }\n\n .section-contact-form-wrapper {\n padding: 10px;\n\n h3 {\n font-size: 21px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n\n strong {\n font-weight: 700;\n }\n\n @media (max-width: 1300px) {\n text-align: center;\n }\n }\n\n form {\n .wpforms-field {\n padding: 7px 0;\n border-color: #bcbcbc;\n outline: none !important;\n\n input {\n border-radius: 0;\n color: #000;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n\n &::placeholder {\n color: #000;\n }\n }\n }\n\n .required-alert {\n p {\n color: #cd1f27;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n margin-bottom: 0;\n }\n }\n\n .marketing {\n input[type=\"checkbox\"] {\n &::before {\n border-radius: 0;\n }\n }\n\n label {\n font-size: 10px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n }\n }\n\n .wpforms-submit {\n display: block;\n margin-left: auto;\n border-radius: 0;\n background-color: #88b14b;\n height: 49px;\n padding: 0 30px;\n color: #fff;\n text-align: center;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n }\n }\n }\n }\n }\n\n #calc-container {\n .calc-bar-fix {\n overflow: hidden;\n padding: 20px 0;\n\n #progress-bar {\n max-width: 1000px;\n margin: 50px auto 30px auto;\n\n .progress-bar {\n background: #ddd;\n\n .progress-bar-line {\n background: #88b14b;\n display: block;\n height: 10px;\n width: 0;\n transition: all 250ms ease-in-out;\n }\n }\n }\n\n #calc-bar {\n display: flex;\n flex-direction: row;\n // width: 250%;\n width: 350%;\n margin-left: 0%;\n transition: all 500ms ease-in-out;\n // margin-left: -25%;\n margin-left: -55%;\n\n @media (max-width: 1000px) {\n width: 400%;\n margin-left: 0%;\n }\n\n .calc-s {\n width: 100%;\n max-width: 70%;\n padding: 0 20px;\n opacity: 0.2;\n transition: all 500ms ease-in-out;\n pointer-events: none;\n\n @media (max-width: 1000px) {\n max-width: 100%;\n\n &.calc-placeholder {\n display: none;\n }\n }\n\n &.active {\n opacity: 1;\n // transform: scale(1);\n pointer-events: initial;\n }\n\n &#calc-ch-1 {\n .slide-data {\n display: flex;\n flex-direction: row;\n row-gap: 20px;\n\n img {\n width: 100%;\n max-width: 200px;\n height: fit-content;\n }\n\n .calc-texts {\n width: 100%;\n }\n\n @media (max-width: 767px) {\n flex-direction: column;\n align-items: center;\n }\n }\n }\n\n .calc-box {\n position: relative;\n padding: 25px 70px 65px 70px;\n box-sizing: border-box;\n height: 100%;\n position: relative;\n border: 2px solid #88b14b;\n background: #fff;\n\n @media (max-width: 640px) {\n padding: 25px 20px 65px 20px;\n }\n\n &::before {\n content: \"\";\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 100%;\n display: block;\n z-index: -1;\n\n background-color: #88b14b;\n clip-path: polygon(0% 0%, 97% 0, 100% 4%, 100% 100%, 0% 100%);\n top: -12px;\n left: inherit;\n right: -12px;\n }\n\n &--data {\n ul.calc-radio {\n list-style: none;\n margin: 0;\n\n li {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 1rem;\n margin: 0;\n width: 100%;\n padding: 12.5px 0;\n transition: 0.3s;\n box-shadow: 1px 1px 0px rgba(0, 0, 0, 0);\n cursor: pointer;\n\n &:hover {\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n background-color: #eee;\n }\n\n &.selected {\n .radio {\n &::before {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 8px;\n height: 8px;\n border-radius: 100%;\n background: #88b14b;\n }\n }\n }\n\n .radio {\n position: relative;\n width: 20px;\n height: 20px;\n background-color: #ddd;\n border-radius: 50%;\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n margin-left: 20px;\n flex-shrink: 0;\n }\n\n .radio-text {\n .radio-title {\n font-weight: 600;\n font-size: 16px;\n }\n }\n }\n }\n\n ul.calc-texts {\n list-style: none;\n margin: 0;\n\n li {\n margin-right: 1.75rem;\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n\n p {\n font-weight: 600;\n font-size: 16px;\n margin-bottom: 0;\n }\n\n input.input {\n background-color: #f7f7f7;\n padding: 4px 10px;\n border: 1px solid #eee;\n width: 100%;\n\n &:focus {\n outline: none;\n }\n }\n\n /********** Range Input Styles **********/\n /*Range Reset*/\n input[type=\"range\"] {\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n cursor: pointer;\n width: 100%;\n }\n\n /* Removes default focus */\n input[type=\"range\"]:focus {\n outline: none;\n }\n\n /***** Chrome, Safari, Opera and Edge Chromium styles *****/\n /* slider track */\n input[type=\"range\"]::-webkit-slider-runnable-track {\n background-color: #ddd;\n border-radius: 0.5rem;\n height: 0.5rem;\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n }\n\n /* slider thumb */\n input[type=\"range\"]::-webkit-slider-thumb {\n -webkit-appearance: none;\n /* Override default look */\n appearance: none;\n margin-top: -6px;\n /* Centers thumb on the track */\n border-radius: 4px;\n /*custom styles*/\n background-color: #121e23;\n border: 1px solid #fff;\n height: 20px;\n width: 10px;\n }\n\n /******** Firefox styles ********/\n /* slider track */\n input[type=\"range\"]::-moz-range-track {\n background-color: #ddd;\n border-radius: 0.5rem;\n height: 0.5rem;\n box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);\n border-radius: 4px;\n }\n\n /* slider thumb */\n input[type=\"range\"]::-moz-range-thumb {\n border: none;\n /*Removes extra border that FF applies*/\n border-radius: 0px;\n /*Removes default border-radius that FF applies*/\n\n /*custom styles*/\n background-color: #121e23;\n border: 1px solid #fff;\n height: 20px;\n width: 10px;\n }\n }\n }\n\n .btn_send {\n // color: #fff;\n // padding: 5px 15px;\n // background: #56a53d;\n // font-size: 14px;\n // display: block;\n max-width: fit-content;\n margin: 30px auto 0;\n // outline: none;\n // transition: all 250ms ease-in-out;\n\n &:disabled {\n cursor: progress;\n background: #cdcdcd;\n }\n }\n }\n\n &--title {\n position: relative;\n display: block;\n width: 100%;\n max-width: fit-content;\n margin: 0 auto 30px auto;\n text-align: center;\n padding-bottom: 8px;\n\n // &::before {\n // \tcontent: '';\n // \tposition: absolute;\n // \tbottom: 0;\n // \tleft: 50%;\n // \theight: 2px;\n // \twidth: calc(100% + 60px);\n // \tbackground: #132473;\n // \ttransform: translateX(-50%);\n // }\n\n h2 {\n margin: 0;\n padding: 0;\n }\n }\n\n .prev,\n .next {\n background: #88b14b;\n top: 50%;\n margin: -15px;\n position: absolute;\n transition: 0.3s;\n cursor: pointer;\n border-radius: 100%;\n\n &.disabled {\n background: #ddd;\n cursor: default;\n }\n\n .svg-arrow {\n margin: 0;\n width: 48px;\n height: 48px;\n display: block;\n padding: 7px;\n top: 0;\n\n path {\n transition: 0.3s;\n }\n }\n\n @media (max-width: 640px) {\n top: 40px;\n }\n }\n\n .prev {\n left: 25px;\n\n .svg-arrow {\n transform: rotate(180deg);\n }\n }\n\n .next {\n right: 25px;\n }\n }\n }\n }\n }\n }\n}\n\n#configurator_sended {\n padding: 40px 70px;\n box-sizing: border-box;\n height: 100%;\n position: relative;\n border: 2px solid #88b14b;\n width: 100%;\n max-width: 700px;\n margin: 50px auto;\n background: #fff;\n\n &::before {\n content: \"\";\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 100%;\n display: block;\n z-index: -1;\n\n background-color: #88b14b;\n clip-path: polygon(0% 0%, 98% 0, 100% 4%, 100% 100%, 0% 100%);\n top: -12px;\n left: inherit;\n right: -12px;\n }\n\n h2 {\n position: relative;\n display: block;\n width: 100%;\n max-width: fit-content;\n margin: 0 auto 50px auto;\n text-align: center;\n padding-bottom: 8px;\n }\n\n .configurator_sended_text {\n text-align: center;\n }\n}\n\n.step-info {\n display: block;\n font-size: 14px;\n margin-left: 39px;\n margin-top: 20px;\n}\n\n#home-page-seo {\n padding-top: 50px;\n padding-bottom: 50px;\n}"]} \ No newline at end of file +{"version":3,"sources":["custom.scss","custom.css"],"names":[],"mappings":"AACC;EACC,kBAAA;EACA,mBAAA;ACAF;ADEE;EACC,gBAAA;EACA,aAAA;EACA,yBAAA;EACA,4BAAA;ACAH;ADKE;EACC,UAAA;ACHH;ADKG;EACC,kCAAA;ACHJ;ADMG;EAPD;IAQE,qBAAA;ECHF;AACF;ADKG;EAXD;IAYE,UAAA;IACA,SAAA;ECFF;AACF;ADIG;EAhBD;IAiBE,qBAAA;ECDF;AACF;ADKC;EACC,aAAA;EACA,8BAAA;ACHF;ADKE;EAJD;IAKE,0BAAA;IACA,aAAA;ECFD;AACF;ADIE;EACC,aAAA;EACA,+BAAA;ACFH;ADIG;EAJD;IAKE,0BAAA;ECDF;AACF;ADII;EACC,WAAA;EACA,2BAAA;EAAA,sBAAA;ACFL;ADIK;EAJD;IAKE,iBAAA;IACA,kBAAA;ECDJ;AACF;ADKG;EACC,aAAA;EACA,cAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,iBAAA;ACHJ;ADKI;EARD;IASE,eAAA;IACA,gBAAA;ECFH;AACF;ADME;EACC,WAAA;EACA,gBAAA;ACJH;ADMG;EAJD;IAKE,gBAAA;ECHF;AACF;ADKG;EACC,aAAA;ACHJ;ADKI;EACC,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,mBAAA;ACHL;ADKK;EACC,gBAAA;ACHN;ADMK;EAVD;IAWE,kBAAA;ECHJ;AACF;ADOK;EACC,cAAA;EACA,qBAAA;EACA,wBAAA;ACLN;ADOM;EACC,gBAAA;EACA,WAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,mBAAA;ACLP;ADOO;EACC,WAAA;ACLR;ADIO;EACC,WAAA;ACLR;ADWM;EACC,cAAA;EACA,eAAA;E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9FD","file":"custom.css"} \ No newline at end of file diff --git a/wp-content/themes/ostal_WP/page-2101.php b/wp-content/themes/ostal_WP/page-2101.php index 3607fd6..a8e1bd7 100644 --- a/wp-content/themes/ostal_WP/page-2101.php +++ b/wp-content/themes/ostal_WP/page-2101.php @@ -77,20 +77,38 @@
-
@@ -129,14 +147,42 @@

Krok 3

- @@ -290,16 +340,13 @@ configData: { step_1: '', - step_2: { - length: 2000, - width: 2000, - height: 2500 - }, + step_2: {}, step_3: '', + step_3_extra: '', step_4: { name: '', email: '', - phone: '' + phone: '', } } } @@ -315,9 +362,6 @@ console.error('Error fetching data:', error); this.isLoaded = true; } - - console.log(this.acfData); - }, methods: { setStep_1(value, index) { @@ -327,6 +371,8 @@ this.updateStep3Content(); }, updateStep2Content() { + this.configData.step_2 = {}; + // Tutaj umieszczasz logikę, która zmienia zawartość kroku 2 w zależności od wyboru w kroku 1. // Przykład: zmiana obrazka w kroku 2 na podstawie wyboru if (this.selected_option_1 === 0) { // Zakładając, że pierwsza opcja w kroku 1 zmienia obraz na 'obrazek1.webp' @@ -340,6 +386,9 @@ }, updateStep3Content() { + this.configData.step_3 = {}; + this.configData.step_3_extra = ''; + if (this.selected_option_1 === 0) { this.acfData_step_3 = this.acfData.acf.step_3.items_1 } else if (this.selected_option_1 === 1) { @@ -349,9 +398,14 @@ } }, - setStep_3(value, index) { - this.configData.step_3 = value - this.selected_option_3 = index + setStep_3(value, index, extra_option = false) { + if (!extra_option) { + this.configData.step_3 = value + this.selected_option_3 = index + this.configData.step_3_extra = '' + } else { + this.configData.step_3_extra = value + } }, swipeSlide(refName, percent, progress) { const myDiv = this.$refs.calcBar; @@ -370,22 +424,34 @@ sendEmail() { if (this.checkFields()) { const url = '/konfigurator-mail.php'; - const data = { - configData: this.configData, - }; + + const formData = new FormData(); + + formData.append('configData', JSON.stringify(this.configData)); + + const file = this.$refs.fileInput?.files[0]; + if (file) { + formData.append('attachment', file); + } + // const data = { + // configData: this.configData, + // }; this.isSended = true - const options = { + // const options = { + // method: 'POST', + // headers: { + // 'Content-Type': 'application/json', + // }, + // body: JSON.stringify(data), + // }; + + + fetch(url, { method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(data), - }; - - - fetch(url, options) + body: formData + }) .then(response => response.json()) .then(data => { this.isSended = false @@ -466,6 +532,16 @@ return this.configData } }, + + watch: { + configData: { + deep: true, + handler() { + console.log('configData changed:\n', JSON.stringify(this.configData, null, 2)); + } + } + }, + beforeDestroy() { window.removeEventListener('resize', this.getWindowWidth); },