jekyll-theme-marketing 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +5 -5
  2. data/{LICENSE.txt → LICENSE} +1 -1
  3. data/README.md +6 -1
  4. data/_includes/components/analytics/google.js +13 -0
  5. data/_includes/components/assets/file-downloads.html +15 -0
  6. data/_includes/components/breadcrumbs/bootstrap.html +35 -0
  7. data/_includes/components/breadcrumbs/bootstrap.js +11 -0
  8. data/_includes/components/bullets/fontawesome.html +4 -0
  9. data/_includes/components/cards/bootstrap-h.html +20 -0
  10. data/_includes/components/cards/bootstrap-v.html +16 -0
  11. data/_includes/components/contact-cards/phone-card.html +6 -0
  12. data/_includes/components/contact-cards/phone-directory.html +22 -0
  13. data/_includes/components/copyrights/progressive.html +19 -0
  14. data/_includes/components/exchange-rates/progressive.html +6 -0
  15. data/_includes/{body/header/exchange-rates/usd.html → components/exchange-rates/progressive.js} +1 -6
  16. data/_includes/components/filters/isotope.html +32 -0
  17. data/_includes/components/filters/isotope.js +47 -0
  18. data/_includes/components/firebase/sdk.html +17 -0
  19. data/_includes/components/firebase/special-offers.html +28 -0
  20. data/_includes/components/firebase/ui.html +15 -0
  21. data/_includes/components/firebase/ui.js +33 -0
  22. data/_includes/{head/fonts.html → components/fonts/google.html} +0 -0
  23. data/_includes/components/footers/progressive/custom-item.liquid +1 -0
  24. data/_includes/components/footers/progressive/custom-title.liquid +1 -0
  25. data/_includes/components/footers/progressive/footer.html +43 -0
  26. data/_includes/components/footers/progressive/top.html +27 -0
  27. data/_includes/components/forms/formspree.html +59 -0
  28. data/_includes/components/forms/formspree.js +35 -0
  29. data/_includes/components/forms/google-forms.css +5 -0
  30. data/_includes/components/forms/google-forms.html +76 -0
  31. data/_includes/components/forms/google-forms.js +31 -0
  32. data/_includes/components/generators/pdf/special-offers.html +51 -0
  33. data/_includes/components/icons/bootstrap.html +14 -0
  34. data/_includes/components/icons/progressive.html +29 -0
  35. data/_includes/components/icons/progressive.js +5 -0
  36. data/_includes/components/info-cards/card-deck.html +16 -0
  37. data/_includes/components/info-cards/progressive.html +20 -0
  38. data/_includes/components/info-cards/search-results.html +38 -0
  39. data/_includes/components/jumbotron/bootstrap.html +5 -0
  40. data/_includes/components/lang-switchers/two-langs.html +27 -0
  41. data/_includes/components/login/progressive.html +89 -0
  42. data/_includes/components/logos/motorola.html +3 -0
  43. data/_includes/components/logos/progressive.html +3 -0
  44. data/_includes/components/maps/google-maps.html +2 -0
  45. data/_includes/components/maps/google-maps.js +96 -0
  46. data/_includes/components/maps/image-map.html +21 -0
  47. data/_includes/components/megamenu/progressive.html +35 -0
  48. data/_includes/{head/meta.html → components/meta/progressive.html} +5 -1
  49. data/_includes/components/modals/bootstrap.html +124 -0
  50. data/_includes/components/modals/bootstrap.js +26 -0
  51. data/_includes/components/nav-items/bootstrap.html +23 -0
  52. data/_includes/components/nav-tabs/product-nav-tab.html +48 -0
  53. data/_includes/components/nav-tabs/product-nav-tab.js +38 -0
  54. data/_includes/components/navbars/bootstrap.html +16 -0
  55. data/_includes/components/navbars/common.liquid +14 -0
  56. data/_includes/components/navbars/progressive.html +33 -0
  57. data/_includes/components/navbars/progressive.js +18 -0
  58. data/_includes/components/panels/brands.html +12 -0
  59. data/_includes/{body → components}/product-cards/3d-space.html +5 -5
  60. data/_includes/components/product-cards/featured-product.html +15 -0
  61. data/_includes/components/product-cards/product-details.html +48 -0
  62. data/_includes/components/product-cards/product-generals.html +54 -0
  63. data/_includes/components/product-cards/progressive.html +57 -0
  64. data/_includes/components/scripts/body.js +41 -0
  65. data/_includes/components/scripts/head.js +14 -0
  66. data/_includes/components/scroll-to-tops/progressive.html +3 -0
  67. data/_includes/components/search-engines/lunr.html +19 -0
  68. data/_includes/components/search-engines/lunr.js +119 -0
  69. data/_includes/components/searchbars/progressive.html +14 -0
  70. data/_includes/components/sidenavs/material/dependencies.html +2 -2
  71. data/_includes/components/sliders/bootstrap.html +37 -0
  72. data/_includes/components/sliders/lightslider.html +35 -0
  73. data/_includes/components/sliders/lightslider.js +12 -0
  74. data/_includes/components/sliders/revolution-slider.html +67 -0
  75. data/_includes/components/social-media/facebook.html +18 -0
  76. data/_includes/components/social-media/progressive.html +9 -0
  77. data/_includes/components/spinners/bootstrap.html +5 -0
  78. data/_includes/components/stylesheets/progressive.html +47 -0
  79. data/_includes/components/timelines/9.html +27 -0
  80. data/_includes/components/topbars/progressive.html +36 -0
  81. data/_includes/components/topbars/progressive.js +5 -0
  82. data/_includes/components/videos/background.html +22 -0
  83. data/_includes/components/videos/youtube.html +23 -0
  84. data/_includes/components/zendesk/script.js +9 -0
  85. data/_includes/pages/footer/grupopv/our-offices.js +22 -0
  86. data/_layouts/default.html +30 -12
  87. data/_layouts/grid.html +34 -28
  88. data/_layouts/page.html +4 -48
  89. data/_layouts/product.html +29 -174
  90. data/_sass/common/_common.scss +32 -0
  91. data/_sass/components/breadcrumbs/_bootstrap.scss +2 -3
  92. data/_sass/components/contact-cards/_location.scss +14 -0
  93. data/_sass/components/contact-cards/_phone-card.scss +17 -0
  94. data/_sass/components/footers/_vg_progressive.scss +72 -0
  95. data/_sass/components/forms/_formspree.scss +5 -0
  96. data/_sass/components/forms/_google-forms.scss +29 -0
  97. data/_sass/components/icons/bootstrap.scss +21 -0
  98. data/_sass/components/info-cards/_card-deck.scss +12 -0
  99. data/_sass/components/info-cards/search-results.scss +9 -0
  100. data/_sass/components/jumbotron/bootstrap.scss +5 -0
  101. data/_sass/components/lang-switchers/_toogle-lang.scss +0 -1
  102. data/_sass/components/login/progressive.scss +13 -0
  103. data/_sass/components/logos/progressive.scss +12 -0
  104. data/_sass/components/maps/google-maps.scss +13 -0
  105. data/_sass/components/megamenu/progressive.scss +9 -0
  106. data/_sass/components/nav-items/bootstrap.scss +26 -0
  107. data/_sass/components/navbars/bootstrap.scss +8 -0
  108. data/_sass/components/navbars/progressive.scss +94 -0
  109. data/_sass/components/product-cards/_3d-space.scss +12 -12
  110. data/_sass/components/product-cards/_product-details.scss +6 -0
  111. data/_sass/components/product-cards/_product-generals.scss +13 -0
  112. data/_sass/components/product-cards/_progressive.scss +30 -0
  113. data/_sass/components/product-cards/featured-product.scss +12 -0
  114. data/_sass/components/searchbars/progressive.scss +8 -0
  115. data/_sass/components/sidenavs/_material.scss +160 -0
  116. data/_sass/components/sliders/_lightslider.scss +33 -0
  117. data/_sass/components/social-media/_progressive.scss +25 -0
  118. data/_sass/components/timelines/9.scss +152 -0
  119. data/_sass/components/videos/background.scss +22 -0
  120. data/_sass/grupopv/_navbar.scss +22 -0
  121. data/_sass/layouts/_404.scss +39 -0
  122. data/_sass/layouts/_default.scss +3 -0
  123. data/_sass/layouts/_page.scss +70 -0
  124. data/_sass/layouts/_product.scss +56 -0
  125. data/assets/css/main.min.scss +88 -0
  126. data/assets/img/common/favicon.png +0 -0
  127. data/assets/js/firebase/firebase-account-controller.js +42 -0
  128. data/assets/js/firebase/firebase-login.js +4 -4
  129. data/assets/js/firebase/firebase-sdk.js +19 -0
  130. data/assets/js/firebase/firebase-special-offers.js +41 -0
  131. data/assets/node_modules/@fortawesome/fontawesome-free-brands/index.js +1221 -0
  132. data/assets/node_modules/@fortawesome/fontawesome-free-regular/index.js +489 -0
  133. data/assets/node_modules/@fortawesome/fontawesome-free-solid/index.js +2013 -0
  134. data/assets/node_modules/@fortawesome/fontawesome/index.js +1823 -0
  135. data/assets/node_modules/@fortawesome/fontawesome/styles.css +345 -0
  136. data/assets/node_modules/bootstrap/dist/css/bootstrap.min.css +5 -3
  137. data/assets/node_modules/bootstrap/dist/css/bootstrap.min.css.map +1 -0
  138. data/assets/node_modules/bootstrap/dist/js/bootstrap.min.js +6 -5
  139. data/assets/node_modules/bootstrap/dist/js/bootstrap.min.js.map +1 -0
  140. data/assets/node_modules/bootstrap/scss/_badge.scss +54 -0
  141. data/assets/node_modules/bootstrap/scss/_buttons.scss +139 -0
  142. data/assets/node_modules/bootstrap/scss/_functions.scss +134 -0
  143. data/assets/node_modules/bootstrap/scss/_nav.scss +120 -0
  144. data/assets/node_modules/bootstrap/scss/_reboot.scss +482 -0
  145. data/assets/node_modules/bootstrap/scss/_variables.scss +1143 -0
  146. data/assets/node_modules/bootstrap/scss/mixins/_background-variant.scss +22 -0
  147. data/assets/node_modules/bootstrap/scss/mixins/_badge.scss +17 -0
  148. data/assets/node_modules/bootstrap/scss/mixins/_border-radius.scss +63 -0
  149. data/assets/node_modules/bootstrap/scss/mixins/_box-shadow.scss +20 -0
  150. data/assets/node_modules/bootstrap/scss/mixins/_breakpoints.scss +123 -0
  151. data/assets/node_modules/bootstrap/scss/mixins/_buttons.scss +110 -0
  152. data/assets/node_modules/bootstrap/scss/mixins/_deprecate.scss +10 -0
  153. data/assets/node_modules/bootstrap/scss/mixins/_gradients.scss +45 -0
  154. data/assets/node_modules/bootstrap/scss/mixins/_hover.scss +37 -0
  155. data/assets/node_modules/bootstrap/scss/mixins/_text-emphasis.scss +17 -0
  156. data/assets/node_modules/bootstrap/scss/mixins/_text-hide.scss +11 -0
  157. data/assets/node_modules/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  158. data/assets/node_modules/bootstrap/scss/mixins/_transition.scss +16 -0
  159. data/assets/node_modules/bootstrap/scss/utilities/_background.scss +19 -0
  160. data/assets/node_modules/bootstrap/scss/utilities/_text.scss +72 -0
  161. data/assets/node_modules/bootstrap/scss/vendor/_rfs.scss +204 -0
  162. data/assets/node_modules/firebase/firebase-app.js +2 -0
  163. data/assets/node_modules/firebase/firebase-app.js.map +1 -0
  164. data/assets/node_modules/firebase/firebase-auth.js +2 -0
  165. data/assets/node_modules/firebase/firebase-auth.js.map +1 -0
  166. data/assets/node_modules/firebase/firebase-firestore.js +2 -0
  167. data/assets/node_modules/firebase/firebase-firestore.js.map +1 -0
  168. data/assets/node_modules/flag-icon-css/flags/1x1/br.svg +41 -41
  169. data/assets/node_modules/flag-icon-css/flags/1x1/mx.svg +371 -378
  170. data/assets/node_modules/flag-icon-css/flags/1x1/us.svg +2 -2
  171. data/assets/node_modules/flag-icon-css/sass/_flag-icon-list.scss +265 -249
  172. data/assets/node_modules/flag-icon-css/sass/_variables.scss +1 -1
  173. data/assets/node_modules/flag-icon-css/sass/flag-icon.scss +3 -4
  174. data/assets/node_modules/isotope-layout/dist/isotope.pkgd.min.js +12 -0
  175. data/assets/node_modules/jquery.stellar/jquery.stellar.min.js +9 -0
  176. data/assets/node_modules/jquery/dist/jquery.min.js +2 -0
  177. data/assets/node_modules/jquery/dist/jquery.min.map +1 -0
  178. data/assets/node_modules/jspdf/dist/jspdf.min.js +149 -88
  179. data/assets/node_modules/lightslider/dist/css/lightslider.min.css +3 -0
  180. data/assets/node_modules/lightslider/dist/img/controls.png +0 -0
  181. data/assets/node_modules/lightslider/dist/js/lightslider.min.js +4 -0
  182. data/assets/node_modules/lunr/lunr.min.js +6 -0
  183. data/assets/node_modules/vue/dist/vue.min.js +3 -3
  184. data/assets/vendors/revolution-slider/assets/coloredbg.png +0 -0
  185. data/assets/vendors/revolution-slider/assets/shadow3.png +0 -0
  186. data/assets/vendors/revolution-slider/css/settings.css +1480 -0
  187. data/assets/vendors/revolution-slider/font/revicons.svg +54 -0
  188. data/assets/vendors/revolution-slider/font/revicons.woff +0 -0
  189. data/assets/vendors/revolution-slider/js/jquery.themepunch.revolution.min.js +11 -0
  190. data/assets/vendors/revolution-slider/js/jquery.themepunch.tools.min.js +138 -0
  191. data/assets/vendors/revolution-slider/js/settings.js +110 -0
  192. data/assets/vendors/themeforest/fonts/social-icons.eot +0 -0
  193. data/assets/vendors/themeforest/fonts/social-icons.svg +403 -0
  194. data/assets/vendors/themeforest/fonts/social-icons.ttf +0 -0
  195. data/assets/vendors/themeforest/fonts/social-icons.woff +0 -0
  196. data/assets/vendors/themeforest/progressive/css/animate.css +1582 -0
  197. data/assets/vendors/themeforest/progressive/css/base.css +278 -0
  198. data/assets/vendors/themeforest/progressive/css/buttons.css +272 -0
  199. data/assets/vendors/themeforest/progressive/css/cms.css +289 -0
  200. data/assets/vendors/themeforest/progressive/css/responsive.css +2111 -0
  201. data/assets/vendors/themeforest/progressive/css/social-icons.css +130 -0
  202. data/assets/vendors/themeforest/progressive/css/style.css +9521 -0
  203. data/assets/vendors/themeforest/progressive/images/svg/loader.svg +34 -0
  204. data/assets/vendors/themeforest/progressive/js/jquery.appear.js +150 -0
  205. data/assets/vendors/themeforest/progressive/js/main.js +2176 -0
  206. metadata +189 -40
  207. data/_includes/body/footer.html +0 -0
  208. data/_includes/body/footer/buttons.html +0 -40
  209. data/_includes/body/header.html +0 -0
  210. data/_includes/body/header/logo.html +0 -5
  211. data/_includes/body/header/search-contact-phone-buttons.html +0 -29
  212. data/_includes/body/header/top-bar.html +0 -20
  213. data/_includes/body/scripts.html +0 -41
  214. data/_includes/head/firebase/sdk.html +0 -4
  215. data/_includes/head/google-analytics.html +0 -0
  216. data/_includes/head/scripts.html +0 -9
  217. data/_includes/head/style.html +0 -50
  218. data/_sass/components/navbars/_vg_progressive.scss +0 -44
  219. data/_sass/layouts/_grid.scss +0 -13
  220. data/assets/css/main.scss +0 -23
  221. data/assets/js/bootstrap/nav-tabs.js +0 -36
  222. data/assets/node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +0 -229
  223. data/assets/node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  224. data/assets/node_modules/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  225. data/assets/node_modules/flag-icon-css/sass/_flag-icon-more.scss +0 -7
  226. data/assets/node_modules/font-awesome/css/font-awesome.min.css +0 -4
  227. data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  228. data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
  229. data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  230. data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  231. data/assets/node_modules/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  232. data/assets/node_modules/jquery/dist/cdn/jquery.min.js +0 -4
@@ -0,0 +1,22 @@
1
+ [data-component="videos/background"] {
2
+ #cm-video-bg .white.text-center {
3
+ padding: 112px 0px;
4
+ }
5
+ @include media-breakpoint-up(lg) {
6
+ .fwb-video {
7
+ height: 900px;
8
+ }
9
+ }
10
+ @include media-breakpoint-between(sm, md) {
11
+ .fwb-video {
12
+ height: 620px;
13
+ }
14
+ }
15
+ @include media-breakpoint-only(xs) {
16
+ .fwb-video {
17
+ video {
18
+ width: 100%!important;
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ div.phone-active div.custom {
2
+ &{
3
+ text-align: center;
4
+ }
5
+ span.phone {
6
+ font-size: 10pt;
7
+ }
8
+ }
9
+
10
+ div#exchange-rates {
11
+ position: absolute;
12
+ margin-top: 7px;
13
+ svg{
14
+ margin-left: 10px;
15
+ }
16
+ }
17
+
18
+ @media (max-width: 700px) {
19
+ div.phone-active div.custom span.phone {
20
+ font-size: 7.8pt;
21
+ }
22
+ }
@@ -0,0 +1,39 @@
1
+ body.page-404 article.container{
2
+ padding-top: 75px;
3
+ }
4
+
5
+ body.page-404 h1, body.page-404 h3{
6
+ color: #000;
7
+ }
8
+
9
+ body.page-404 .btnbb {
10
+ background: #000000;
11
+ -webkit-border-radius: 0;
12
+ -moz-border-radius: 0;
13
+ border-radius: 0px;
14
+ font-family: Arial;
15
+ color: #ffffff;
16
+ font-size: 13px;
17
+ padding: 9px 11px 9px 11px;
18
+ text-decoration: none;
19
+ }
20
+
21
+ body.page-404 .btnbb:hover {
22
+ background: #000;
23
+ -webkit-border-radius: 0;
24
+ -moz-border-radius: 0;
25
+ border-radius: 0px;
26
+ font-family: Arial;
27
+ color: #ffffff;
28
+ font-size: 13px;
29
+ padding: 9px 11px 9px 11px;
30
+ text-decoration: none;
31
+ }
32
+
33
+ body.page-404 a:visited {
34
+ color: #fff;
35
+ }
36
+
37
+ body.page-404 a {
38
+ color: #fff;
39
+ }
@@ -0,0 +1,3 @@
1
+ body#marketing-theme{
2
+ background-image: url($amazon-s3 + '/layouts/default/img/background.jpg');
3
+ }
@@ -0,0 +1,70 @@
1
+ h2.post{
2
+ padding-top: 25px;
3
+ text-align: center;
4
+ text-transform: uppercase;
5
+ }
6
+
7
+ h3.post{
8
+ text-align: center;
9
+ }
10
+
11
+ .programming-software h4{
12
+ color: #1a69d5;
13
+ }
14
+
15
+ div.post{
16
+ padding: 2%;
17
+ }
18
+
19
+ div.post p {
20
+ padding-left: 2%;
21
+ }
22
+
23
+ div.post p img{
24
+ text-align: center;
25
+ }
26
+
27
+ img.img-small, a.img-small {
28
+ width: 25%;
29
+ }
30
+
31
+ img.img-center, a.img-center {
32
+ display: block;
33
+ margin: 0 auto;
34
+ }
35
+
36
+ div.post div.center p.center-paragraph,
37
+ div.post div.center ul.center-paragraph{
38
+ margin: 30px auto;
39
+ max-width: 900px;
40
+ }
41
+
42
+ div.post .center{
43
+ text-align: center;
44
+ }
45
+
46
+ div.post .justify{
47
+ text-align: justify;
48
+ }
49
+
50
+ div.post .left{
51
+ text-align: left;
52
+ }
53
+
54
+ p.footer-font,
55
+ ul.footer-font {
56
+ color: #808080;
57
+ font-family: 'Arimo ', sans-serif;
58
+ font-size: 16px;
59
+ }
60
+
61
+ div.post div.center p.title{
62
+ color: #1a69d5;
63
+ font-family: 'helvetica', sans-serif;
64
+ font-size: 18pt
65
+ }
66
+
67
+ div.post div.center p.subtitle{
68
+ margin: 30px auto;
69
+ max-width: 700px;
70
+ }
@@ -1,9 +1,65 @@
1
+ #product-images {
2
+ margin-top: -10px;
3
+ margin-bottom: 10px;
4
+ }
5
+
6
+ #product-generals {
7
+ margin-bottom: 10px;
8
+
9
+ p, div.product-price span {
10
+ font-size: 1.2em;
11
+ }
12
+
13
+ div.product-price{
14
+ text-align: left;
15
+ margin-left: 10px;
16
+ }
17
+ }
18
+
19
+ #downloads{
20
+ span.product-downloads{
21
+ font-size: 1.2em;
22
+ margin-left: 7px;
23
+ }
24
+ }
25
+
26
+ #special-offers{
27
+ .container{
28
+ p{
29
+ img{
30
+ width: 800px;
31
+ margin-bottom: 10px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
1
37
  div#special-offers{
2
38
  #special-offers-object{
3
39
  height: 1000px;
4
40
  }
5
41
  }
6
42
 
43
+ @media (min-width: 1199px){
44
+ #product-generals {
45
+ margin-top: 70px;
46
+ }
47
+ }
48
+
49
+ @media (min-width: 992px){
50
+ #product-generals {
51
+ margin-top: 20px;
52
+
53
+ p {
54
+ padding-top: 10px;
55
+ }
56
+
57
+ div.product-price{
58
+ padding-top: 20px;
59
+ }
60
+ }
61
+ }
62
+
7
63
  // Extra small devices (portrait phones, less than 576px)
8
64
  @media (max-width: 575.98px) {
9
65
  div#special-offers{
@@ -0,0 +1,88 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+ // Define charset
5
+ @charset "utf-8";
6
+
7
+ // Define variables
8
+ $amazon-s3: '{{ site.amazon-s3 }}';
9
+ $font-color-menu: {{ site.css.menu.font-color }};
10
+ $icon-color-menu: {{ site.css.menu.icons }};
11
+ $navbar-background-color: {{ site.css.navbar.background-color | default: '#fff' }};
12
+ $footer-top-background-color: {{ site.css.footer.top.background-color | default: site.css.menu.font-color }};
13
+ $footer-bottom-background-color: {{ site.css.footer.bottom.background-color | default: "#f7f7f7" }};
14
+ $footer-bottom-font-color: {{ site.css.footer.bottom.font-color | default: "#7f7f7f" }};
15
+
16
+ // Define bootstrap variables
17
+ $theme-colors: (
18
+ "primary": {{ site.css.bootstrap.primary | default: site.css.menu.font-color }}
19
+ );
20
+
21
+ // Import bootstrap partials
22
+ @import "../assets/node_modules/bootstrap/scss/functions";
23
+ @import "../assets/node_modules/bootstrap/scss/variables";
24
+ @import "../assets/node_modules/bootstrap/scss/vendor/rfs";
25
+ @import "../assets/node_modules/bootstrap/scss/mixins/deprecate";
26
+ @import "../assets/node_modules/bootstrap/scss/mixins/breakpoints";
27
+ @import "../assets/node_modules/bootstrap/scss/mixins/hover";
28
+ @import "../assets/node_modules/bootstrap/scss/mixins/badge";
29
+ @import "../assets/node_modules/bootstrap/scss/mixins/text-emphasis";
30
+ @import "../assets/node_modules/bootstrap/scss/mixins/text-hide";
31
+ @import "../assets/node_modules/bootstrap/scss/mixins/text-truncate";
32
+ @import "../assets/node_modules/bootstrap/scss/mixins/buttons";
33
+ @import "../assets/node_modules/bootstrap/scss/mixins/background-variant";
34
+ @import "../assets/node_modules/bootstrap/scss/mixins/border-radius";
35
+ @import "../assets/node_modules/bootstrap/scss/mixins/box-shadow";
36
+ @import "../assets/node_modules/bootstrap/scss/mixins/gradients";
37
+ @import "../assets/node_modules/bootstrap/scss/mixins/transition";
38
+ @import "../assets/node_modules/bootstrap/scss/reboot";
39
+ @import "../assets/node_modules/bootstrap/scss/buttons";
40
+ @import "../assets/node_modules/bootstrap/scss/nav";
41
+ @import "../assets/node_modules/bootstrap/scss/badge";
42
+ @import "../assets/node_modules/bootstrap/scss/utilities/background";
43
+ @import "../assets/node_modules/bootstrap/scss/utilities/text";
44
+
45
+ // Import flag-icon partials
46
+ $include: 'br', 'mx', 'us';
47
+ $flag-icon-css-path: '../node_modules/flag-icon-css/flags';
48
+ @import "../assets/node_modules/flag-icon-css/sass/flag-icon";
49
+
50
+ // Import layout partials
51
+ @import "grupopv/navbar";
52
+ @import "layouts/404";
53
+ @import "layouts/default";
54
+ @import "layouts/page";
55
+ @import "layouts/product";
56
+ @import "common/common";
57
+ @import "common/custom";
58
+
59
+ // Import component partials
60
+ @import "components/breadcrumbs/bootstrap";
61
+ @import "components/contact-cards/location";
62
+ @import "components/contact-cards/phone-card";
63
+ @import "components/footers/vg_progressive";
64
+ @import "components/forms/formspree";
65
+ @import "components/forms/google-forms";
66
+ @import "components/icons/bootstrap";
67
+ @import "components/info-cards/card-deck";
68
+ @import "components/info-cards/search-results";
69
+ @import "components/jumbotron/bootstrap";
70
+ @import "components/lang-switchers/toogle-lang";
71
+ @import "components/login/progressive";
72
+ @import "components/logos/progressive";
73
+ @import "components/maps/google-maps";
74
+ @import "components/megamenu/progressive";
75
+ @import "components/nav-items/bootstrap";
76
+ @import "components/navbars/bootstrap";
77
+ @import "components/navbars/progressive";
78
+ @import "components/product-cards/3d-space";
79
+ @import "components/product-cards/featured-product";
80
+ @import "components/product-cards/product-details";
81
+ @import "components/product-cards/product-generals";
82
+ @import "components/product-cards/progressive";
83
+ @import "components/searchbars/progressive";
84
+ @import "components/sidenavs/material";
85
+ @import "components/sliders/lightslider";
86
+ @import "components/social-media/progressive";
87
+ @import "components/timelines/9";
88
+ @import "components/videos/background";
@@ -0,0 +1,42 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ firebaseAuthAccountApp = function() {
5
+ firebase.auth().onAuthStateChanged(function(user) {
6
+ if (user) {
7
+ // User is signed in.
8
+ user.getIdToken().then(function(accessToken) {
9
+ setSidenavHeaderData(user);
10
+ let photoURL = 'https://www.gravatar.com/avatar/' + md5(user.email) + '?s=70&d=identicon';
11
+ firebase.auth().currentUser.updateProfile({
12
+ 'photoURL': photoURL
13
+ });
14
+ });
15
+ } else {
16
+ // User is signed out.
17
+ window.location.href = "/login/?mode=select&signInSuccessUrl=/account/";
18
+ }
19
+ }, function(error) {
20
+ console.log(error);
21
+ });
22
+ };
23
+
24
+ firestoreAccountApp = function() {
25
+ const docRef = firestoredb.doc("exchange-rates/usd");
26
+ const usdSell = document.querySelector("#sell-usd-exchange-rates2");
27
+ const usdUpdatedAt = document.querySelector("#updated-at-usd-exchange-rates2");
28
+
29
+ docRef.onSnapshot(function (doc){
30
+ if (doc && doc.exists) {
31
+ const data = doc.data();
32
+ usdSell.innerText = "USD: " + data.sell.toFixed(2);
33
+ usdUpdatedAt.innerText = parseDate(new Date(data.updated_at));
34
+ }
35
+ });
36
+ }
37
+
38
+ window.addEventListener('load', function() {
39
+ firebaseAuthAccountApp()
40
+ });
41
+
42
+ firestoreAccountApp();
@@ -17,16 +17,16 @@ jQuery(document).ready(function(){
17
17
  user.getIdToken().then(function(accessToken) {
18
18
  document.getElementById('sign-in-welcome').textContent = welcome;
19
19
  document.getElementById('sign-in-name').textContent = displayName;
20
- btnLogin.classList.add('hide');
21
- btnLogout.classList.remove('hide');
20
+ btnLogin.classList.add('d-none');
21
+ btnLogout.classList.remove('d-none');
22
22
 
23
23
  });
24
24
  } else {
25
25
  // User is signed out.
26
26
  document.getElementById('sign-in-welcome').textContent = '';
27
27
  document.getElementById('sign-in-name').textContent = '';
28
- btnLogin.classList.remove('hide');
29
- btnLogout.classList.add('hide');
28
+ btnLogin.classList.remove('d-none');
29
+ btnLogout.classList.add('d-none');
30
30
  }
31
31
  }, function(error) {
32
32
  console.log(error);
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ // Configure constants
5
+ let welcome = "{{ site.data.i18n.common.firebase[site.lang].welcome.title }}";
6
+
7
+ // Initialize Firebase
8
+ var config = {
9
+ apiKey: "AIzaSyDNoePwIZtVOx3jHE9S9Sw4OidZoVOvb68",
10
+ authDomain: "grupopv-mx-firebase.firebaseapp.com",
11
+ databaseURL: "https://grupopv-mx-firebase.firebaseio.com",
12
+ projectId: "grupopv-mx-firebase",
13
+ storageBucket: "grupopv-mx-firebase.appspot.com",
14
+ messagingSenderId: "424052904452"
15
+ };
16
+ firebase.initializeApp(config);
17
+
18
+ // Initialize Cloud Firestore through Firebase
19
+ var firestoredb = firebase.firestore();
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ specialOffersApp = function() {
5
+ firebase.auth().onAuthStateChanged(function(user) {
6
+ if (user) {
7
+ // User is signed in.
8
+ // var displayName = user.displayName;
9
+ // var email = user.email;
10
+ // var emailVerified = user.emailVerified;
11
+ // var photoURL = user.photoURL;
12
+ // var uid = user.uid;
13
+ // var phoneNumber = user.phoneNumber;
14
+ // var providerData = user.providerData;
15
+ user.getIdToken().then(function(accessToken) {
16
+ const hash = btoa(btoa(btoa(btoa(btoa('{{ 'now' | date: "%B %Y" }}')))));
17
+ const specialOffersHTML = '{% capture html %}{% include components/firebase/special-offers.html %}{% endcapture %}{{ html | strip_newlines }}'.replace(/current-month-year-base64-hash/g, hash)
18
+ document.getElementById('sign-in-content').innerHTML = specialOffersHTML;
19
+ // document.getElementById('account-details').textContent = JSON.stringify({
20
+ // displayName: displayName,
21
+ // email: email,
22
+ // emailVerified: emailVerified,
23
+ // phoneNumber: phoneNumber,
24
+ // photoURL: photoURL,
25
+ // uid: uid,
26
+ // accessToken: accessToken,
27
+ // providerData: providerData
28
+ // }, null, ' ');
29
+ });
30
+ } else {
31
+ // User is signed out.
32
+ window.location.href = "/login/?mode=select&signInSuccessUrl=/special-offers/";
33
+ }
34
+ }, function(error) {
35
+ console.log(error);
36
+ });
37
+ };
38
+
39
+ window.addEventListener('load', function() {
40
+ specialOffersApp()
41
+ });