jekyll-theme-marketing 0.5.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/{LICENSE.txt → LICENSE} +1 -1
- data/README.md +6 -1
- data/_includes/components/analytics/google.js +13 -0
- data/_includes/components/assets/file-downloads.html +15 -0
- data/_includes/components/breadcrumbs/bootstrap.html +35 -0
- data/_includes/components/breadcrumbs/bootstrap.js +11 -0
- data/_includes/components/bullets/fontawesome.html +4 -0
- data/_includes/components/cards/bootstrap-h.html +20 -0
- data/_includes/components/cards/bootstrap-v.html +16 -0
- data/_includes/components/contact-cards/phone-card.html +6 -0
- data/_includes/components/contact-cards/phone-directory.html +22 -0
- data/_includes/components/copyrights/progressive.html +19 -0
- data/_includes/components/exchange-rates/progressive.html +6 -0
- data/_includes/{body/header/exchange-rates/usd.html → components/exchange-rates/progressive.js} +1 -6
- data/_includes/components/filters/isotope.html +32 -0
- data/_includes/components/filters/isotope.js +47 -0
- data/_includes/components/firebase/sdk.html +17 -0
- data/_includes/components/firebase/special-offers.html +28 -0
- data/_includes/components/firebase/ui.html +15 -0
- data/_includes/components/firebase/ui.js +33 -0
- data/_includes/{head/fonts.html → components/fonts/google.html} +0 -0
- data/_includes/components/footers/progressive/custom-item.liquid +1 -0
- data/_includes/components/footers/progressive/custom-title.liquid +1 -0
- data/_includes/components/footers/progressive/footer.html +43 -0
- data/_includes/components/footers/progressive/top.html +27 -0
- data/_includes/components/forms/formspree.html +59 -0
- data/_includes/components/forms/formspree.js +35 -0
- data/_includes/components/forms/google-forms.css +5 -0
- data/_includes/components/forms/google-forms.html +76 -0
- data/_includes/components/forms/google-forms.js +31 -0
- data/_includes/components/generators/pdf/special-offers.html +51 -0
- data/_includes/components/icons/bootstrap.html +14 -0
- data/_includes/components/icons/progressive.html +29 -0
- data/_includes/components/icons/progressive.js +5 -0
- data/_includes/components/info-cards/card-deck.html +16 -0
- data/_includes/components/info-cards/progressive.html +20 -0
- data/_includes/components/info-cards/search-results.html +38 -0
- data/_includes/components/jumbotron/bootstrap.html +5 -0
- data/_includes/components/lang-switchers/two-langs.html +27 -0
- data/_includes/components/login/progressive.html +89 -0
- data/_includes/components/logos/motorola.html +3 -0
- data/_includes/components/logos/progressive.html +3 -0
- data/_includes/components/maps/google-maps.html +2 -0
- data/_includes/components/maps/google-maps.js +96 -0
- data/_includes/components/maps/image-map.html +21 -0
- data/_includes/components/megamenu/progressive.html +35 -0
- data/_includes/{head/meta.html → components/meta/progressive.html} +5 -1
- data/_includes/components/modals/bootstrap.html +124 -0
- data/_includes/components/modals/bootstrap.js +26 -0
- data/_includes/components/nav-items/bootstrap.html +23 -0
- data/_includes/components/nav-tabs/product-nav-tab.html +48 -0
- data/_includes/components/nav-tabs/product-nav-tab.js +38 -0
- data/_includes/components/navbars/bootstrap.html +16 -0
- data/_includes/components/navbars/common.liquid +14 -0
- data/_includes/components/navbars/progressive.html +33 -0
- data/_includes/components/navbars/progressive.js +18 -0
- data/_includes/components/panels/brands.html +12 -0
- data/_includes/{body → components}/product-cards/3d-space.html +5 -5
- data/_includes/components/product-cards/featured-product.html +15 -0
- data/_includes/components/product-cards/product-details.html +48 -0
- data/_includes/components/product-cards/product-generals.html +54 -0
- data/_includes/components/product-cards/progressive.html +57 -0
- data/_includes/components/scripts/body.js +41 -0
- data/_includes/components/scripts/head.js +14 -0
- data/_includes/components/scroll-to-tops/progressive.html +3 -0
- data/_includes/components/search-engines/lunr.html +19 -0
- data/_includes/components/search-engines/lunr.js +119 -0
- data/_includes/components/searchbars/progressive.html +14 -0
- data/_includes/components/sidenavs/material/dependencies.html +2 -2
- data/_includes/components/sliders/bootstrap.html +37 -0
- data/_includes/components/sliders/lightslider.html +35 -0
- data/_includes/components/sliders/lightslider.js +12 -0
- data/_includes/components/sliders/revolution-slider.html +67 -0
- data/_includes/components/social-media/facebook.html +18 -0
- data/_includes/components/social-media/progressive.html +9 -0
- data/_includes/components/spinners/bootstrap.html +5 -0
- data/_includes/components/stylesheets/progressive.html +47 -0
- data/_includes/components/timelines/9.html +27 -0
- data/_includes/components/topbars/progressive.html +36 -0
- data/_includes/components/topbars/progressive.js +5 -0
- data/_includes/components/videos/background.html +22 -0
- data/_includes/components/videos/youtube.html +23 -0
- data/_includes/components/zendesk/script.js +9 -0
- data/_includes/pages/footer/grupopv/our-offices.js +22 -0
- data/_layouts/default.html +30 -12
- data/_layouts/grid.html +34 -28
- data/_layouts/page.html +4 -48
- data/_layouts/product.html +29 -174
- data/_sass/common/_common.scss +32 -0
- data/_sass/components/breadcrumbs/_bootstrap.scss +2 -3
- data/_sass/components/contact-cards/_location.scss +14 -0
- data/_sass/components/contact-cards/_phone-card.scss +17 -0
- data/_sass/components/footers/_vg_progressive.scss +72 -0
- data/_sass/components/forms/_formspree.scss +5 -0
- data/_sass/components/forms/_google-forms.scss +29 -0
- data/_sass/components/icons/bootstrap.scss +21 -0
- data/_sass/components/info-cards/_card-deck.scss +12 -0
- data/_sass/components/info-cards/search-results.scss +9 -0
- data/_sass/components/jumbotron/bootstrap.scss +5 -0
- data/_sass/components/lang-switchers/_toogle-lang.scss +0 -1
- data/_sass/components/login/progressive.scss +13 -0
- data/_sass/components/logos/progressive.scss +12 -0
- data/_sass/components/maps/google-maps.scss +13 -0
- data/_sass/components/megamenu/progressive.scss +9 -0
- data/_sass/components/nav-items/bootstrap.scss +26 -0
- data/_sass/components/navbars/bootstrap.scss +8 -0
- data/_sass/components/navbars/progressive.scss +94 -0
- data/_sass/components/product-cards/_3d-space.scss +12 -12
- data/_sass/components/product-cards/_product-details.scss +6 -0
- data/_sass/components/product-cards/_product-generals.scss +13 -0
- data/_sass/components/product-cards/_progressive.scss +30 -0
- data/_sass/components/product-cards/featured-product.scss +12 -0
- data/_sass/components/searchbars/progressive.scss +8 -0
- data/_sass/components/sidenavs/_material.scss +160 -0
- data/_sass/components/sliders/_lightslider.scss +33 -0
- data/_sass/components/social-media/_progressive.scss +25 -0
- data/_sass/components/timelines/9.scss +152 -0
- data/_sass/components/videos/background.scss +22 -0
- data/_sass/grupopv/_navbar.scss +22 -0
- data/_sass/layouts/_404.scss +39 -0
- data/_sass/layouts/_default.scss +3 -0
- data/_sass/layouts/_page.scss +70 -0
- data/_sass/layouts/_product.scss +56 -0
- data/assets/css/main.min.scss +88 -0
- data/assets/img/common/favicon.png +0 -0
- data/assets/js/firebase/firebase-account-controller.js +42 -0
- data/assets/js/firebase/firebase-login.js +4 -4
- data/assets/js/firebase/firebase-sdk.js +19 -0
- data/assets/js/firebase/firebase-special-offers.js +41 -0
- data/assets/node_modules/@fortawesome/fontawesome-free-brands/index.js +1221 -0
- data/assets/node_modules/@fortawesome/fontawesome-free-regular/index.js +489 -0
- data/assets/node_modules/@fortawesome/fontawesome-free-solid/index.js +2013 -0
- data/assets/node_modules/@fortawesome/fontawesome/index.js +1823 -0
- data/assets/node_modules/@fortawesome/fontawesome/styles.css +345 -0
- data/assets/node_modules/bootstrap/dist/css/bootstrap.min.css +5 -3
- data/assets/node_modules/bootstrap/dist/css/bootstrap.min.css.map +1 -0
- data/assets/node_modules/bootstrap/dist/js/bootstrap.min.js +6 -5
- data/assets/node_modules/bootstrap/dist/js/bootstrap.min.js.map +1 -0
- data/assets/node_modules/bootstrap/scss/_badge.scss +54 -0
- data/assets/node_modules/bootstrap/scss/_buttons.scss +139 -0
- data/assets/node_modules/bootstrap/scss/_functions.scss +134 -0
- data/assets/node_modules/bootstrap/scss/_nav.scss +120 -0
- data/assets/node_modules/bootstrap/scss/_reboot.scss +482 -0
- data/assets/node_modules/bootstrap/scss/_variables.scss +1143 -0
- data/assets/node_modules/bootstrap/scss/mixins/_background-variant.scss +22 -0
- data/assets/node_modules/bootstrap/scss/mixins/_badge.scss +17 -0
- data/assets/node_modules/bootstrap/scss/mixins/_border-radius.scss +63 -0
- data/assets/node_modules/bootstrap/scss/mixins/_box-shadow.scss +20 -0
- data/assets/node_modules/bootstrap/scss/mixins/_breakpoints.scss +123 -0
- data/assets/node_modules/bootstrap/scss/mixins/_buttons.scss +110 -0
- data/assets/node_modules/bootstrap/scss/mixins/_deprecate.scss +10 -0
- data/assets/node_modules/bootstrap/scss/mixins/_gradients.scss +45 -0
- data/assets/node_modules/bootstrap/scss/mixins/_hover.scss +37 -0
- data/assets/node_modules/bootstrap/scss/mixins/_text-emphasis.scss +17 -0
- data/assets/node_modules/bootstrap/scss/mixins/_text-hide.scss +11 -0
- data/assets/node_modules/bootstrap/scss/mixins/_text-truncate.scss +8 -0
- data/assets/node_modules/bootstrap/scss/mixins/_transition.scss +16 -0
- data/assets/node_modules/bootstrap/scss/utilities/_background.scss +19 -0
- data/assets/node_modules/bootstrap/scss/utilities/_text.scss +72 -0
- data/assets/node_modules/bootstrap/scss/vendor/_rfs.scss +204 -0
- data/assets/node_modules/firebase/firebase-app.js +2 -0
- data/assets/node_modules/firebase/firebase-app.js.map +1 -0
- data/assets/node_modules/firebase/firebase-auth.js +2 -0
- data/assets/node_modules/firebase/firebase-auth.js.map +1 -0
- data/assets/node_modules/firebase/firebase-firestore.js +2 -0
- data/assets/node_modules/firebase/firebase-firestore.js.map +1 -0
- data/assets/node_modules/flag-icon-css/flags/1x1/br.svg +41 -41
- data/assets/node_modules/flag-icon-css/flags/1x1/mx.svg +371 -378
- data/assets/node_modules/flag-icon-css/flags/1x1/us.svg +2 -2
- data/assets/node_modules/flag-icon-css/sass/_flag-icon-list.scss +265 -249
- data/assets/node_modules/flag-icon-css/sass/_variables.scss +1 -1
- data/assets/node_modules/flag-icon-css/sass/flag-icon.scss +3 -4
- data/assets/node_modules/isotope-layout/dist/isotope.pkgd.min.js +12 -0
- data/assets/node_modules/jquery.stellar/jquery.stellar.min.js +9 -0
- data/assets/node_modules/jquery/dist/jquery.min.js +2 -0
- data/assets/node_modules/jquery/dist/jquery.min.map +1 -0
- data/assets/node_modules/jspdf/dist/jspdf.min.js +149 -88
- data/assets/node_modules/lightslider/dist/css/lightslider.min.css +3 -0
- data/assets/node_modules/lightslider/dist/img/controls.png +0 -0
- data/assets/node_modules/lightslider/dist/js/lightslider.min.js +4 -0
- data/assets/node_modules/lunr/lunr.min.js +6 -0
- data/assets/node_modules/vue/dist/vue.min.js +3 -3
- data/assets/vendors/revolution-slider/assets/coloredbg.png +0 -0
- data/assets/vendors/revolution-slider/assets/shadow3.png +0 -0
- data/assets/vendors/revolution-slider/css/settings.css +1480 -0
- data/assets/vendors/revolution-slider/font/revicons.svg +54 -0
- data/assets/vendors/revolution-slider/font/revicons.woff +0 -0
- data/assets/vendors/revolution-slider/js/jquery.themepunch.revolution.min.js +11 -0
- data/assets/vendors/revolution-slider/js/jquery.themepunch.tools.min.js +138 -0
- data/assets/vendors/revolution-slider/js/settings.js +110 -0
- data/assets/vendors/themeforest/fonts/social-icons.eot +0 -0
- data/assets/vendors/themeforest/fonts/social-icons.svg +403 -0
- data/assets/vendors/themeforest/fonts/social-icons.ttf +0 -0
- data/assets/vendors/themeforest/fonts/social-icons.woff +0 -0
- data/assets/vendors/themeforest/progressive/css/animate.css +1582 -0
- data/assets/vendors/themeforest/progressive/css/base.css +278 -0
- data/assets/vendors/themeforest/progressive/css/buttons.css +272 -0
- data/assets/vendors/themeforest/progressive/css/cms.css +289 -0
- data/assets/vendors/themeforest/progressive/css/responsive.css +2111 -0
- data/assets/vendors/themeforest/progressive/css/social-icons.css +130 -0
- data/assets/vendors/themeforest/progressive/css/style.css +9521 -0
- data/assets/vendors/themeforest/progressive/images/svg/loader.svg +34 -0
- data/assets/vendors/themeforest/progressive/js/jquery.appear.js +150 -0
- data/assets/vendors/themeforest/progressive/js/main.js +2176 -0
- metadata +189 -40
- data/_includes/body/footer.html +0 -0
- data/_includes/body/footer/buttons.html +0 -40
- data/_includes/body/header.html +0 -0
- data/_includes/body/header/logo.html +0 -5
- data/_includes/body/header/search-contact-phone-buttons.html +0 -29
- data/_includes/body/header/top-bar.html +0 -20
- data/_includes/body/scripts.html +0 -41
- data/_includes/head/firebase/sdk.html +0 -4
- data/_includes/head/google-analytics.html +0 -0
- data/_includes/head/scripts.html +0 -9
- data/_includes/head/style.html +0 -50
- data/_sass/components/navbars/_vg_progressive.scss +0 -44
- data/_sass/layouts/_grid.scss +0 -13
- data/assets/css/main.scss +0 -23
- data/assets/js/bootstrap/nav-tabs.js +0 -36
- data/assets/node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +0 -229
- data/assets/node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/node_modules/flag-icon-css/sass/_flag-icon-more.scss +0 -7
- data/assets/node_modules/font-awesome/css/font-awesome.min.css +0 -4
- data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
- data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/node_modules/jquery/dist/cdn/jquery.min.js +0 -4
@@ -0,0 +1,27 @@
|
|
1
|
+
{% for section in site.data.components.footers.progressive.common %}
|
2
|
+
{% unless site.links.footer[section.name.title].disabled %}
|
3
|
+
<aside class="col-md-{{ section.grid-class }}">
|
4
|
+
<div class="title-block pb-2 mb-3">
|
5
|
+
<h3 class="title text-white m-0">
|
6
|
+
<i class="{{ section.icon }}"></i>
|
7
|
+
{% include components/footers/progressive/custom-title.liquid %}
|
8
|
+
</h3>
|
9
|
+
</div>
|
10
|
+
<div class="custom">
|
11
|
+
<ul class="footer-list">
|
12
|
+
{% for item in section.items %}
|
13
|
+
{% unless site.links.footer[item.title].disabled %}
|
14
|
+
<li class="footer-list">
|
15
|
+
<a class="white" href="{{ item.link | relative_url }}">
|
16
|
+
<i class="{{ item.pre-icon }}" data-fa-transform="grow-2 left-3 up-1"></i>
|
17
|
+
{% include components/footers/progressive/custom-item.liquid %}
|
18
|
+
<i class="{{ item.post-icon }}"></i>
|
19
|
+
</a>
|
20
|
+
</li>
|
21
|
+
{% endunless %}
|
22
|
+
{% endfor %}
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
</aside>
|
26
|
+
{% endunless %}
|
27
|
+
{% endfor %}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<form id="contact-form" method="POST" class="needs-validation" data-component="forms/formspree" novalidate>
|
2
|
+
|
3
|
+
<!-- Start Formspree configuration -->
|
4
|
+
<input type="hidden" name="_subject" value="{{ page.form.request.subject | default: page.title }} | {{ site.title }}" /> <!-- email's subject -->
|
5
|
+
<input type="hidden" name="_next" value="{{ page.form.response.url | default: page.url | append: '?response' }}" /> <!-- thank-you page -->
|
6
|
+
<input type="hidden" name="_language" value="{{ page.form.lang | default: 'en' }}" /> <!-- reCAPTCHA language -->
|
7
|
+
<input type="hidden" name="_format" value="{{ page.form.body-style | default: 'plain' }}" /> <!-- email's style -->
|
8
|
+
<input type="hidden" name="_cc" value="{{ page.form.cc | default: site.formspree.contact-form.cc }}" /> <!-- email's cc -->
|
9
|
+
<input type="text" name="_gotcha" class="candy-gotcha" /> <!-- avoid SPAM -->
|
10
|
+
<!-- End Formspree configuration -->
|
11
|
+
|
12
|
+
<p data-appear-animation="fadeInUp">
|
13
|
+
{{ page.i18n[site.lang].form.request.header | default: page.form.request.header }}
|
14
|
+
</p>
|
15
|
+
|
16
|
+
{% for field in page.form.request.fields %}
|
17
|
+
<div class="form-group" data-appear-animation="fadeInUp">
|
18
|
+
<label>{{ field.label }}</label>
|
19
|
+
{% if field.type == 'checkbox' %}
|
20
|
+
{% for value in field.values %}
|
21
|
+
<input type="{{ field.type }}" name="{{ field.label }}" id="a{{ forloop.index }}" value="{{ value }}"/>
|
22
|
+
<label class="label-checkbox text-muted" for="a{{ forloop.index }}">{{ value }}</label>
|
23
|
+
{% endfor %}
|
24
|
+
{% elsif field.type == 'select' %}
|
25
|
+
<select name="{{ field.label }}">
|
26
|
+
<option selected disabled>Selecciona</option>
|
27
|
+
{% for value in field.values %}
|
28
|
+
<option value="{{ value }}">{{ value }}</option>
|
29
|
+
{% endfor %}
|
30
|
+
</select>
|
31
|
+
{% elsif field.type == 'date' %}
|
32
|
+
<input name="{{ field.label }}_day" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
33
|
+
<input name="{{ field.label }}_month" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
34
|
+
<input name="{{ field.label }}_year" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
35
|
+
{% elsif field.type == 'textarea' %}
|
36
|
+
<textarea name="{{ field.label }}" placeholder="{{ field.placeholder }}" class="form-control" rows="3" required></textarea>
|
37
|
+
{% else %}
|
38
|
+
<input name="{{ field.label }}" type="{{ field.type }}" class="form-control" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
39
|
+
{% endif %}
|
40
|
+
<small id="{{ field.label | downcase }}Help" class="form-text text-muted">{{ field.caption }}</small>
|
41
|
+
</div>
|
42
|
+
{% endfor %}
|
43
|
+
|
44
|
+
<hr class="my-4" data-appear-animation="fadeInUp">
|
45
|
+
<button type="submit" class="btn btn-primary" data-appear-animation="bounceIn">{{ page.form.request.send-button }}</button>
|
46
|
+
|
47
|
+
</form>
|
48
|
+
|
49
|
+
<div id="form-response" class="jumbotron rounded bg-white text-center">
|
50
|
+
<span class="text-success">
|
51
|
+
<h1>{{ page.form.response.header }}</h1>
|
52
|
+
<i class="fas fa-check fa-8x"></i>
|
53
|
+
</span>
|
54
|
+
<p class="lead">{{ page.form.response.subheader }}</p>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<script type="text/javascript">
|
58
|
+
{% include components/forms/formspree.js %}
|
59
|
+
</script>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// Configure constants
|
2
|
+
|
3
|
+
//// Response URL
|
4
|
+
const response = new URL(window.location.href).searchParams.has("response");
|
5
|
+
|
6
|
+
//// Email
|
7
|
+
const user = {{ site.formspree.contact-form.email.user }};
|
8
|
+
const company = {{ site.formspree.contact-form.email.company }};
|
9
|
+
const global_domain = {{ site.formspree.contact-form.email.global_domain }};
|
10
|
+
|
11
|
+
// Hide elements as needed
|
12
|
+
document.getElementById(response ? 'contact-form' : 'form-response').classList.add("d-none");
|
13
|
+
document.getElementById(response ? '{{ page.form.id }}' : 'form-response').classList.add("d-none")
|
14
|
+
|
15
|
+
// Define form action
|
16
|
+
document.querySelector('#contact-form').setAttribute('action', 'https://formspree.io/' + user + '@' + company + '.' + global_domain);
|
17
|
+
|
18
|
+
// Disable form submission if there are invalid fields
|
19
|
+
(function() {
|
20
|
+
'use strict';
|
21
|
+
window.addEventListener('load', function() {
|
22
|
+
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
23
|
+
var forms = document.getElementsByClassName('needs-validation');
|
24
|
+
// Loop over them and prevent submission
|
25
|
+
var validation = Array.prototype.filter.call(forms, function(form) {
|
26
|
+
form.addEventListener('submit', function(event) {
|
27
|
+
if (form.checkValidity() === false) {
|
28
|
+
event.preventDefault();
|
29
|
+
event.stopPropagation();
|
30
|
+
}
|
31
|
+
form.classList.add('was-validated');
|
32
|
+
}, false);
|
33
|
+
});
|
34
|
+
}, false);
|
35
|
+
})();
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<script type="text/javascript">document.getElementById("{{ page.form.id }}").classList.add("d-none")</script>
|
2
|
+
|
3
|
+
{% include components/forms/google-forms.css %}
|
4
|
+
|
5
|
+
<nav id="progressive-progress-navbar" class="navbar bg-white sticky">
|
6
|
+
<div class="container">
|
7
|
+
<div class="col-sm-8 mx-auto">
|
8
|
+
<p class="text-center">
|
9
|
+
<span>
|
10
|
+
{{ site.data.components.forms.google-forms[site.lang].completed.title | default: "You have completed" }}
|
11
|
+
<strong id="progress-bar-status"></strong>
|
12
|
+
{{ site.data.components.forms.google-forms[site.lang].form.title | default: "of the form" }}.
|
13
|
+
</span>
|
14
|
+
<span class="progress progress-striped active border-radius hover" style="height:20px">
|
15
|
+
<span id="progressive-progress-bar" class="progress-bar progress-bar-info"></span>
|
16
|
+
</span>
|
17
|
+
</p>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</nav>
|
21
|
+
|
22
|
+
<div class="container marketing-theme blur-background" data-appear-animation="fadeInUp">
|
23
|
+
<div class="row">
|
24
|
+
<div class="col-sm-3"></div>
|
25
|
+
<div class="col-sm-6">
|
26
|
+
<script type="text/javascript">var submitted=false;</script>
|
27
|
+
<iframe id="hidden_iframe" class="d-none" name="hidden_iframe" onload="submitted&&(window.location='{{ page.url }}?response')"></iframe>
|
28
|
+
<div id="form-request" class="jumbotron rounded bg-white">
|
29
|
+
<h3>{{ page.form.request.header }}</h3>
|
30
|
+
<p>{{ page.form.request.subheader }}</p>
|
31
|
+
<hr class="my-4">
|
32
|
+
<form class="form" method="post" onsubmit="submitted=!0" target="hidden_iframe" action="{{ page.form.google-forms-url }}">
|
33
|
+
{% for field in page.form.request.fields %}
|
34
|
+
<div class="form-group" data-appear-animation="fadeInUp">
|
35
|
+
<label>{{ field.label }}</label>
|
36
|
+
{% if field.type == 'checkbox' %}
|
37
|
+
{% for value in field.values %}
|
38
|
+
<input type="{{ field.type }}" name="entry.{{ field.google-entry }}" id="a{{ forloop.index }}" value="{{ value }}"/>
|
39
|
+
<label class="label-checkbox text-muted" for="a{{ forloop.index }}">{{ value }}</label>
|
40
|
+
{% endfor %}
|
41
|
+
{% elsif field.type == 'select' %}
|
42
|
+
<select name="entry.{{ field.google-entry }}">
|
43
|
+
<option selected disabled>Selecciona</option>
|
44
|
+
{% for value in field.values %}
|
45
|
+
<option value="{{ value }}">{{ value }}</option>
|
46
|
+
{% endfor %}
|
47
|
+
</select>
|
48
|
+
{% elsif field.type == 'date' %}
|
49
|
+
<input name="entry.{{ field.google-entry }}_day" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
50
|
+
<input name="entry.{{ field.google-entry }}_month" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
51
|
+
<input name="entry.{{ field.google-entry }}_year" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
52
|
+
{% else %}
|
53
|
+
<input name="entry.{{ field.google-entry }}" type="{{ field.type }}" aria-describedby="{{ field.label | downcase }}Help" placeholder="{{ field.placeholder }}" required/>
|
54
|
+
{% endif %}
|
55
|
+
<small id="{{ field.label | downcase }}Help" class="form-text text-muted">{{ field.caption }}</small>
|
56
|
+
</div>
|
57
|
+
{% endfor %}
|
58
|
+
<p class="text-danger" data-appear-animation="fadeInUp">{{ page.form.request.footer-danger }}</p>
|
59
|
+
<hr class="my-4">
|
60
|
+
<button type="submit" class="btn btn-primary" value="Send" data-appear-animation="bounceIn" onsubmit="this.disabled = true">{{ page.form.request.send-button }}</button>
|
61
|
+
</form>
|
62
|
+
</div>
|
63
|
+
<div id="form-response" class="jumbotron rounded bg-white text-center">
|
64
|
+
<span class="text-success">
|
65
|
+
<h1>{{ page.form.response.header }}</h1>
|
66
|
+
<i class="fas fa-check fa-8x"></i>
|
67
|
+
</span>
|
68
|
+
<p><sub>{{ page.form.response.subheader }}</sub></p>
|
69
|
+
<p class="marketing-theme red"><sub><sub>{{ page.form.response.footer-danger }}</sub></sub></p>
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
<div class="col-sm-3"></div>
|
73
|
+
</div>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
{% include components/forms/google-forms.js %}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
|
3
|
+
let response = new URL(window.location.href).searchParams.has("response");
|
4
|
+
document.getElementById(response ? 'form-request' : 'form-response').classList.add("d-none");
|
5
|
+
document.getElementById(response ? 'progressive-progress-navbar' : 'form-response').classList.add("d-none");
|
6
|
+
|
7
|
+
statusText = document.getElementById('progress-bar-status');
|
8
|
+
formInputs = document.querySelectorAll("[required]");
|
9
|
+
progressBar = document.getElementById('progressive-progress-bar');
|
10
|
+
|
11
|
+
progressBar.style.width = "1%";
|
12
|
+
progressBar.innerHTML = "1%";
|
13
|
+
statusText.innerHTML = "1%";
|
14
|
+
|
15
|
+
for (var i = 0; i < formInputs.length; i++) {
|
16
|
+
formInputs[i].addEventListener("input", updateProgressBar);
|
17
|
+
}
|
18
|
+
|
19
|
+
function updateProgressBar() {
|
20
|
+
progressBar.value = 0;
|
21
|
+
for (var i = 0; i < formInputs.length; i++) {
|
22
|
+
if ( formInputs[i].value != '' ){
|
23
|
+
progressBar.value += 100/formInputs.length;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
progressBar.style.width = progressBar.value + "%";
|
27
|
+
progressBar.innerHTML = Math.round(progressBar.value) + "%";
|
28
|
+
statusText.innerHTML = Math.round(progressBar.value) + "%";
|
29
|
+
}
|
30
|
+
|
31
|
+
</script>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{% if page.resources.special-offers.quantity > 0 %}
|
2
|
+
{% unless site.original or site.special-offers.customers == false %}
|
3
|
+
<p>
|
4
|
+
{% for resource in (1..page.resources.special-offers.quantity) %}
|
5
|
+
{% assign page-categories-size = page.categories | size %}
|
6
|
+
{% if page-categories-size >= 1 %}
|
7
|
+
{% assign page-categories = page.categories | join: "/" | append: "/" %}
|
8
|
+
{% endif %}
|
9
|
+
{% if forloop.index == 1 %}
|
10
|
+
{% assign image-num = '' %}
|
11
|
+
{% elsif forloop.index < 10 %}
|
12
|
+
{% assign image-num = forloop.index | prepend: "_0" %}
|
13
|
+
{% else %}
|
14
|
+
{% assign image-num = forloop.index | prepend: "_" %}
|
15
|
+
{% endif %}
|
16
|
+
<div class="mb-2 marketing-theme content-right">
|
17
|
+
<a class="btn btn-primary btn-sm text-white" onclick="specialOffersPDF{{ forloop.index }}();">
|
18
|
+
<strong><i class="fas fa-download fa-lg"></i> {{ site.data.i18n.common.product-layout[site.lang].download }}</strong>
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
<div id="special-offers-{{ forloop.index }}">
|
22
|
+
<img id="special-offers-promo{{ forloop.index }}" crossOrigin="Anonymous" src="https://s3-us-west-2.amazonaws.com/grupopv-public/components/generators/pdf/special-offers/img/{{ page.collection }}/{{ page-categories }}{% if page.resources.special-offers.model %}{{ page.resources.special-offers.model | downcase }}{% else %}{{ page.title | downcase }}{% endif %}{{ image-num | append: '.jpg' }}" alt="{{ page.title }}" title="{{ page.title }}">
|
23
|
+
<img id="special-offers-data{{ forloop.index }}" crossOrigin="Anonymous" src="https://s3-us-west-2.amazonaws.com/grupopv-public/components/generators/pdf/special-offers/img/customers/{{ site.domain | replace:'.',' ' | truncatewords: 1,"" }}.png" alt="{{ page.title }}" title="{{ page.title }}">
|
24
|
+
<canvas id="special-offers-promoCanvas{{ forloop.index }}" class="d-none" width="{{ layout.special-offers.width | times: layout.special-offers.dpi }}" height="{{ layout.special-offers.height | times: layout.special-offers.dpi }}"></canvas>
|
25
|
+
<canvas id="special-offers-dataCanvas{{ forloop.index }}" class="d-none" width="{{ layout.special-offers.width | times: layout.special-offers.dpi }}" height="{{ layout.special-offers.height | minus: 10.5 | times: layout.special-offers.dpi | times: -1 }}"></canvas>
|
26
|
+
</div>
|
27
|
+
<script>
|
28
|
+
function specialOffersPDF{{ forloop.index }}(){
|
29
|
+
var doc = new jsPDF({
|
30
|
+
orientation: '{{ layout.special-offers.orientation }}',
|
31
|
+
unit: '{{ layout.special-offers.unit }}',
|
32
|
+
format: '{{ layout.special-offers.format }}'
|
33
|
+
})
|
34
|
+
var promo = document.getElementById("special-offers-promo{{ forloop.index }}");
|
35
|
+
var promoCanvas = document.getElementById("special-offers-promoCanvas{{ forloop.index }}");
|
36
|
+
var data = document.getElementById("special-offers-data{{ forloop.index }}");
|
37
|
+
var dataCanvas = document.getElementById("special-offers-dataCanvas{{ forloop.index }}");
|
38
|
+
promoCanvas.getContext("2d").drawImage(promo, 0, 0);
|
39
|
+
dataCanvas.getContext("2d").drawImage(data, 0, 0);
|
40
|
+
doc.addImage(promoCanvas.toDataURL(), 'JPG', {{ layout.special-offers.margin }}, {{ layout.special-offers.margin }}, {{ layout.special-offers.width }}, {{ layout.special-offers.height }},'promoImg','FAST')
|
41
|
+
doc.addImage(dataCanvas.toDataURL(), 'PNG', {{ layout.special-offers.margin }}, {{ layout.special-offers.margin }} + {{ layout.special-offers.height }}, {{ layout.special-offers.width }}, {{ 11 | minus: layout.special-offers.margin | minus: layout.special-offers.margin }} - {{ layout.special-offers.height }},'dataImg','FAST')
|
42
|
+
doc.save('{{ page.title }}.pdf')
|
43
|
+
}
|
44
|
+
</script>
|
45
|
+
{% endfor %}
|
46
|
+
</p>
|
47
|
+
|
48
|
+
{% endunless %}
|
49
|
+
{% else %}
|
50
|
+
<p>{{ site.data.i18n.common.product-layout[site.lang].special-offers-empty }}</p>
|
51
|
+
{% endif %}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="d-none d-sm-block order-lg-1" data-component="icons/bootstrap">
|
2
|
+
<a href="{{ '/search/' | relative_url }}">
|
3
|
+
<i class="fas fa-search" data-fa-transform="down-5"></i>
|
4
|
+
</a>
|
5
|
+
<a href="{{ '/our-offices/' | relative_url }}">
|
6
|
+
<i class="fas fa-map-marker-alt" data-fa-transform="down-5"></i>
|
7
|
+
</a>
|
8
|
+
<a href="{{ '/contact/' | relative_url }}">
|
9
|
+
<i class="fas fa-envelope" data-fa-transform="down-6 grow-2"></i>
|
10
|
+
</a>
|
11
|
+
<a href="tel:{{ site.address[0].phone[0].number }}">
|
12
|
+
<i class="fas fa-phone" data-fa-transform="down-5"></i>
|
13
|
+
</a>
|
14
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div class="header-icons">
|
2
|
+
|
3
|
+
<div id="navbarSearchButton" class="search-header hidden-600"> <!-- start search button -->
|
4
|
+
<a href="#" data-proofer-ignore>
|
5
|
+
<i class="fas fa-search fa-lg" data-fa-transform="up-1 shrink-2"></i>
|
6
|
+
</a>
|
7
|
+
</div> <!-- end search button -->
|
8
|
+
|
9
|
+
<div class="location-header hidden-600"> <!-- start location button -->
|
10
|
+
<a href="{{ '/our-offices/' | relative_url }}">
|
11
|
+
<i class="fas fa-map-marker-alt fa-lg" data-fa-transform="up-1"></i>
|
12
|
+
</a>
|
13
|
+
</div> <!-- end location button -->
|
14
|
+
|
15
|
+
<div class="contact-header hidden-600"> <!-- start contact button -->
|
16
|
+
<a href="{{ '/contact/' | relative_url }}">
|
17
|
+
<i class="fas fa-envelope fa-lg" data-fa-transform="grow-2"></i>
|
18
|
+
</a>
|
19
|
+
</div> <!-- end contact button -->
|
20
|
+
|
21
|
+
<div class="phone-header hidden-600"> <!-- start phone button -->
|
22
|
+
<a href="#" data-proofer-ignore>
|
23
|
+
<i class="fas fa-phone fa-lg" data-fa-transform="shrink-1"></i>
|
24
|
+
</a>
|
25
|
+
</div> <!-- end phone button -->
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
{% include components/icons/progressive.js %}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="card-deck">
|
2
|
+
{% for info-card in page.info-cards %}
|
3
|
+
<div class="card pt-0 pt-sm-5 pt-lg-0" data-appear-animation="{{ info-card.animation }}">
|
4
|
+
<a href="{{ info-card.href | relative_url }}">
|
5
|
+
<img src="{{ site.amazon-s3 }}/components/info-cards/card-deck/img/{{ info-card.img }}.png" class="card-img-top" alt="{{ info-card.title }}">
|
6
|
+
</a>
|
7
|
+
<div class="card-body">
|
8
|
+
<h5 class="card-title">{{ info-card.title }}</h5>
|
9
|
+
<p class="card-text">{{ info-card.desc }}</p>
|
10
|
+
</div>
|
11
|
+
<div class="card-footer text-right bg-white border-top-0">
|
12
|
+
<a class="btn btn-primary" href="{{ info-card.href | relative_url }}">{{ info-card.button }}</a>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
{% endfor %}
|
16
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="container-fluid">
|
2
|
+
<div class="row services">
|
3
|
+
{% for info-card in page.info-cards %}
|
4
|
+
<div class="text-center col-12 col-sm my-4 my-sm-0">
|
5
|
+
<a href="{{ info-card.href }}">
|
6
|
+
<div class="big-icon bg text-primary" data-appear-animation="{{ info-card.animation }}">
|
7
|
+
{{ info-card.icon }}
|
8
|
+
</div>
|
9
|
+
</a>
|
10
|
+
<h4 class="title" data-appear-animation="{{ info-card.animation }}">{{ info-card.title }}</h4>
|
11
|
+
<div class="text-small" data-appear-animation="{{ info-card.animation }}">
|
12
|
+
{{ info-card.desc }}
|
13
|
+
<div class="clearfix"></div>
|
14
|
+
<br>
|
15
|
+
<button onclick="window.location.href='{{ info-card.href }}'" class="btn btn-primary" data-appear-animation="{{ info-card.animation }}">{{ info-card.button }}</button>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
{% endfor %}
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<li id="${results[i].ref}" class="pb-4" data-component="info-cards/search-results">
|
2
|
+
|
3
|
+
<div class="row">
|
4
|
+
|
5
|
+
<div class="col-4 col-md-3 col-lg-2 mt-0 d-flex align-items-center">
|
6
|
+
<a href="${item.url}">
|
7
|
+
<img src="${item.image}" alt="${item.title}">
|
8
|
+
</a>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="col-8 col-md-9 col-lg-10 mt-0 d-flex align-items-center">
|
12
|
+
<div class="mt-0">
|
13
|
+
<div class="mt-0 mb-1">
|
14
|
+
<a href="${item.url}" class="text-dark">
|
15
|
+
<i class="fas fa-angle-right fa-xs text-muted ml-1" data-fa-transform="left-2"></i>
|
16
|
+
${item.title}
|
17
|
+
</a>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="line-clamp mb-1">
|
21
|
+
<a href="${item.url}" class="nav-link text-break py-1 px-0 text-success">
|
22
|
+
<i class="fas fa-link fa-xs"></i>
|
23
|
+
${window.location.protocol}//${window.location.hostname}${item.url}
|
24
|
+
</a>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="line-clamp">
|
28
|
+
<span class="badge badge-primary">
|
29
|
+
<i class="fas fa-star"></i> ${results[i].score.toFixed(1)}
|
30
|
+
</span>
|
31
|
+
<span class="text-muted">${(item.description ? item.description : item.content)}</span>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
</div>
|
37
|
+
|
38
|
+
</li>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<div class="jumbotron bg-cover h-100" data-component="jumbotron/bootstrap" style="background-image: url('{{ site.amazon-s3 }}/assets/img/components/jumbotron/bootstrap/{{ include.img }}.jpg');">
|
2
|
+
<h2 class="display-4 text-white" data-appear-animation="fadeInDown">{{ include.title }}</h2>
|
3
|
+
<p class="lead text-white" data-appear-animation="fadeInUp">{{ include.desc }}</p>
|
4
|
+
<a class="btn btn-primary" href="{{ include.href | relative_url }}" role="button" data-appear-animation="fadeInUp">{{ include.button }}</a>
|
5
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<a href="javascript:switchLang()" class="lang-switcher mt-1">
|
2
|
+
<span class="flag-icon flag-icon-squared" id="lang-switcher"></span>
|
3
|
+
</a>
|
4
|
+
|
5
|
+
<script type="text/javascript">
|
6
|
+
if (!window.location.href.includes('grupopv')) {
|
7
|
+
document.querySelector('.lang-switcher').classList.add('d-none');
|
8
|
+
}
|
9
|
+
|
10
|
+
currentLang = document.getElementsByTagName("html")[0].getAttribute("lang");
|
11
|
+
|
12
|
+
if (currentLang == 'en') {
|
13
|
+
document.querySelector('#lang-switcher').classList.add('flag-icon-mx');
|
14
|
+
} else {
|
15
|
+
document.querySelector('#lang-switcher').classList.add('flag-icon-us');
|
16
|
+
}
|
17
|
+
|
18
|
+
function switchLang(){
|
19
|
+
if (currentLang == 'en') {
|
20
|
+
url = window.location.href.replace('localhost:4000','grupopv.mx').replace('grupopv.us','grupopv.mx');
|
21
|
+
window.location.href = url;
|
22
|
+
} else {
|
23
|
+
url = window.location.href.replace('localhost:4000','grupopv.us').replace('grupopv.mx','grupopv.us');
|
24
|
+
window.location.href = url;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
</script>
|