<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="author" content=""/>
<link rel="icon" type="image/png" href="{{ asset('themes/ismart') }}/img/favicon.png"/>
<link rel="apple-touch-icon" href="{{ asset('themes/ismart') }}/img/favicon.png"/>
{{ include('themes/ismart/part/social.html.twig') }}
<link rel="stylesheet" href="{{ asset('themes/ismart') }}/css/style.min.css">
<link rel="stylesheet" href="{{ asset('themes/ismart') }}/css/homepage.css?v=1.0">
{# TODO: font, icon #}
{% if not isMobile() %}
<link rel="stylesheet" href="{{ asset('themes/ismart') }}/css/homepage-desktop.css?v=1.0" media="(min-width: 992px)">
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css"/>
{% set googleTagManagerId = getSettingValueByKey('google-tag-manager-id') %}
<script>(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start':
new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', '{{ googleTagManagerId }}');</script>
<script>if (!window.HTMLPictureElement) {
document.createElement('picture');
}</script>
{% else %}
<link rel="stylesheet" href="{{ asset('themes/ismart') }}/css/homepage-mobile.css?v=1.0" media="(max-width: 991px)">
{% endif %}
{% block customStyle %}{% endblock %}
</head>
<body>
{% set textScripting = getSettingValueByKey('script-setting') %}
{{ textScripting | raw }}
{# TODO:fb script#}
{% if not isMobile() %}
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v17.0&appId=308313886501712&autoLogAppEvents=1" nonce="4ijSUNkO"></script>
{% endif %}
{% block header %}
{{ include('themes/ismart/part/header.html.twig') }}
{% endblock %}
{% block body %}
{% endblock %}
<div class="modal fade success" id="success" tabindex="-1" aria-labelledby="success" aria-hidden="true" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered modal-md">
<div class="modal-content">
<div class="modal-body">
<p class="text-center">Xin chúc mừng <bạn></bạn> đã đăng ký thành công!<strong>iSMART</strong>sẽ nhanh chóng liên hệ trong vòng 24h tới và gửi đến bạn những ưu đãi hấp dẫn. Xin cảm ơn!</p>
<img loading="lazy" class="icon" srcset="{{ asset('themes/ismart') }}/img/mascot-ic-2.webp" src="{{ asset('themes/ismart') }}/img/mascot-ic-2_small.webp" alt="">
</div>
<div class="modal-footer">
<a class="button red" data-bs-dismiss="modal"><span>Đóng</span></a>
</div>
</div>
</div>
</div>
{% block floating %}
<div class="floating">
<a id="scrollTop" class="icon top d-none">
<img loading="lazy"
srcset="{{ asset('themes/ismart') }}/img/top.webp"
src="{{ asset('themes/ismart') }}/img/top_small.webp" alt=""/></a>
{% set hotline = getSettingValueByKey('hotline') %}
<div class="list"><a class="icon call" href="tel:{{ hotline | replace({" ":""}) }}">
<img
data-src="{{ asset('themes/ismart') }}/img/call.webp"
src="{{ asset('themes/ismart') }}/img/call_small.webp"
alt=""/>
<span>HOTLINE</span> </a><a class="icon form">
<img loading="lazy"
data-src="{{ asset('themes/ismart') }}/img/form.webp"
src="{{ asset('themes/ismart') }}/img/form_small.webp"
alt=""/>
<span>ĐĂNG KÝ<br/>TƯ VẤN</span></a>
</div>
</div>
{% set messenger = getSettingValueByKey('facebook-messenger') %}
{% if not isMobile() %}
<div class="floating-mascot">
<a href="{{ messenger }}" target="_blank">
<picture id="transparencyImg">
<source type="image/webp" srcset="{{ asset('themes/ismart') }}/img/mascot-ic_thumb.webp" media="(min-width:992px)">
<source type="image/gif" srcset="{{ asset('themes/ismart') }}/img/mascot-2.gif" media="(min-width:992px)">
<img loading="lazy" src="{{ asset('themes/ismart') }}/img/mascot-2.gif" alt=""/>
</picture>
</a>
</div>
</picture>
</a>
</div>
<script>
var mascotRendered = false;
document.addEventListener("DOMContentLoaded", function() {
function renderMascot() {
var video = document.createElement('video');
video.className = 'd-none';
video.id = 'transparencyVideo';
video.loop = true;
video.muted = true;
video.autoplay = true;
video.playsInline = true;
video.poster = "{{ asset('themes/ismart') }}/img/mascot-ic_thumb.webp";
if (!mascotRendered && window.scrollY > 0) {
var source = document.createElement('source');
source.src = "{{ asset('themes/ismart') }}/img/mascot-2.webm";
source.type = 'video/webm';
source.media = '(min-width:992px)';
video.appendChild(source);
document.querySelector('.floating-mascot a').appendChild(video);
mascotRendered = true;
// Ensure the video plays automatically
video.classList.remove('d-none');
video.play().catch(function(error) {
console.error('Error playing video:', error);
});
}
}
window.addEventListener('scroll', renderMascot);
});
</script>
{% endif %}
<div class="overlay hide">
<div class="spinner-border text-warning" role="status"><span class="visually-hidden">Loading...</span></div>
</div>
<div class="floating-form"><a class="close"><i class="zmdi zmdi-close-circle"></i></a>
{{ include('themes/ismart/part/contact-form.html.twig') }}
</div>
{% endblock %}
{% block footer %}
{{ include('themes/ismart/part/footer.html.twig') }}
{% endblock %}
<script src="{{ asset('themes/ismart') }}/js/jquery.min.js" defer></script>
<script src="{{ asset('themes/ismart') }}/js/parsley.min.js" defer></script>
<script src="{{ asset('themes/ismart') }}/js/homepage.min.js?v=1.0" defer></script>
{% if not isMobile() %}
<link rel="stylesheet" href="{{ asset('themes/ismart') }}/vendors/normalize-css/normalize.min.css" defer/>
{{ include('themes/ismart/part/script-desktop.html.twig') }}
{% else %}
<div class="modal-backdrop fade"></div>
{{ include('themes/ismart/part/script-mobile.html.twig') }}
{% endif %}
<script src="{{ asset('plugins/jQueryForm/jquery.form.min.js') }}" defer></script>
</body>
</html>