@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
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import * as components from './src/config.js';
2
+
3
+ export const components_list = Object.values(components);
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@gudhub/ssg-web-components-library",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/GudHubPlatform/ssg-web-components-library.git"
13
+ },
14
+ "author": "",
15
+ "license": "ISC",
16
+ "bugs": {
17
+ "url": "https://github.com/GudHubPlatform/ssg-web-components-library/issues"
18
+ },
19
+ "homepage": "https://github.com/GudHubPlatform/ssg-web-components-library#readme"
20
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "title": "Title",
3
+ "subtitle": "Subtitle",
4
+ "image": {
5
+ "src": "/assets/images/banner-image.png",
6
+ "alt": "image alt",
7
+ "title": "image title"
8
+ }
9
+ }
@@ -0,0 +1,19 @@
1
+ <section>
2
+ <div class="container">
3
+ <div class="flex-wrapper">
4
+ <div class="text">
5
+ <h1 gh-id="${ghId}.title"></h1>
6
+ <div class="subtitle" gh-id="${ghId}.subtitle"></div>
7
+ <div class="flex_button">
8
+ ${json.buttons ? `
9
+ <button-component data-popup-id="${json.buttons.primary.popupId}" data-placement="${json.buttons.primary.placement}">${json.buttons.primary.text}</button-component>
10
+ <button-component data-popup-id="${json.buttons.secondary.popupId}" data-placement="${json.buttons.secondary.placement}" class="btn empty">${json.buttons.secondary.text}</button-component>
11
+ ` : ''}
12
+ </div>
13
+ </div>
14
+ <div class="image">
15
+ <image-component lazyload src="${image.src}" alt="${image.alt}" title="${image.title}" width="578" height="385"></image-component>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </section>
@@ -0,0 +1,23 @@
1
+ import html from './about-us-banner.html';
2
+ import './about-us-banner.scss';
3
+ import jsonTemplate from './about-us-banner-data.json';
4
+
5
+ class AboutUsBanner 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.image = this.json.image;
17
+
18
+ super.render(html);
19
+ }
20
+
21
+ }
22
+
23
+ window.customElements.define('about-us-banner', AboutUsBanner);
@@ -0,0 +1,59 @@
1
+ about-us-banner {
2
+ background-color: var(--primary-bg-color);
3
+ display: block;
4
+ .subtitle {
5
+ margin-bottom: 40px;
6
+ }
7
+ .flex_button {
8
+ display: flex;
9
+ gap: 20px;
10
+ }
11
+ .flex-wrapper {
12
+ gap: 40px;
13
+ .text {
14
+ max-width: calc((100% - 40px) / 2 + 70px);
15
+ }
16
+ .image {
17
+ max-width: 100%;
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ img {
22
+ max-width: 100%;
23
+ }
24
+ }
25
+ }
26
+ .btn {
27
+ white-space: nowrap;
28
+ }
29
+
30
+ @media screen and (max-width: 1024px) {
31
+ .container {
32
+ .flex-wrapper {
33
+ flex-direction: column;
34
+ .text {
35
+ flex-shrink: 0;
36
+ max-width: 100%;
37
+ }
38
+ .image {
39
+ max-width: 100%;
40
+ justify-content: center;
41
+ flex-shrink: 0;
42
+ margin-top: -20px;
43
+ }
44
+ .flex_button {
45
+ gap: 10px;
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ @media screen and (max-width: 550px) {
52
+ .flex_button {
53
+ flex-wrap: wrap;
54
+ & > * {
55
+ width: 100%;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,5 @@
1
+ export const aboutUsBanner = {
2
+ tag: 'about-us-banner',
3
+ src: '@gudhub/ssg-web-component-library/src/components/about-us-banner/about-us-banner.js',
4
+ serverOnly: false
5
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "title": "Title",
3
+ "subtitle": "Etiam sed ullamcorper tortor, sit amet dictum est. Ut posuere dolor sodales euismod feugiat",
4
+ "button_text": "Тестувати безкоштовно",
5
+ "items": [
6
+ {
7
+ "icon": {
8
+ "src": "/assets/images/lowes.png",
9
+ "alt": "Image alt",
10
+ "title": "image title"
11
+ }
12
+ },
13
+ {
14
+ "icon": {
15
+ "src": "/assets/images/formica.png",
16
+ "alt": "Tristique senectus",
17
+ "title": "Tristique senectus"
18
+ }
19
+ },
20
+ {
21
+ "icon": {
22
+ "src": "/assets/images/master-brand.png",
23
+ "alt": "Donec lacinia orci",
24
+ "title": "Donec lacinia orci"
25
+ }
26
+ },
27
+ {
28
+ "icon": {
29
+ "src": "/assets/images/lg.png",
30
+ "alt": "Suspendisse",
31
+ "title": "Suspendisse"
32
+ }
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,22 @@
1
+ <section class="service_counter">
2
+ <div class="container">
3
+ <div class="top_part">
4
+ <h2 class="h2" gh-id="${ghId}.title"> TITLE </h2>
5
+ ${json.subtitle ? `
6
+ <p gh-id="${ghId}.subtitle" class="subtitle"> SUBTITLE </p>
7
+ ` : ''}
8
+ </div>
9
+ <div class="grid">
10
+ ${items.reduce((acc, item, index) => acc + `
11
+ <div class="grid_item">
12
+ <div class="image">
13
+ <image-component src="${item.icon.src}" alt="${item.icon.alt}" title="${item.icon.title}" width="270" height="80"></image-component>
14
+ </div>
15
+ </div>
16
+ `, '')}
17
+ </div>
18
+ ${json.button ? `
19
+ <button-component data-popup-id="${json.button.popupId}" data-placement="${json.button.placement}">${json.button.text}</button-component>
20
+ `: ''}
21
+ </div>
22
+ </section>
@@ -0,0 +1,23 @@
1
+ import html from './about-us-image-counter.html';
2
+ import './about-us-image-counter.scss';
3
+ import jsonTemplate from './about-us-image-counter-data.json';
4
+
5
+ class AboutUsImageCounter 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('about-us-image-counter', AboutUsImageCounter);
@@ -0,0 +1,44 @@
1
+ about-us-image-counter {
2
+ --column-grid-gap: 10px;
3
+ background-color: var(--primary-bg-color);
4
+ .container {
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ }
9
+ .top_part {
10
+ margin-bottom: 50px;
11
+ }
12
+ .h2 {
13
+ margin-bottom: 0;
14
+ }
15
+ .subtitle {
16
+ text-align: center;
17
+ }
18
+ .grid {
19
+ width: 100%;
20
+ display: flex;
21
+ justify-content: center;
22
+ align-items: center;
23
+ flex-wrap: wrap;
24
+ gap: 10px var(--column-grid-gap);
25
+ margin-bottom: 50px;
26
+ }
27
+ .grid_item {
28
+ background-color: #fff;
29
+ border-radius: 10px;
30
+ img {
31
+ height: 83px;
32
+ object-fit: contain;
33
+ }
34
+ }
35
+
36
+ @media screen and (max-width: 650px) {
37
+ .top_part {
38
+ margin-bottom: 25px;
39
+ }
40
+ .grid {
41
+ margin-bottom: 25px;
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,5 @@
1
+ export const aboutUsImageCounter = {
2
+ tag: 'about-us-image-counter',
3
+ src: '@gudhub/ssg-web-component-library/src/components/about-us-image-counter/about-us-image-counter.js',
4
+ serverOnly: false
5
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "title": "Title",
3
+ "subtitle": "Subtitle",
4
+ "items": [
5
+ {
6
+ "title": "Title",
7
+ "subtitle": "Subtitle",
8
+ "items": [
9
+ {
10
+ "image": {
11
+ "src": "/assets/images/placeholder392x324.png",
12
+ "alt": "image alt",
13
+ "title": "image title"
14
+ },
15
+ "name": "name",
16
+ "position": "position"
17
+ },
18
+ {
19
+ "image": {
20
+ "src": "/assets/images/placeholder392x324.png",
21
+ "alt": "image alt",
22
+ "title": "image title"
23
+ },
24
+ "name": "name",
25
+ "position": "position"
26
+ },
27
+ {
28
+ "image": {
29
+ "src": "/assets/images/placeholder392x324.png",
30
+ "alt": "image alt",
31
+ "title": "image title"
32
+ },
33
+ "name": "name",
34
+ "position": "position"
35
+ },
36
+ {
37
+ "image": {
38
+ "src": "/assets/images/placeholder392x324.png",
39
+ "alt": "image alt",
40
+ "title": "image title"
41
+ },
42
+ "name": "name",
43
+ "position": "position"
44
+ },
45
+ {
46
+ "image": {
47
+ "src": "/assets/images/placeholder392x324.png",
48
+ "alt": "image alt",
49
+ "title": "image title"
50
+ },
51
+ "name": "name",
52
+ "position": "position"
53
+ },
54
+ {
55
+ "image": {
56
+ "src": "/assets/images/placeholder392x324.png",
57
+ "alt": "image alt",
58
+ "title": "image title"
59
+ },
60
+ "name": "name",
61
+ "position": "position"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "title": "Title",
67
+ "subtitle": "Subtitle",
68
+ "items": [
69
+ {
70
+ "image": {
71
+ "src": "/assets/images/placeholder392x324.png",
72
+ "alt": "image alt",
73
+ "title": "image title"
74
+ },
75
+ "name": "name",
76
+ "position": "position"
77
+ },
78
+ {
79
+ "image": {
80
+ "src": "/assets/images/placeholder392x324.png",
81
+ "alt": "image alt",
82
+ "title": "image title"
83
+ },
84
+ "name": "name",
85
+ "position": "position"
86
+ },
87
+ {
88
+ "image": {
89
+ "src": "/assets/images/placeholder392x324.png",
90
+ "alt": "image alt",
91
+ "title": "image title"
92
+ },
93
+ "name": "name",
94
+ "position": "position"
95
+ }
96
+ ]
97
+ }
98
+ ]
99
+ }
@@ -0,0 +1,25 @@
1
+ <section>
2
+ <div class="container">
3
+ <div class="main-text">
4
+ <h2 class="h2" gh-id="${ghId}.title"> TITLE </h2>
5
+ <p gh-id="${ghId}.subtitle" class="subtitle"> SUBTITLE </p>
6
+ </div>
7
+ ${json.items.reduce((acc, item, gridIndex) => acc + `
8
+ <div class="grid-container">
9
+ <h3 class="h3" gh-id="${ghId}.items.${gridIndex}.title"> TITLE </h3>
10
+ <p gh-id="${ghId}.items.${gridIndex}.subtitle" class="subtitle"> SUBTITLE </p>
11
+ <div class="grid">
12
+ ${item.items.reduce((acc, item, index) => acc + `
13
+ <div class="grid-item">
14
+ <div class="image">
15
+ <image-component lazyload src="${item.image.src}" alt="${item.image.alt}" title="${item.image.title}" width="392" height="320"></image-component>
16
+ </div>
17
+ <h3 class="h3 name" gh-id="${ghId}.items.${gridIndex}.items.${index}.name"> NAME </h3>
18
+ <div class="position accent-color" gh-id="${ghId}.items.${gridIndex}.items.${index}.position"> POSITION </div>
19
+ </div>
20
+ `, '')}
21
+ </div>
22
+ </div>
23
+ `,'')}
24
+ </div>
25
+ </section>
@@ -0,0 +1,22 @@
1
+ import html from './about-us-team-members.html';
2
+ import './about-us-team-members.scss';
3
+ import jsonTemplate from './about-us-team-members-data.json';
4
+
5
+ class AboutUsTeamMembers 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
+
17
+ super.render(html);
18
+ }
19
+
20
+ }
21
+
22
+ window.customElements.define('about-us-team-members', AboutUsTeamMembers);
@@ -0,0 +1,71 @@
1
+ about-us-team-members {
2
+ background-color: var(--primary-bg-color);
3
+ --items-in-row: 3;
4
+ --col-gap: 20px;
5
+ --row-gap: 50px;
6
+ .container {
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ }
11
+ .main-text {
12
+ margin-bottom: 50px;
13
+ & > :last-child{
14
+ margin-bottom: 0;
15
+ }
16
+ }
17
+ .subtitle {
18
+ text-align: center;
19
+ }
20
+ .grid-container {
21
+ & > .h3 {
22
+ margin-bottom: 20px;
23
+ text-align: center;
24
+ }
25
+ .subtitle {
26
+ max-width: 775px;
27
+ margin: auto;
28
+ margin-bottom: 30px;
29
+ }
30
+ .grid {
31
+ display: flex;
32
+ flex-wrap: wrap;
33
+ gap: var(--row-gap) var(--col-gap);
34
+ .grid-item {
35
+ display: flex;
36
+ flex-direction: column;
37
+ .image {
38
+ width: 100%;
39
+ margin-bottom: 20px;
40
+ img {
41
+ width: 100%;
42
+ height: auto;
43
+ }
44
+ }
45
+ .h3 {
46
+ margin-bottom: 5px;
47
+ }
48
+ }
49
+ }
50
+ &:not(:last-child) {
51
+ margin-bottom: 50px;
52
+ }
53
+ }
54
+
55
+ .grid-item {
56
+ max-width: calc((100% - (var(--col-gap) * (var(--items-in-row) - 1))) / var(--items-in-row));
57
+ }
58
+ @media screen and (max-width: 650px) {
59
+ --items-in-row: 1;
60
+ --row-gap: 25px;
61
+ .grid {
62
+ justify-content: center;
63
+ }
64
+ }
65
+
66
+ @media screen and (max-width: 900px) {
67
+ .main-text {
68
+ margin-bottom: 25px;
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,5 @@
1
+ export const aboutUsTeamMembers = {
2
+ tag: 'about-us-team-members',
3
+ src: '@gudhub/ssg-web-component-library/src/components/about-us-team-members/about-us-team-members.js',
4
+ serverOnly: false
5
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "title": "Інтеграції CRM для Бізнесу",
3
+ "subtitle": "Поєднайте інструменти, якими ви користуєтеся разом з вашим бізнесом для максимальної продуктивності та ефективності компанії.",
4
+ "buttons": [
5
+ {
6
+ "class": "btn",
7
+ "text": "Спробувати CRM"
8
+ },
9
+ {
10
+ "class": "btn empty",
11
+ "text": "Більше Інтеграцій"
12
+ }
13
+ ],
14
+ "rows": [
15
+ {
16
+ "row": [
17
+ {
18
+ "src": "/assets/images/slack.jpg",
19
+ "title": "Slack",
20
+ "alt": "Slack"
21
+ },
22
+ {
23
+ "src": "/assets/images/telegram.jpg",
24
+ "title": "Telegram",
25
+ "alt": "Telegram"
26
+ },
27
+ {
28
+ "src": "/assets/images/slack.jpg",
29
+ "title": "Slack",
30
+ "alt": "Slack"
31
+ },
32
+ {
33
+ "src": "/assets/images/telegram.jpg",
34
+ "title": "Telegram",
35
+ "alt": "Telegram"
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,37 @@
1
+ <section class="animation-block">
2
+ <div class="container">
3
+ <h2 gh-id="${ghId}.title"></h2>
4
+ <p class="subtitle" gh-id="${ghId}.subtitle"></p>
5
+ <div class="rows-wrapper">
6
+ ${
7
+ rows.reduce((acc, row, rowIndex) => {
8
+ return acc + `
9
+ <div class="row">
10
+ ${
11
+ row.row.reduce((acc, row_item, index) => {
12
+ return acc + `
13
+ <div class="item">
14
+ <div class="icon-wrapper">
15
+ <img src="${row_item.image.src}" alt="${row_item.image.alt}" title="${row_item.image.title}">
16
+ </div>
17
+ <div class="item-text">
18
+ <div class="bold" gh-id="${ghId}.rows.${rowIndex}.row.${index}.title"></div>
19
+ <span gh-id="${ghId}.rows.${rowIndex}.row.${index}.subtitle"></span>
20
+ </div>
21
+ </div>
22
+ `
23
+ }, '')
24
+ }
25
+ </div>
26
+ `
27
+ }, '')
28
+ }
29
+ ${json.buttons ? `
30
+ <div class="buttons">
31
+ <button-component class="btn" data-popup-id="${json.buttons.primary.popupId}" data-placement="${json.buttons.primary.placement}">${json.buttons.primary.text}</button-component>
32
+ <button-component class="btn empty" data-popup-id="${json.buttons.secondary.popupId}" data-placement="${json.buttons.secondary.placement}">${json.buttons.secondary.text}</button-component>
33
+ </div>
34
+ ` : ''}
35
+ </div>
36
+ </div>
37
+ </section>
@@ -0,0 +1,23 @@
1
+ import html from './animation-block.html';
2
+ import './animation-block.scss';
3
+ import jsonTemplate from './animation-block-data.json';
4
+ class AnimationBlock extends GHComponent {
5
+ constructor() {
6
+ super();
7
+ super.setDefaultData(jsonTemplate);
8
+ }
9
+
10
+ async onServerRender() {
11
+ this.ghId = this.getAttribute('data-gh-id') || null;
12
+
13
+
14
+ this.json = await super.getGhData(this.ghId);
15
+ this.rows = this.json.rows;
16
+ this.buttons = this.json.buttons;
17
+
18
+ super.render(html);
19
+ }
20
+
21
+ }
22
+
23
+ window.customElements.define('animation-block', AnimationBlock);