@gudhub/ssg-web-components-library 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.
Files changed (230) hide show
  1. package/index.js +3 -0
  2. package/package.json +20 -0
  3. package/src/components/about-us-banner/about-us-banner-data.json +9 -0
  4. package/src/components/about-us-banner/about-us-banner.html +19 -0
  5. package/src/components/about-us-banner/about-us-banner.js +23 -0
  6. package/src/components/about-us-banner/about-us-banner.scss +59 -0
  7. package/src/components/about-us-banner/config.js +5 -0
  8. package/src/components/about-us-image-counter/about-us-image-counter-data.json +35 -0
  9. package/src/components/about-us-image-counter/about-us-image-counter.html +22 -0
  10. package/src/components/about-us-image-counter/about-us-image-counter.js +23 -0
  11. package/src/components/about-us-image-counter/about-us-image-counter.scss +44 -0
  12. package/src/components/about-us-image-counter/config.js +5 -0
  13. package/src/components/about-us-team-members/about-us-team-members-data.json +99 -0
  14. package/src/components/about-us-team-members/about-us-team-members.html +25 -0
  15. package/src/components/about-us-team-members/about-us-team-members.js +22 -0
  16. package/src/components/about-us-team-members/about-us-team-members.scss +71 -0
  17. package/src/components/about-us-team-members/config.js +5 -0
  18. package/src/components/animation-block/animation-block-data.json +40 -0
  19. package/src/components/animation-block/animation-block.html +37 -0
  20. package/src/components/animation-block/animation-block.js +23 -0
  21. package/src/components/animation-block/animation-block.scss +337 -0
  22. package/src/components/animation-block/config.js +5 -0
  23. package/src/components/banner-and-text/banner-and-text-data.json +24 -0
  24. package/src/components/banner-and-text/banner-and-text.html +30 -0
  25. package/src/components/banner-and-text/banner-and-text.js +25 -0
  26. package/src/components/banner-and-text/banner-and-text.scss +85 -0
  27. package/src/components/banner-and-text/config.js +5 -0
  28. package/src/components/blog/article/allArticles.json +96 -0
  29. package/src/components/blog/article/article-component.html +189 -0
  30. package/src/components/blog/article/article-component.js +340 -0
  31. package/src/components/blog/article/article-component.scss +776 -0
  32. package/src/components/blog/article/authors-object.json +125 -0
  33. package/src/components/blog/article/categories-object.json +47 -0
  34. package/src/components/blog/author-page/author-page.html +37 -0
  35. package/src/components/blog/author-page/author-page.js +113 -0
  36. package/src/components/blog/author-page/author-page.json +111 -0
  37. package/src/components/blog/author-page/author-page.scss +107 -0
  38. package/src/components/blog/authors-list/authors-list.html +40 -0
  39. package/src/components/blog/authors-list/authors-list.js +60 -0
  40. package/src/components/blog/authors-list/authors-list.json +132 -0
  41. package/src/components/blog/authors-list/authors-list.scss +171 -0
  42. package/src/components/blog/categories-list/categories-list.html +21 -0
  43. package/src/components/blog/categories-list/categories-list.js +26 -0
  44. package/src/components/blog/categories-list/categories-list.json +53 -0
  45. package/src/components/blog/categories-list/categories-list.scss +125 -0
  46. package/src/components/blog/comments/comments.html +89 -0
  47. package/src/components/blog/comments/comments.js +181 -0
  48. package/src/components/blog/comments/comments.json +130 -0
  49. package/src/components/blog/comments/comments.scss +324 -0
  50. package/src/components/blog/contents/contents.html +14 -0
  51. package/src/components/blog/contents/contents.js +63 -0
  52. package/src/components/blog/contents/contents.scss +157 -0
  53. package/src/components/blog/posts-template/articles.json +139 -0
  54. package/src/components/blog/posts-template/authors-object.json +61 -0
  55. package/src/components/blog/posts-template/categories.json +61 -0
  56. package/src/components/blog/posts-template/posts-template.html +239 -0
  57. package/src/components/blog/posts-template/posts-template.js +532 -0
  58. package/src/components/blog/posts-template/posts-template.scss +566 -0
  59. package/src/components/breadcrumbs/breadcrumbs-component.js +65 -0
  60. package/src/components/breadcrumbs/breadcrumbs.html +21 -0
  61. package/src/components/breadcrumbs/breadcrumbs.scss +118 -0
  62. package/src/components/breadcrumbs/config.js +5 -0
  63. package/src/components/button-component/button-component.html +3 -0
  64. package/src/components/button-component/button-component.js +39 -0
  65. package/src/components/button-component/button-component.readme.md +11 -0
  66. package/src/components/button-component/button-component.scss +34 -0
  67. package/src/components/button-component/config.js +5 -0
  68. package/src/components/category-banner/category-banner.html +7 -0
  69. package/src/components/category-banner/category-banner.js +44 -0
  70. package/src/components/category-banner/category-banner.scss +22 -0
  71. package/src/components/category-banner/config.js +5 -0
  72. package/src/components/contact-us-block/config.js +5 -0
  73. package/src/components/contact-us-block/contact-us-block.html +41 -0
  74. package/src/components/contact-us-block/contact-us-block.js +22 -0
  75. package/src/components/contact-us-block/contact-us-block.scss +59 -0
  76. package/src/components/cookies-popup/config.js +5 -0
  77. package/src/components/cookies-popup/cookies-popup.html +8 -0
  78. package/src/components/cookies-popup/cookies-popup.js +27 -0
  79. package/src/components/cookies-popup/cookies-popup.scss +68 -0
  80. package/src/components/counter-section/config.js +5 -0
  81. package/src/components/counter-section/counter-section-data.json +21 -0
  82. package/src/components/counter-section/counter-section.html +38 -0
  83. package/src/components/counter-section/counter-section.js +23 -0
  84. package/src/components/counter-section/counter-section.readme.md +19 -0
  85. package/src/components/counter-section/counter-section.scss +204 -0
  86. package/src/components/counter-section-with-text/config.js +5 -0
  87. package/src/components/counter-section-with-text/counter-section-with-text-data.json +21 -0
  88. package/src/components/counter-section-with-text/counter-section-with-text.html +46 -0
  89. package/src/components/counter-section-with-text/counter-section-with-text.js +23 -0
  90. package/src/components/counter-section-with-text/counter-section-with-text.readme.md +19 -0
  91. package/src/components/counter-section-with-text/counter-section-with-text.scss +164 -0
  92. package/src/components/crm-services-banner/config.js +5 -0
  93. package/src/components/crm-services-banner/crm-services-banner-data.json +20 -0
  94. package/src/components/crm-services-banner/crm-services-banner.html +28 -0
  95. package/src/components/crm-services-banner/crm-services-banner.js +25 -0
  96. package/src/components/crm-services-banner/crm-services-banner.scss +57 -0
  97. package/src/components/edit-mode/config.js +5 -0
  98. package/src/components/edit-mode/edit-mode.html +4 -0
  99. package/src/components/edit-mode/edit-mode.js +23 -0
  100. package/src/components/edit-mode/edit-mode.scss +69 -0
  101. package/src/components/faq/config.js +5 -0
  102. package/src/components/faq/faq.html +20 -0
  103. package/src/components/faq/faq.js +40 -0
  104. package/src/components/faq/faq.scss +80 -0
  105. package/src/components/footer/config.js +5 -0
  106. package/src/components/footer/footer.html +74 -0
  107. package/src/components/footer/footer.js +21 -0
  108. package/src/components/footer/footer.scss +356 -0
  109. package/src/components/footer/pages-object.json +58 -0
  110. package/src/components/fullscreen-image-and-text/config.js +5 -0
  111. package/src/components/fullscreen-image-and-text/fullscreen-image-and-text.html +42 -0
  112. package/src/components/fullscreen-image-and-text/fullscreen-image-and-text.js +29 -0
  113. package/src/components/fullscreen-image-and-text/fullscreen-image-and-text.scss +192 -0
  114. package/src/components/get-in-touch-block/config.js +5 -0
  115. package/src/components/get-in-touch-block/get-in-touch-block-data.json +4 -0
  116. package/src/components/get-in-touch-block/get-in-touch-block.html +11 -0
  117. package/src/components/get-in-touch-block/get-in-touch-block.js +22 -0
  118. package/src/components/get-in-touch-block/get-in-touch-block.scss +12 -0
  119. package/src/components/get-in-touch-form/config.js +5 -0
  120. package/src/components/get-in-touch-form/get-in-touch-form-data.json +114 -0
  121. package/src/components/get-in-touch-form/get-in-touch-form.html +35 -0
  122. package/src/components/get-in-touch-form/get-in-touch-form.js +115 -0
  123. package/src/components/get-in-touch-form/get-in-touch-form.readme.md +45 -0
  124. package/src/components/get-in-touch-form/get-in-touch-form.scss +334 -0
  125. package/src/components/get-in-touch-form/sendEmail.js +161 -0
  126. package/src/components/grid/config.js +5 -0
  127. package/src/components/grid/grid.html +51 -0
  128. package/src/components/grid/grid.js +115 -0
  129. package/src/components/grid/grid.scss +566 -0
  130. package/src/components/grid-component/config.js +5 -0
  131. package/src/components/grid-component/grid-component-data.json +115 -0
  132. package/src/components/grid-component/grid-component.html +52 -0
  133. package/src/components/grid-component/grid-component.js +40 -0
  134. package/src/components/grid-component/grid-component.readme.md +32 -0
  135. package/src/components/grid-component/grid-component.scss +199 -0
  136. package/src/components/header/config.js +5 -0
  137. package/src/components/header/header.html +60 -0
  138. package/src/components/header/header.js +55 -0
  139. package/src/components/header/header.scss +556 -0
  140. package/src/components/homepage-banner/config.js +5 -0
  141. package/src/components/homepage-banner/homepage-banner.html +1443 -0
  142. package/src/components/homepage-banner/homepage-banner.js +23 -0
  143. package/src/components/homepage-banner/homepage-banner.scss +147 -0
  144. package/src/components/image-component/config.js +5 -0
  145. package/src/components/image-component/image-component.html +25 -0
  146. package/src/components/image-component/image-component.js +107 -0
  147. package/src/components/list-text-and-media/config.js +5 -0
  148. package/src/components/list-text-and-media/list-text-and-media-data.json +70 -0
  149. package/src/components/list-text-and-media/list-text-and-media.html +38 -0
  150. package/src/components/list-text-and-media/list-text-and-media.js +22 -0
  151. package/src/components/list-text-and-media/list-text-and-media.readme.md +30 -0
  152. package/src/components/list-text-and-media/list-text-and-media.scss +156 -0
  153. package/src/components/media-and-accordion/config.js +5 -0
  154. package/src/components/media-and-accordion/media-and-accordion-data.json +84 -0
  155. package/src/components/media-and-accordion/media-and-accordion.html +37 -0
  156. package/src/components/media-and-accordion/media-and-accordion.js +55 -0
  157. package/src/components/media-and-accordion/media-and-accordion.scss +170 -0
  158. package/src/components/media-and-list-of-text/config.js +5 -0
  159. package/src/components/media-and-list-of-text/media-and-list-of-text-data.json +16 -0
  160. package/src/components/media-and-list-of-text/media-and-list-of-text.html +32 -0
  161. package/src/components/media-and-list-of-text/media-and-list-of-text.js +24 -0
  162. package/src/components/media-and-list-of-text/media-and-list-of-text.readme.md +26 -0
  163. package/src/components/media-and-list-of-text/media-and-list-of-text.scss +102 -0
  164. package/src/components/media-and-text/config.js +5 -0
  165. package/src/components/media-and-text/media-and-text-data.json +20 -0
  166. package/src/components/media-and-text/media-and-text.html +26 -0
  167. package/src/components/media-and-text/media-and-text.js +26 -0
  168. package/src/components/media-and-text/media-and-text.scss +51 -0
  169. package/src/components/meta/articles.json +95 -0
  170. package/src/components/meta/author-schema.js +71 -0
  171. package/src/components/meta/authors.json +108 -0
  172. package/src/components/meta/blog-schema.js +93 -0
  173. package/src/components/meta/canonical.js +74 -0
  174. package/src/components/meta/config.js +40 -0
  175. package/src/components/meta/meta-index.js +14 -0
  176. package/src/components/meta/meta-tag.js +168 -0
  177. package/src/components/meta/organization-schema.js +50 -0
  178. package/src/components/meta/service-schema.js +76 -0
  179. package/src/components/meta/title-tag.js +64 -0
  180. package/src/components/overflow-cards/config.js +5 -0
  181. package/src/components/overflow-cards/overflow-cards-data.json +33 -0
  182. package/src/components/overflow-cards/overflow-cards.html +33 -0
  183. package/src/components/overflow-cards/overflow-cards.js +28 -0
  184. package/src/components/overflow-cards/overflow-cards.scss +112 -0
  185. package/src/components/popup/config.js +5 -0
  186. package/src/components/popup/popup.html +10 -0
  187. package/src/components/popup/popup.js +66 -0
  188. package/src/components/popup/popup.readme.md +13 -0
  189. package/src/components/popup/popup.scss +76 -0
  190. package/src/components/prices-cards/config.js +5 -0
  191. package/src/components/prices-cards/prices-cards-data.json +90 -0
  192. package/src/components/prices-cards/prices-cards.html +35 -0
  193. package/src/components/prices-cards/prices-cards.js +23 -0
  194. package/src/components/prices-cards/prices-cards.readme.md +48 -0
  195. package/src/components/prices-cards/prices-cards.scss +206 -0
  196. package/src/components/recent-posts/author-object.json +53 -0
  197. package/src/components/recent-posts/config.js +5 -0
  198. package/src/components/recent-posts/recent-posts.html +85 -0
  199. package/src/components/recent-posts/recent-posts.js +89 -0
  200. package/src/components/recent-posts/recent-posts.json +258 -0
  201. package/src/components/recent-posts/recent-posts.scss +274 -0
  202. package/src/components/reviews-slider/config.js +5 -0
  203. package/src/components/reviews-slider/reviews-slider-data.json +30 -0
  204. package/src/components/reviews-slider/reviews-slider.html +48 -0
  205. package/src/components/reviews-slider/reviews-slider.js +86 -0
  206. package/src/components/reviews-slider/reviews-slider.scss +92 -0
  207. package/src/components/service-counter/config.js +5 -0
  208. package/src/components/service-counter/service-counter-data.json +24 -0
  209. package/src/components/service-counter/service-counter.html +19 -0
  210. package/src/components/service-counter/service-counter.js +23 -0
  211. package/src/components/service-counter/service-counter.scss +171 -0
  212. package/src/components/service-image-counter/config.js +5 -0
  213. package/src/components/service-image-counter/service-image-counter-data.json +52 -0
  214. package/src/components/service-image-counter/service-image-counter.html +30 -0
  215. package/src/components/service-image-counter/service-image-counter.js +23 -0
  216. package/src/components/service-image-counter/service-image-counter.scss +114 -0
  217. package/src/components/tabs/config.js +5 -0
  218. package/src/components/tabs/tabs-component.js +45 -0
  219. package/src/components/tabs/tabs.html +28 -0
  220. package/src/components/tabs/tabs.scss +399 -0
  221. package/src/components/text-only/config.js +5 -0
  222. package/src/components/text-only/text-only-data.json +4 -0
  223. package/src/components/text-only/text-only.html +8 -0
  224. package/src/components/text-only/text-only.js +20 -0
  225. package/src/components/text-only/text-only.scss +21 -0
  226. package/src/components/top-banner/config.js +5 -0
  227. package/src/components/top-banner/top-banner.html +22 -0
  228. package/src/components/top-banner/top-banner.js +50 -0
  229. package/src/components/top-banner/top-banner.scss +132 -0
  230. package/src/config.js +38 -0
@@ -0,0 +1,204 @@
1
+ counter-section {
2
+ background-color: var(--secondary-bg-color);
3
+ .service_counter {
4
+ .container {
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ }
9
+ .h2 {
10
+ text-align: center;
11
+ }
12
+ .subtitle {
13
+ max-width: 850px;
14
+ margin-left: auto;
15
+ margin-right: auto;
16
+ text-align: center;
17
+ }
18
+ .counters {
19
+ width: 100%;
20
+ display: flex;
21
+ justify-content: space-around;
22
+ flex-wrap: wrap;
23
+ &:not(:last-child) {
24
+ margin-bottom: 50px;
25
+ }
26
+ .counter_item {
27
+ display: flex;
28
+ flex-direction: column;
29
+ align-items: center;
30
+ justify-content: flex-start;
31
+ max-width: 230px;
32
+ width: 33%;
33
+ text-align: center;
34
+ margin: var(--custom-margin);
35
+ position: relative;
36
+ &::after {
37
+ content:'';
38
+ position: absolute;
39
+ top: 10%;
40
+ right: -33%;
41
+ width: 1px;
42
+ height: 80%;
43
+ background: var(--text-color);
44
+ }
45
+ &:last-child::after {
46
+ content: none;
47
+ }
48
+ .counter {
49
+ &_top {
50
+ display: flex;
51
+ font-size: 46px;
52
+ font-weight: 700;
53
+ line-height: 120%;
54
+ color: var(--h-color);
55
+ margin-bottom: 10px;
56
+ }
57
+ &_bottom {
58
+ text-align: center;
59
+ font-size: 16px;
60
+ line-height: 140%;
61
+ color: var(--text-color);
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ @media screen and (max-width: 1130px) {
70
+ counter-section .service_counter .counters .counter_item::after {
71
+ right: -25%;
72
+ }
73
+ }
74
+ @media screen and (max-width: 1080px) {
75
+ counter-section .service_counter .counters {
76
+ justify-content: center;
77
+ .counter_item {
78
+ max-width: none;
79
+ display: flex;
80
+ flex-direction: column;
81
+ align-items: center;
82
+ border-right: 1px solid var(--text-color);
83
+ &::after {
84
+ content: none;
85
+ }
86
+ &:last-child {
87
+ border-right: none;
88
+ }
89
+ .counter_top, .counter_bottom {
90
+ max-width: 230px;
91
+ margin-left: auto;
92
+ margin-right: auto;
93
+ }
94
+ }
95
+ }
96
+ }
97
+ @media screen and (max-width: 1025px) {
98
+ counter-component .service_counter {
99
+ .h2 {
100
+ margin-bottom: 30px;
101
+ }
102
+ .counters .counter_item .counter_top {
103
+ font-size: 48px;
104
+ line-height: 48px;
105
+ margin-bottom: 8px;
106
+ }
107
+ }
108
+ counter-component {
109
+ .service_counter {
110
+ .counters {
111
+ .counter_item {
112
+ margin: 0 20px;
113
+ margin-bottom: 20px;
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ @media screen and (max-width: 815px) {
120
+ counter-section .service_counter .counters {
121
+ justify-content: center;
122
+ gap: 20px;
123
+ .counter_item {
124
+ width: calc(50% - 10px);
125
+ border-right: none;
126
+ }
127
+ }
128
+ }
129
+ @media screen and (max-width: 770px) and (min-width: 600px) {
130
+ counter-component {
131
+ .service_counter .counters .counter_item {
132
+ width: 32%;
133
+ margin: 0;
134
+ margin-right: 1%;
135
+ margin-bottom: 20px;
136
+ &:nth-child(3n) {
137
+ margin-right: 0;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ @media screen and (max-width: 600px) {
143
+ counter-component {
144
+ .service_counter .counters .counter_item {
145
+ width: 48%;
146
+ margin: 0;
147
+ margin-right: 1%;
148
+ margin-bottom: 20px;
149
+ &:nth-child(2n) {
150
+ margin-right: 0;
151
+ }
152
+ }
153
+ }
154
+ }
155
+ @media screen and (max-width: 600px) {
156
+ counter-component .service_counter {
157
+ .h2 {
158
+ margin-bottom: 23px;
159
+ }
160
+ .counters {
161
+ flex-wrap: wrap;
162
+ .counter_item {
163
+ max-width: initial;
164
+ &:first-child,
165
+ &:nth-child(2) {
166
+ margin-bottom: 15px;
167
+ }
168
+ .counter_top {
169
+ font-size: 56px;
170
+ }
171
+ }
172
+ }
173
+ .bottom_text {
174
+ margin-top: 10px;
175
+ }
176
+ }
177
+ }
178
+ @media screen and (max-width: 450px) {
179
+ counter-section .service_counter .counters .counter_item .counter {
180
+ &_top {
181
+ font-size: 36px;
182
+ }
183
+ &_bottom {
184
+ font-size: 14px;
185
+ }
186
+ }
187
+ }
188
+ @media screen and (max-width: 400px) {
189
+ counter-component .service_counter {
190
+ .counters {
191
+ .counter_item {
192
+ .counter_top {
193
+ font-size: 32px;
194
+ line-height: 35px;
195
+ }
196
+ .counter_bottom {
197
+ font-size: 14px;
198
+ line-height: 18px;
199
+ max-width: 140px;
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
@@ -0,0 +1,5 @@
1
+ export const counterSectionWithText = {
2
+ tag: 'counter-section-with-text',
3
+ src: '@gudhub/ssg-web-component-library/src/components/counter-section-with-text/counter-section-with-text.js',
4
+ serverOnly: false
5
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "title": "Title",
3
+ "subtitle": "subtitle Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
4
+ "button_text": "Спробувати Безкоштовно",
5
+ "items": [
6
+ {
7
+ "number": "98",
8
+ "symbol": "%",
9
+ "text": "Sed rhoncus venenatis velit"
10
+ },
11
+ {
12
+ "number": "10/7",
13
+ "text": "Duis efficitur condimentum lacus"
14
+ },
15
+ {
16
+ "number": "На",
17
+ "symbol": "&nbsp%",
18
+ "text": "Quisque vel justo lorem"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,46 @@
1
+ <section class="service_counter">
2
+ <div class="container">
3
+ <div class="flex-wrapper">
4
+ <div class="left">
5
+ <div class="text">
6
+ ${json.title ? `
7
+ <h2 class="h2" gh-id="${ghId}.title"> TITLE </h2>
8
+ ` : ''}
9
+ ${json.subtitle ? `
10
+ <p class="subtitle" gh-id="${ghId}.subtitle"> SUBTITLE </p>
11
+ ` : ''}
12
+ </div>
13
+ ${json.button ? `
14
+ <div class="bottom_button">
15
+ <button-component data-popup-id="${json.button.popupId}" data-placement="${json.button.placement}">${json.button.text}</button-component>
16
+ </div>
17
+ `: ''}
18
+ </div>
19
+ <div class="right">
20
+ <div class="counters">
21
+ ${items.reduce((acc, item, index) => {
22
+ return acc + `
23
+ <div class="counter_item">
24
+ <div class="counter_top">
25
+ ${item.number ? `
26
+ <span class="counter_num" gh-id="${ghId}.items.${index}.number"></span>
27
+ ` : ''}
28
+ ${item.symbol ? `
29
+ <span class="counter_symbol" gh-id="${ghId}.items.${index}.symbol"></span>
30
+ ` : ''}
31
+ </div>
32
+ ${item.text ? `
33
+ <div class="counter_bottom" gh-id="${ghId}.items.${index}.text"></div>
34
+ ` : ""}
35
+ </div>
36
+ `}, '')}
37
+ </div>
38
+ </div>
39
+ </div>
40
+ ${json.button_text ? `
41
+ <div class="bottom_button">
42
+ <button-component data-popup-title="Тестувати Безкоштовно" data-popup-subtitle="Заповніть форму зараз і ми зв'яжемося з вами!">${json.button_text}</button-component>
43
+ </div>
44
+ `: ''}
45
+ </div>
46
+ </section>
@@ -0,0 +1,23 @@
1
+ import html from './counter-section-with-text.html';
2
+ import './counter-section-with-text.scss';
3
+ import jsonTemplate from './counter-section-with-text-data.json';
4
+
5
+ class CounterSectionWithText extends GHComponent {
6
+
7
+ constructor() {
8
+ super();
9
+ super.setDefaultData(jsonTemplate);
10
+ }
11
+
12
+ async onServerRender() {
13
+ this.ghId = this.getAttribute('data-gh-id') || null;
14
+
15
+ this.json = await super.getGhData(this.ghId);
16
+ this.items = this.json.items;
17
+
18
+ super.render(html);
19
+ }
20
+
21
+ }
22
+
23
+ window.customElements.define('counter-section-with-text', CounterSectionWithText);
@@ -0,0 +1,19 @@
1
+ # Attributes:
2
+
3
+ none
4
+
5
+
6
+ # Component data-object:
7
+ ("?" means "unnecessary")
8
+ ```json
9
+ {
10
+ "title?": "string",
11
+ "subtitle?": "string",
12
+ "button_text?": "string",
13
+ "items": [ {
14
+ "number?": "string",
15
+ "symbol?": "string",
16
+ "text?": "string"
17
+ } ]
18
+ }
19
+ ```
@@ -0,0 +1,164 @@
1
+ counter-section-with-text {
2
+ --col-gap: 20px;
3
+ --items-in-row: 3;
4
+ background-color: var(--secondary-bg-color);
5
+ .service_counter {
6
+ .container {
7
+ .flex-wrapper {
8
+ display: flex;
9
+ flex-direction: row;
10
+ justify-content: center;
11
+ align-items: center;
12
+ gap: var(--col-gap);
13
+ .left, .right {
14
+ max-width: calc((100% - var(--col-gap)) / 2) ;
15
+ }
16
+ .left {
17
+ display: flex;
18
+ flex-direction: column;
19
+ gap: 50px;
20
+ .text {
21
+ text-align: left;
22
+ .h2 {
23
+ text-align: inherit;
24
+ }
25
+ & > :last-child {
26
+ margin-bottom: 0;
27
+ }
28
+ }
29
+ }
30
+ .right {
31
+ .counters {
32
+ width: 100%;
33
+ display: flex;
34
+ justify-content: center;
35
+ flex-wrap: wrap;
36
+ --gap: 30px;
37
+ gap: var(--gap);
38
+ .counter_item {
39
+ display: flex;
40
+ flex-direction: column;
41
+ justify-content: flex-start;
42
+ align-items: center;
43
+ text-align: center;
44
+
45
+ max-width: calc((100% - (var(--gap) * (var(--items-in-row) - 1))) / var(--items-in-row));
46
+ .counter {
47
+ &_top {
48
+ display: flex;
49
+ width: max-content;
50
+ font-size: 46px;
51
+ font-weight: 700;
52
+ line-height: 120%;
53
+ color: var(--h-color);
54
+ margin-bottom: 10px;
55
+
56
+ .counter {
57
+ &_num, &_symbol {
58
+ word-break: keep-all;
59
+ }
60
+ }
61
+ }
62
+ &_bottom {
63
+ text-align: center;
64
+ font-size: var(--text-font-size);
65
+ line-height: 140%;
66
+ color: var(--text-color);
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ .bottom_button {
74
+ .btn {
75
+ width: 260px;
76
+ height: 60px;
77
+ }
78
+ }
79
+ & > .bottom_button {
80
+ display: none;
81
+ width: 100%;
82
+ .btn {
83
+ margin: auto;
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ @media screen and (max-width: 1025px) {
90
+ .service_counter {
91
+ .container {
92
+ .flex-wrapper {
93
+ .left {
94
+ gap: 20px;
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+
101
+ @media screen and (min-width: 730px) and (max-width: 900px) {
102
+ .service_counter {
103
+ .container {
104
+ .flex-wrapper {
105
+ margin-bottom: 20px;
106
+ .left {
107
+ .bottom_button {
108
+ display: none;
109
+ }
110
+ }
111
+ .right {
112
+ display: flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ .counters {
116
+ flex-direction: column;
117
+ align-items: center;
118
+ .counter_item {
119
+ max-width: 205px;
120
+ }
121
+ }
122
+ }
123
+ }
124
+ & > .bottom_button {
125
+ display: block;
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ @media screen and (max-width: 730px) {
132
+ .service_counter {
133
+ .container {
134
+ .flex-wrapper {
135
+ flex-direction: column;
136
+ margin-bottom: 20px;
137
+ .left, .right {
138
+ max-width: 100%;
139
+ }
140
+ .left {
141
+ .text {
142
+ text-align: center;
143
+ }
144
+ .bottom_button {
145
+ display: none;
146
+ }
147
+ }
148
+ .right {
149
+ .counters {
150
+ flex-direction: row;
151
+ align-items: center;
152
+ }
153
+ }
154
+ }
155
+ & > .bottom_button {
156
+ display: block;
157
+ }
158
+ }
159
+ }
160
+ }
161
+ @media screen and (max-width: 600px) {
162
+ --items-in-row: 2;
163
+ }
164
+ }
@@ -0,0 +1,5 @@
1
+ export const crmServicesBanner = {
2
+ tag: 'crm-services-banner',
3
+ src: '@gudhub/ssg-web-component-library/src/components/crm-services-banner/crm-services-banner.js',
4
+ serverOnly: false
5
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "title": "Title",
3
+ "subtitle": "Subtitle",
4
+ "button": {
5
+ "link": "/contact-us/",
6
+ "text": "Let's Talk!"
7
+ },
8
+ "list": [
9
+ "Lorem ipsum dolor sit amet",
10
+ "Donec ut placerat velit",
11
+ "Morbi euismod elementum nibh",
12
+ "Phasellus venenatis volutpat lectus",
13
+ "In hac habitasse platea dictumst"
14
+ ],
15
+ "image": {
16
+ "src": "/assets/images/banner-image.png",
17
+ "alt": "image alt",
18
+ "title": "image title"
19
+ }
20
+ }
@@ -0,0 +1,28 @@
1
+ <section>
2
+ <div class="container">
3
+ <div class="flex-wrapper">
4
+ <div class="left">
5
+ <h1 gh-id="${ghId}.title"></h1>
6
+ <div class="main-subtitle" gh-id="${ghId}.subtitle"></div>
7
+ <ul class="banner_list tick_list">
8
+ ${
9
+ list.reduce((acc, item, index) => {
10
+ return acc + `
11
+ <li gh-id="${ghId}.list.${index}"></li>
12
+ `
13
+ }, '')
14
+ }
15
+ </ul>
16
+ <div class="flex_button">
17
+ ${json.buttons ? `
18
+ <button-component data-popup-id="${json.buttons.primary.popupId}" data-placement="${json.buttons.primary.placement}">${json.buttons.primary.text}</button-component>
19
+ <button-component data-popup-id="${json.buttons.secondary.popupId}" data-placement="${json.buttons.secondary.placement}" class="btn empty">${json.buttons.secondary.text}</button-component>
20
+ ` : ''}
21
+ </div>
22
+ </div>
23
+ <div class="right">
24
+ <image-component lazyload src="${image.src}" alt="${image.alt}" title="${image.title}" width="515" height="649"></image-component>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ </section>
@@ -0,0 +1,25 @@
1
+ import html from './crm-services-banner.html';
2
+ import './crm-services-banner.scss';
3
+ import jsonTemplate from './crm-services-banner-data.json';
4
+
5
+ class CrmServicesBanner extends GHComponent {
6
+ constructor() {
7
+ super();
8
+ super.setDefaultData(jsonTemplate);
9
+ }
10
+
11
+ async onServerRender() {
12
+ this.ghId = this.getAttribute('data-gh-id') || null;
13
+
14
+ this.json = await super.getGhData(this.ghId);
15
+
16
+ this.list = this.json.list;
17
+
18
+ this.image = this.json.image;
19
+
20
+ super.render(html);
21
+ }
22
+
23
+ }
24
+
25
+ window.customElements.define('crm-services-banner', CrmServicesBanner);
@@ -0,0 +1,57 @@
1
+ crm-services-banner {
2
+ background-color: var(--primary-bg-color);
3
+ display: block;
4
+ .main-subtitle {
5
+ margin-bottom: 40px;
6
+ }
7
+ .banner_list {
8
+ color: var(--subtitle-color);
9
+ margin-bottom: 40px;
10
+ }
11
+ .flex_button {
12
+ display: flex;
13
+ gap: 20px;
14
+ }
15
+ .flex-wrapper {
16
+ gap: 20px;
17
+ .left {
18
+ flex-shrink: 1;
19
+ }
20
+ .right {
21
+ display: flex;
22
+ justify-content: center;
23
+ align-items: center;
24
+ flex-shrink: 0;
25
+ max-width: calc(100% / 2);
26
+ img {
27
+ max-width: 100%;
28
+ }
29
+ }
30
+ }
31
+ .btn {
32
+ white-space: nowrap;
33
+ }
34
+
35
+ @media screen and (max-width: 1024px) {
36
+ .flex-wrapper {
37
+ flex-direction: column;
38
+ .left {
39
+ flex-shrink: 0;
40
+ }
41
+ .right {
42
+ max-width: 100%;
43
+ justify-content: center;
44
+ flex-shrink: 0;
45
+ }
46
+ }
47
+ }
48
+
49
+ @media screen and (max-width: 550px) {
50
+ .flex_button {
51
+ flex-wrap: wrap;
52
+ & > * {
53
+ width: 100%;
54
+ }
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,5 @@
1
+ export const editMode = {
2
+ tag: 'edit-mode',
3
+ src: '@gudhub/ssg-web-component-library/src/components/edit-mode/edit-mode.js',
4
+ serverOnly: false
5
+ }
@@ -0,0 +1,4 @@
1
+ <div class="edit-mode-button">
2
+ <input class="edit-mode-switch" type="checkbox" id="edit-mode-switch" onchange="toggleEditMode()" />
3
+ <label class="edit-mode-label" for="edit-mode-switch"></label>
4
+ </div>
@@ -0,0 +1,23 @@
1
+ import html from './edit-mode.html';
2
+ import './edit-mode.scss';
3
+
4
+ class EditMode extends GHComponent {
5
+ constructor() {
6
+ super();
7
+ }
8
+
9
+ onServerRender() {
10
+ super.render(html);
11
+ }
12
+
13
+ toggleEditMode() {
14
+ const event = new Event('toggle-edit-mode');
15
+ window.dispatchEvent(event);
16
+ document.querySelector('body').classList.toggle('edit-mode-enabled');
17
+ }
18
+
19
+ }
20
+
21
+ if(!window.customElements.get('edit-mode')) {
22
+ window.customElements.define('edit-mode', EditMode);
23
+ }