appscms-tools-theme 3.4.3 → 3.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 946ad3b9a1ec7c764a668b70a6e4c5c41984fffb16303ef2945184da9d3084c5
4
- data.tar.gz: 277f58778de1c0cc10b6a53d804a7cb909e52063a266514741bc6bf8f57dbe6d
3
+ metadata.gz: 892d21a563cc3ac92313e40272780dbbdc4b7aa6af4535311dfa83e2b7957840
4
+ data.tar.gz: e70be5b92a89610415b45bdd8f10e7a5ed02ad1f89406bbab179f5c02faaba7c
5
5
  SHA512:
6
- metadata.gz: 598c22717153a373807d4a5789fa20452e3c1731044775af3c8a88ba68cb803b96b53e0f8122fe0c54ecec2b225ea723f22762efe530ef1bbf0ede244004c2d0
7
- data.tar.gz: 59a164fe5a1e40916264dfee6549056c1de3032ca2b95c3214ed1e1083dd8e3bfc125ac2830cf3f28720fd11e322a86f7a363eac8def40a4fbd9a322bfa773f4
6
+ metadata.gz: 57af6b9cacf0c23fa8fcbeeb58c44ca600af0bcf1fc634312f174ebaeda7c471361bfef95cc781e56ba4a4027ef3bf13f79cdfb08c92093ba987550b5ed7ae31
7
+ data.tar.gz: d2984a7ad51c4ac857a8a919edfc4e75f386d7bf68f0b7f212eeab40950f1ce9a97a8935f2d52d6dc6eeb130cf945022a72f4041377bcf6eb439c57b81b9dfa4
@@ -35,63 +35,19 @@
35
35
  ],
36
36
  "infographics": [
37
37
  {
38
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
39
- "description": "this is image description"
40
- },
41
- {
42
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
43
- "description": "this is image description"
44
- },
45
- {
46
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
47
- "description": "this is image description"
48
- },
49
- {
50
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
51
- "description": "this is image description"
52
- },
53
- {
54
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
55
- "description": "this is image description"
56
- },
57
- {
58
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
59
- "description": "this is image description"
60
- },
61
- {
62
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
63
- "description": "this is image description"
64
- },
65
- {
66
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
67
- "description": "this is image description"
68
- },
69
- {
70
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
71
- "description": "this is image description"
72
- },
73
- {
74
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
75
- "description": "this is image description"
76
- },
77
- {
78
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
79
- "description": "this is image description"
80
- },
81
- {
82
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
38
+ "image": "https://images.unsplash.com/photo-1454496522488-7a8e488e8606?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=876&q=80",
83
39
  "description": "this is image description"
84
40
  },
85
41
  {
86
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
42
+ "image": "https://images.unsplash.com/photo-1619266465172-02a857c3556d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1031&q=80",
87
43
  "description": "this is image description"
88
44
  },
89
45
  {
90
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
46
+ "image": "https://images.unsplash.com/photo-1454496522488-7a8e488e8606?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=876&q=80",
91
47
  "description": "this is image description"
92
48
  },
93
49
  {
94
- "image": "https://cdn-infographic.pressidium.com/wp-content/uploads/2022/11/The-Changing-Ages-Of-The-Workforce-480x460.png",
50
+ "image": "https://images.unsplash.com/photo-1454496522488-7a8e488e8606?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=876&q=80",
95
51
  "description": "this is image description"
96
52
  },
97
53
  {
@@ -139,7 +95,7 @@
139
95
  ],
140
96
  "HOW_TO_CONTENT": {
141
97
  "logoImageUrl": "/assets/idea.svg",
142
- "YoutubeVideoUrl": "_gvnsTZn9OA",
98
+ "YoutubeVideoUrl": "https://www.youtube.com/watch?v=Fh3H50OGE_c&ab_channel=safeimagekit",
143
99
  "heading": "How to generate the ASCII art from our image.",
144
100
  "steps": [
145
101
  "Upload the image or Click on the drop down arrow and select Dropbox/Google Drive",
@@ -1,22 +1,71 @@
1
- <style>
2
- .infographics_section {
3
- width: 100%;
4
- padding: 50px 0px 50px 0px;
5
- border-top: 1px solid rgb(224, 224, 224);
6
- }
7
- </style>
8
1
  <div class="infographics_section">
9
- <div class="row">
10
- <div class="col-md-9 mx-auto">
11
- <div id="carousel">
12
- <ul class="flip-items">
2
+ <h3 class="text-center w-100 mb-3"><b>Infographics Section</b></h3>
3
+ <div class="slider">
4
+ <div class="row">
5
+ <div class="col-md-12 mx-auto">
6
+ <div id="carousel">
13
7
  {%- for item in featureData.infographics -%}
14
- <li data-flip-title="Red">
15
- <img width="300" height="300" src="{{item.image}}">
16
- </li>
8
+ <div class="slide">
9
+ <img src="{{item.image}}" alt="Photo1" />
10
+ <p class="infographics-desc">{{item.description | capitalize }}</p>
11
+ </div>
17
12
  {%- endfor -%}
18
- </ul>
13
+ </div>
19
14
  </div>
20
15
  </div>
16
+ <button class="btn-slide prev"><i class="fas fa-3x fa-chevron-circle-left"></i></button>
17
+ <button class="btn-slide next"><i class="fas fa-3x fa-chevron-circle-right"></i></button>
21
18
  </div>
22
- </div>
19
+ <div class=" dots-container">
20
+ {%- for item in featureData.infographics -%}
21
+ <span class="dot active" data-slide="{{ forloop.index0 }}"></span>
22
+ {%- endfor -%}
23
+ </div>
24
+ </div>
25
+
26
+ <script>
27
+ function Slider() {
28
+ const carouselSlides = document.querySelectorAll('.slide');
29
+ const btnPrev = document.querySelector('.prev');
30
+ const btnNext = document.querySelector('.next');
31
+ const dotsSlide = document.querySelector('.dots-container');
32
+ let currentSlide = 0;
33
+
34
+ const activeDot = function (slide) {
35
+ document.querySelectorAll('.dot').forEach(dot => dot.classList.remove('active'));
36
+ document.querySelector(`.dot[data-slide="${slide}"]`).classList.add('active');
37
+ };
38
+ activeDot(currentSlide);
39
+
40
+ const changeSlide = function (slides) {
41
+ carouselSlides.forEach((slide, index) => (slide.style.transform = `translateX(${100 * (index - slides)}%)`));
42
+ };
43
+ changeSlide(currentSlide);
44
+
45
+ btnNext.addEventListener('click', function () {
46
+ currentSlide++;
47
+ if (carouselSlides.length - 1 < currentSlide) {
48
+ currentSlide = 0;
49
+ };
50
+ changeSlide(currentSlide);
51
+ activeDot(currentSlide);
52
+ });
53
+ btnPrev.addEventListener('click', function () {
54
+ currentSlide--;
55
+ if (0 >= currentSlide) {
56
+ currentSlide = 0;
57
+ };
58
+ changeSlide(currentSlide);
59
+ activeDot(currentSlide);
60
+ });
61
+
62
+ dotsSlide.addEventListener('click', function (e) {
63
+ if (e.target.classList.contains('dot')) {
64
+ const slide = e.target.dataset.slide;
65
+ changeSlide(slide);
66
+ activeDot(slide);
67
+ }
68
+ });
69
+ };
70
+ Slider();
71
+ </script>
@@ -257,10 +257,24 @@
257
257
  <div class="row">
258
258
  {%- endif -%}
259
259
  <div class="col-md-6 order-0">
260
- {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl -%}
260
+ {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
261
261
  <div class="how-to-video-wrapper">
262
- <iframe width="500" height="315" src="https://www.youtube.com/embed/{{featureData.HOW_TO_CONTENT.YoutubeVideoUrl}}?autoplay=1&mute=1">
262
+ {% assign video_url = featureData.HOW_TO_CONTENT.YoutubeVideoUrl %}
263
+ {% assign params = video_url | split: "?" | last | split: "&" %}
264
+ {% for param in params %}
265
+ {% if param contains "v=" %}
266
+ {% assign video_id = param | split: "=" | last %}
267
+ {% endif %}
268
+ {% endfor %}
269
+
270
+ {%- if site.monumetricId -%}
271
+ <iframe class="mb-5" width="400" height="315" src="https://www.youtube.com/embed/{{video_id}}?autoplay=1&mute=1" allowfullscreen>
272
+ </iframe>
273
+ {%- else -%}
274
+ <iframe class="mb-5" width="500" height="315" src="https://www.youtube.com/embed/{{video_id}}?autoplay=1&mute=1" allowfullscreen>
263
275
  </iframe>
276
+ {%- endif -%}
277
+
264
278
  </div>
265
279
  {%- else -%}
266
280
  <div class="how-to-img-wrapper">
@@ -331,8 +345,8 @@
331
345
  </div>
332
346
  </div>
333
347
  </section>
334
- {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%}
335
- {%- include Rating/rating.html -%}
348
+ {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%}
349
+ {%- include Rating/rating.html -%}
336
350
  {%- if featureData.infographics.size > 0 -%}
337
351
  {%- include infographics/infographics.html -%}
338
352
  {%- endif -%}
data/assets/css/tools.css CHANGED
@@ -79,7 +79,19 @@ a:hover {
79
79
  font-weight: 500;
80
80
  }
81
81
 
82
+ @media screen and (min-width: 1920px) and (min-height: 1200px) {
83
+ .appscms-sidebar-left{
84
+ left: 300px !important;
85
+ }
86
+ .appscms-sidebar-right{
87
+ right: 300px !important;
88
+ }
89
+ }
82
90
  @media (max-width: 992px) {
91
+ .appscms-sidebar-right,
92
+ .appscms-sidebar-left {
93
+ display: none;
94
+ }
83
95
  .toaster {
84
96
  right: 25% !important;
85
97
  }
@@ -103,12 +115,7 @@ a:hover {
103
115
  padding: 15px 0;
104
116
  }
105
117
  }
106
-
107
118
  @media (max-width: 768px) {
108
- .appscms-sidebar-right,
109
- .appscms-sidebar-left {
110
- display: none;
111
- }
112
119
  .toaster {
113
120
  display: none !important;
114
121
  }
@@ -1594,3 +1601,89 @@ ol li::marker {
1594
1601
  transition: all 0.3s ease;
1595
1602
  border-radius: 5px;
1596
1603
  }
1604
+ /* infographics csss */
1605
+ .infographics_section {
1606
+ width: 100%;
1607
+ padding: 50px 0px 50px 0px;
1608
+ border-top: 1px solid rgb(224, 224, 224);
1609
+ }
1610
+
1611
+ .infographics_section .infographics-desc {
1612
+ position: absolute;
1613
+ color: #fff;
1614
+ bottom: 30px;
1615
+ }
1616
+
1617
+ .infographics_section .slider {
1618
+ position: relative;
1619
+ max-width: 40rem;
1620
+ height: 26.625rem;
1621
+ margin: 0 auto;
1622
+ overflow: hidden;
1623
+ }
1624
+
1625
+ .infographics_section .slide {
1626
+ position: absolute;
1627
+ top: 0;
1628
+ width: 100%;
1629
+ height: 26.625rem;
1630
+ display: flex;
1631
+ align-items: center;
1632
+ justify-content: center;
1633
+ transition: transform 1s;
1634
+ }
1635
+
1636
+ .infographics_section .slide img {
1637
+ width: 100%;
1638
+ height: 100%;
1639
+ object-fit: cover;
1640
+ }
1641
+
1642
+ .infographics_section button {
1643
+ background: none;
1644
+ border: none;
1645
+ }
1646
+
1647
+ .infographics_section button .fas {
1648
+ color:#fff;
1649
+ }
1650
+
1651
+ .infographics_section .btn-slide {
1652
+ position: absolute;
1653
+ top: 50%;
1654
+ z-index: 10;
1655
+
1656
+ height: 5.5rem;
1657
+ width: 5.5rem;
1658
+ cursor: pointer;
1659
+ }
1660
+
1661
+ .infographics_section .prev {
1662
+ left: 3rem;
1663
+ transform: translate(-50%, -50%);
1664
+ }
1665
+
1666
+ .infographics_section .next {
1667
+ right: 3rem;
1668
+ transform: translate(50%, -50%);
1669
+ }
1670
+
1671
+ .infographics_section .dots-container {
1672
+ display: flex;
1673
+ justify-content: center;
1674
+ align-items: center;
1675
+ position: relative;
1676
+ }
1677
+
1678
+ .infographics_section .dot {
1679
+ width: 25px;
1680
+ height: 5px;
1681
+ margin: 15px 5px;
1682
+ border-radius: .5rem;
1683
+ background: rgba(39, 39, 39, .5);
1684
+ cursor: pointer;
1685
+ }
1686
+
1687
+ .infographics_section .dot.active {
1688
+ background: #272727;
1689
+ }
data/assets/js/theme.js CHANGED
@@ -98,3 +98,5 @@ navbarToggler.addEventListener('click',()=>{
98
98
  }
99
99
  })
100
100
  }
101
+
102
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.3
4
+ version: 3.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll