swedbank-pay-design-guide-jekyll-theme 1.5.1.pre.article.pre.no.pre.main0001

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 (64) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +103 -0
  4. data/_assets/css/pygments-autumn.css +66 -0
  5. data/_assets/scss/card.scss +170 -0
  6. data/_assets/scss/code-view.scss +13 -0
  7. data/_assets/scss/colors.scss +19 -0
  8. data/_assets/scss/fonts.scss +2 -0
  9. data/_assets/scss/front-page.scss +312 -0
  10. data/_assets/scss/heading.scss +79 -0
  11. data/_assets/scss/paragraph-highlight.scss +8 -0
  12. data/_assets/scss/sidebar.scss +72 -0
  13. data/_assets/scss/swedbank-pay-design-guide-theme.scss +290 -0
  14. data/_assets/scss/title-header.scss +39 -0
  15. data/_assets/scss/variables.scss +1 -0
  16. data/_includes/alert.html +34 -0
  17. data/_includes/anchor_headings.html +100 -0
  18. data/_includes/apple-mobile-headers.html +6 -0
  19. data/_includes/apple-touch-icon.html +4 -0
  20. data/_includes/apple-touch-icons.md +9 -0
  21. data/_includes/apple-touch-startup-image.html +23 -0
  22. data/_includes/apple-touch-startup-images.md +31 -0
  23. data/_includes/card-horizontal-list.html +33 -0
  24. data/_includes/card-list.html +28 -0
  25. data/_includes/card.html +73 -0
  26. data/_includes/front-page.html +255 -0
  27. data/_includes/google_analytics.html +9 -0
  28. data/_includes/img/merchants/logo-coop.svg +3 -0
  29. data/_includes/img/merchants/logo-elkjop.svg +23 -0
  30. data/_includes/img/merchants/logo-ica.svg +57 -0
  31. data/_includes/img/merchants/logo-schibsted.svg +30 -0
  32. data/_includes/img/merchants/logo-skanetrafiken.svg +5 -0
  33. data/_includes/img/merchants/logo-svenskaspel.svg +23 -0
  34. data/_includes/img/merchants/logo-synsam.svg +12 -0
  35. data/_includes/img/modules/logo-episerver.svg +15 -0
  36. data/_includes/img/modules/logo-magento2.svg +5 -0
  37. data/_includes/img/modules/logo-woocommerce.svg +16 -0
  38. data/_includes/img/sdks/logo-android.svg +3 -0
  39. data/_includes/img/sdks/logo-ios.svg +3 -0
  40. data/_includes/img/sdks/logo-net.svg +15 -0
  41. data/_includes/img/sdks/logo-nodejs.svg +3 -0
  42. data/_includes/img/sdks/logo-php.svg +5 -0
  43. data/_includes/img/sdks/logo-swift.svg +10 -0
  44. data/_includes/iterator.html +18 -0
  45. data/_includes/jumbotron.html +6 -0
  46. data/_includes/paragraph-highlight.html +7 -0
  47. data/_includes/release_notes.html +29 -0
  48. data/_includes/sidebar.html +116 -0
  49. data/_includes/toc.html +100 -0
  50. data/_layouts/default.html +145 -0
  51. data/_plugins/jekyll_asset_pipeline.rb +19 -0
  52. data/_plugins/sidebar.rb +211 -0
  53. data/assets/img/demoshop-mobile.svg +18 -0
  54. data/assets/img/demoshop-mobile2.svg +23 -0
  55. data/assets/img/demoshop-web.svg +31 -0
  56. data/assets/img/demoshop.svg +27 -0
  57. data/assets/img/external-url.svg +1 -0
  58. data/assets/js/mermaid.min.js +19 -0
  59. data/assets/js/swedbank-pay-design-guide-theme.js +136 -0
  60. data/assets/tipuesearch/search.png +0 -0
  61. data/assets/tipuesearch/tipuesearch.min.js +179 -0
  62. data/assets/tipuesearch/tipuesearch_content.js +83 -0
  63. data/assets/tipuesearch/tipuesearch_set.js +80 -0
  64. metadata +293 -0
@@ -0,0 +1,6 @@
1
+ {% assign design_guide_url = include.design_guide_url %}
2
+ <meta name="apple-mobile-web-app-capable" content="yes">
3
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
4
+ <meta name="apple-mobile-web-app-title" content="{{ page.title }}">
5
+ {% include apple-touch-icons.md design_guide_url=design_guide_url -%}
6
+ {% include apple-touch-startup-images.md design_guide_url=design_guide_url -%}
@@ -0,0 +1,4 @@
1
+ {%- assign stripped_size = include.size | strip -%}
2
+ {%- assign size_string = stripped_size | append: 'x' | append: stripped_size -%}
3
+ {%- assign design_guide_url = include.design_guide_url -%}
4
+ <link rel="apple-touch-icon" sizes="{{ size_string }}" href="{{ design_guide_url }}/icons/apple-touch-icon-{{ size_string }}.png">
@@ -0,0 +1,9 @@
1
+ {% comment -%}
2
+ TODO: Figure out how to use front matter with proper arrays instead of split
3
+ strings.
4
+ {%- endcomment -%}
5
+ {% assign design_guide_url = include.design_guide_url %}
6
+ {%- assign sizes = "57, 60, 72, 76, 114, 120, 144, 152, 167, 180, 1024" | split: ',' -%}
7
+ {%- for size in sizes -%}
8
+ {%- include apple-touch-icon.html size=size design_guide_url=design_guide_url -%}
9
+ {%- endfor -%}
@@ -0,0 +1,23 @@
1
+ {%- assign device_width = include.width | strip | append: 'px' -%}
2
+ {%- assign device_height = include.height | strip | append: 'px' -%}
3
+ {%- assign image_size = include.size | strip -%}
4
+ {%- assign device_orientation = include.orientation | default: nil | strip -%}
5
+ {%- assign device_pixel_ratio = include.pixel_ratio | strip -%}
6
+ {%- assign design_guide_url = include.design_guide_url -%}
7
+ {%- capture device_width_string -%}
8
+ (device-width: {{ device_width }})
9
+ {%- endcapture -%}
10
+ {%- capture device_height_string -%}
11
+ (device-height: {{ device_height }})
12
+ {%- endcapture -%}
13
+ {%- if device_orientation != nil && device_orientation != empty -%}
14
+ {%- capture device_orientation_string -%}
15
+ (orientation: {{ device_orientation }}) and
16
+ {%- endcapture -%}
17
+ {%- endif -%}
18
+ {%- capture pixel_ratio_string -%}
19
+ (-webkit-device-pixel-ratio: {{ device_pixel_ratio }})
20
+ {%- endcapture -%}
21
+ <link rel="apple-touch-startup-image"
22
+ media="{{ device_width_string }} and {{ device_height_string }} and {{ device_orientation_string }} {{ pixel_ratio_string }}"
23
+ href="{{ design_guide_url }}/icons/apple-touch-startup-image-{{- image_size -}}.png">
@@ -0,0 +1,31 @@
1
+ {%- assign design_guide_url = include.design_guide_url -%}
2
+ {%- capture startup_image_configs -%}
3
+ 320,480,1,320x460
4
+ 320,480,2,640x920
5
+ 320,568,2,640x1096
6
+ 375,667,2,750x1294
7
+ 414,736,3,1182x2208,landscape
8
+ 414,736,3,1242x2148,portrait
9
+ 768,1024,1,748x1024,landscape
10
+ 768,1024,1,768x1004,portrait
11
+ 768,1024,2,1496x2048,landscape
12
+ 768,1024,2,1536x2008,portrait
13
+ {%- endcapture -%}
14
+ {%- assign startup_image_configs = startup_image_configs | newline_to_br | split: '<br />' -%}
15
+ {%- for startup_image_config in startup_image_configs -%}
16
+ {%- assign values = startup_image_config | split: ',' -%}
17
+ {%- assign width = values[0] -%}
18
+ {%- assign height = values[1] -%}
19
+ {%- assign pixel_ratio = values[2] -%}
20
+ {%- assign size = values[3] -%}
21
+ {%- if values.size > 3 -%}
22
+ {% assign orientation = values[4] -%}
23
+ {%- endif -%}
24
+ {%- include apple-touch-startup-image.html
25
+ width=width
26
+ height=height
27
+ pixel_ratio=pixel_ratio
28
+ size=size
29
+ orientation=orientation
30
+ design_guide_url=design_guide_url -%}
31
+ {%- endfor -%}
@@ -0,0 +1,33 @@
1
+ {%- comment -%}
2
+ **Parameters
3
+ card_list(required): An array with items having the attributes card_title,
4
+ title(required), estimated_read, url(required). Works with site.pages
5
+ type: sdk | module - Empty type result in default card styling
6
+ {%- endcomment -%}
7
+
8
+ {% assign card_list = include.card_list %}
9
+ {% assign type = include.type %}
10
+
11
+ <div class="card-horizontal-list">
12
+ {% for card in card_list %}
13
+ {% if card.estimated_read %}
14
+ {% assign text = card.estimated_read | append: ' min read' %}
15
+ {% else %}
16
+ {% assign text = %}
17
+ {% endif %}
18
+ {% if card.card_title %}
19
+ {% assign title = card.card_title %}
20
+ {% else %}
21
+ {% assign title = card.title | split: '–' | last %}
22
+ {% endif %}
23
+ {% assign icon_content = '0' | append: forloop.index %}
24
+ {% include card.html title=title
25
+ title_type='h3'
26
+ text=text
27
+ icon_content=icon_content
28
+ horizontal=true
29
+ to=card.url
30
+ type=type
31
+ %}
32
+ {% endfor %}
33
+ </div>
@@ -0,0 +1,28 @@
1
+ {%- comment -%}
2
+ **Parameters
3
+ card_list(required): An array with items having the attributes title(required),
4
+ url(required), description, icon.content(required), icon.outlined, icon.svg.
5
+ Works with site.pages
6
+ type: sdk | module - Empty type result in default card styling
7
+ col_class(required): Describes what grid column class(es) each card should be wrapped in
8
+ {%- endcomment -%}
9
+
10
+ {% assign card_list = include.card_list %}
11
+ {% assign type = include.type %}
12
+ {% assign col_class = include.col_class %}
13
+
14
+ <div class="row card-list">
15
+ {% for card in card_list %}
16
+ {% assign title = card.title | split: '–' | last %}
17
+ <div class="{{ col_class }}">
18
+ {% include card.html title=title
19
+ text=card.description
20
+ icon_content=card.icon.content
21
+ icon_outlined=card.icon.outlined
22
+ icon_svg=card.icon.svg
23
+ to=card.url
24
+ type=type
25
+ %}
26
+ </div>
27
+ {% endfor %}
28
+ </div>
@@ -0,0 +1,73 @@
1
+ {%- comment -%}
2
+ **Parameters
3
+ title(required): Title of the card
4
+ title_type: Determines size of the title
5
+ icon_content: Used to generate content of dx-card-icon
6
+ icon_outlined: Make icon_content outlined if icon_content is material-icon
7
+ icon_svg: Handles value of icon_content as a reference to a svg-file
8
+ no_icon: Hides dx-card-icon
9
+ text: Text content of the card
10
+ horizontal: Used when dx-card-horizontal is needed
11
+ to(required): Url to the page to be directed to on click
12
+ type: sdk | module - Empty type result in default card styling
13
+ {%- endcomment -%}
14
+
15
+ {% assign title = include.title %}
16
+ {% assign title_type = include.title_type | default: 'h4', %}
17
+ {% assign icon_content = include.icon_content %}
18
+ {% assign icon_outlined = include.icon_outlined | default: false %}
19
+ {% assign icon_svg = include.icon_svg | default: false %}
20
+ {% assign no_icon = include.no_icon | default: false %}
21
+ {% assign text = include.text %}
22
+ {% assign horizontal = include.horizontal | default: false %}
23
+ {% assign to = include.to %}
24
+ {% if include.type %}
25
+ {% assign type = include.type %}
26
+ {% assign type_class = 'dx-card-' | append: type %}
27
+ {% else %}
28
+ {% assign type_class = '' %}
29
+ {% endif %}
30
+
31
+ {% comment %}
32
+ card.html is structured this way due to issues with rendering
33
+ when Liquid is mixed in between and the cards are not wrapped in a div
34
+ {% endcomment %}
35
+
36
+ {% if horizontal %}
37
+ <a href="{{ to }}" class="dx-card dx-card-horizontal {{type_class}}">
38
+ <span class="dx-card-icon{% if no_icon %} d-none{% endif %}">
39
+ {{ icon_content }}
40
+ </span>
41
+ <span class="dx-card-content">
42
+ <span class="{{ title_type }}">{{ title }}</span>
43
+ <span>{{ text }}</span>
44
+ </span>
45
+ <i class="material-icons">arrow_forward</i>
46
+ </a>
47
+ {% else %}
48
+ {% if icon_svg %}
49
+ <a href="{{ to }}" class="dx-card {{type_class}}">
50
+ <span class="dx-card-icon">
51
+ {% include {{ icon_content }} %}
52
+ </span>
53
+ <span class="dx-card-content">
54
+ <span class="{{ title_type }}">{{ title }}</span>
55
+ <span>{{ text }}</span>
56
+ </span>
57
+ <i class="material-icons">arrow_forward</i>
58
+ </a>
59
+ {% else %}
60
+ <a href="{{ to }}" class="dx-card {{type_class}}">
61
+ <span class="dx-card-icon{% if no_icon %} d-none{% endif %}">
62
+ <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
63
+ {{ icon_content }}
64
+ </i>
65
+ </span>
66
+ <span class="dx-card-content">
67
+ <span class="{{ title_type }}">{{ title }}</span>
68
+ <span>{{ text }}</span>
69
+ </span>
70
+ <i class="material-icons">arrow_forward</i>
71
+ </a>
72
+ {% endif %}
73
+ {% endif %}
@@ -0,0 +1,255 @@
1
+
2
+ {%- comment -%}
3
+ **Parameters
4
+ card_col_class: Grid column class the cards should be wrapped in
5
+ num_dates: Amount of rows (based on dates in release_notes) should be displayed
6
+ in release-notes
7
+ {%- endcomment -%}
8
+
9
+ {% assign card_col_class = include.card_col_class | default: "col-xxl-3 col-xl-6 col-lg-6" %}
10
+ {% assign num_dates = include.num_dates | default: 3 %}
11
+
12
+ <div class="front-page">
13
+ <div class="front-page-container">
14
+ <div class="front-page-top">
15
+ <div class="front-page-hero">
16
+ <h3>Welcome to the Swedbank Pay</h3>
17
+ <div class="front-page-hero-name">
18
+ {<span>developer portal</span>}
19
+ </div>
20
+ <p>
21
+ Our developer portal gives you the full tool box for integrating
22
+ our payment instruments and getting started with easy, flexible and
23
+ safe payments on your e-commerce website.
24
+ </p>
25
+ </div>
26
+ <div class="front-page-intro-cards">
27
+ <h2 id="front-page-start" class="heading-line heading-line-white" >Start your integration</h2>
28
+ <div class="row mt-4">
29
+ <div class="{{ card_col_class }}">
30
+ {% include card.html title='Checkout'
31
+ title_type="h2"
32
+ text='With our Checkout you get the pre-built all-in-one
33
+ payment solution, complete with a checkin interface and
34
+ payment menu.'
35
+ icon_content='shopping_cart'
36
+ icon_outlined=true
37
+ to='/checkout'
38
+ %}
39
+ </div>
40
+ <div class="{{ card_col_class }}">
41
+ {% include card.html title='Payments'
42
+ title_type="h2"
43
+ text='Payments gives you a one-by-one integration with more
44
+ customization for each payment method to build your own
45
+ payment menu.'
46
+ icon_content='credit_card'
47
+ to='/payments'
48
+ %}
49
+ </div>
50
+ <div class="{{ card_col_class }}">
51
+ {% include card.html title='Gift Cards'
52
+ title_type="h2"
53
+ text='Our Gift Cards API allows your customers to pay with
54
+ prepaid gift cards issued by Swedbank Pay in your Checkout.'
55
+ icon_content='card_giftcard'
56
+ to='/gift-cards'
57
+ %}
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="front-page-merchants">
64
+ <h6>Trusted by</h6>
65
+ <div class="merchants-container justify-content-xxl-between">
66
+ <a class="merchant-link">
67
+ {% include img/merchants/logo-schibsted.svg %}
68
+ </a>
69
+ <a class="merchant-link">
70
+ {% include img/merchants/logo-ica.svg %}
71
+ </a>
72
+ <a class="merchant-link">
73
+ {% include img/merchants/logo-elkjop.svg %}
74
+ </a>
75
+ <a class="merchant-link">
76
+ {% include img/merchants/logo-synsam.svg %}
77
+ </a>
78
+ <a class="merchant-link">
79
+ {% include img/merchants/logo-coop.svg %}
80
+ </a>
81
+ <a class="merchant-link">
82
+ {% include img/merchants/logo-svenskaspel.svg %}
83
+ </a>
84
+ <a class="merchant-link">
85
+ {% include img/merchants/logo-skanetrafiken.svg %}
86
+ </a>
87
+ </div>
88
+ </div>
89
+ </div>
90
+
91
+ <a href="https://ecom.externalintegration.payex.com/pspdemoshop" class="front-page-demoshop">
92
+ <span class="front-page-demoshop-text">
93
+ <span class="h2">Try our Demoshop<span>.</span></span>
94
+ <span class="demoshop-text-description">
95
+ Unsure about how it all works? See how our checkout and payment methods are used
96
+ in practice!
97
+ </span>
98
+ </span>
99
+ <span class="front-page-demoshop-link">
100
+ <span class="h3">Go to the demoshop</span>
101
+ <i class="material-icons">arrow_forward</i>
102
+ <span class="demoshop-link-img">
103
+ <img class="demoshop-link-img-mobile d-md-none d-lg-flex d-xl-none d-xxl-flex"
104
+ src="/assets/img/demoshop-mobile.svg"
105
+ alt="demoshop-mobile"
106
+ />
107
+ <img class="demoshop-link-img-mobile d-none d-md-none d-lg-flex d-xl-none"
108
+ src="/assets/img/demoshop-mobile2.svg"
109
+ alt="demoshop-mobile2"
110
+ />
111
+ <img class="demoshop-link-img-web d-none d-sm-none d-md-flex d-lg-none d-xl-flex"
112
+ src="/assets/img/demoshop-web.svg"
113
+ alt="demoshop-web"
114
+ />
115
+ </span>
116
+ </span>
117
+ </a>
118
+
119
+ <div class="front-page-container">
120
+ <div class="front-page-cards-sdk">
121
+ <h2 id="front-page-sdk" class="heading-line heading-line-sdk">Looking for SDKs?</h2>
122
+ <div class="row mt-4">
123
+ <div class="{{ card_col_class }}">
124
+ {% include card.html title='Android SDK'
125
+ text='Learn more about how to integrate our Android SDK'
126
+ icon_content='img/sdks/logo-android.svg'
127
+ icon_svg=true
128
+ type='sdk'
129
+ to=''
130
+ %}
131
+ </div>
132
+ <div class="{{ card_col_class }}">
133
+ {% include card.html title='Swift SDK'
134
+ text='Learn more about how to integrate our Swift SDK'
135
+ icon_content='img/sdks/logo-swift.svg'
136
+ icon_svg=true
137
+ type='sdk'
138
+ to=''
139
+ %}
140
+ </div>
141
+ <div class="{{ card_col_class }}">
142
+ {% include card.html title='.NET SDK'
143
+ text='Learn more about how to integrate our .NET SDK'
144
+ icon_content='img/sdks/logo-net.svg'
145
+ icon_svg=true
146
+ type='sdk'
147
+ to=''
148
+ %}
149
+ </div>
150
+ <div class="{{ card_col_class }}">
151
+ {% include card.html title='PHP SDK'
152
+ text='Learn more about how to integrate our PHP SDK'
153
+ icon_content='img/sdks/logo-php.svg'
154
+ icon_svg=true
155
+ type='sdk'
156
+ to=''
157
+ %}
158
+ </div>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="front-page-cards-module">
163
+ <h2 id="front-page-module" class="heading-line heading-line-module">Or perhaps modules?</h2>
164
+ <div class="row mt-4">
165
+ <div class="{{ card_col_class }}">
166
+ {% include card.html title='Episerver'
167
+ text='See how you can integrate the Episerver module'
168
+ icon_content='img/modules/logo-episerver.svg'
169
+ icon_svg=true
170
+ type='module'
171
+ to=''
172
+ %}
173
+ </div>
174
+ <div class="{{ card_col_class }}">
175
+ {% include card.html title='Magento 2'
176
+ text='See how you can integrate the Magento 2 module'
177
+ icon_content='img/modules/logo-magento2.svg'
178
+ icon_svg=true
179
+ type='module'
180
+ to=''
181
+ %}
182
+ </div>
183
+ <div class="{{ card_col_class }}">
184
+ {% include card.html title='WooCommerce'
185
+ text='See how you can integrate the WooCommerce module'
186
+ icon_content='img/modules/logo-woocommerce.svg'
187
+ icon_svg=true
188
+ type='module'
189
+ to=''
190
+ %}
191
+ </div>
192
+ </div>
193
+ </div>
194
+
195
+ <div class="front-page-release-notes">
196
+ <h2 id="front-page-release-notes" class="heading-line heading-line-green">What's new in the documentation</h2>
197
+ {% include release_notes.html num_dates=num_dates %}
198
+ <a href="/resources/release-notes">See full release notes</a>
199
+ </div>
200
+
201
+ <div class="front-page-cards-extra">
202
+ <h2 id="front-page-extra-resources" class="heading-line">Extra resources</h2>
203
+ <div class="row mt-4">
204
+ <div class="{{ card_col_class }}">
205
+ {% include card.html title='OS development guidelines'
206
+ text='This is how we create an inclusive environment'
207
+ icon_content='account_circle'
208
+ icon_outlined=true
209
+ to=''
210
+ %}
211
+ </div>
212
+ <div class="{{ card_col_class }}">
213
+ {% include card.html title='Test data'
214
+ text='Get the required data for testing in our interfaces'
215
+ icon_content='content_paste'
216
+ to=''
217
+ %}
218
+ </div>
219
+ <div class="{{ card_col_class }}">
220
+ {% include card.html title='Terminology'
221
+ text='Get a better understanding of the terms we use'
222
+ icon_content='menu_book'
223
+ to=''
224
+ %}
225
+ </div>
226
+ <div class="{{ card_col_class }}">
227
+ {% include card.html title='See all resources (7)'
228
+ text='Data protection, public migration key etc'
229
+ no_icon=true
230
+ to=''
231
+ %}
232
+ </div>
233
+ </div>
234
+ </div>
235
+
236
+ <div class="front-page-contact">
237
+ <div class="front-page-contact-content">
238
+ <div class="row">
239
+ <div class="col-xl-7">
240
+ <h2 id="front-page-contact" class="heading-line heading-line-long">Can't find what you are looking for?</h2>
241
+ <p>
242
+ We are always trying to make the developer portal as
243
+ good as it can be please don’t hesitate to contact us.
244
+ </p>
245
+ </div>
246
+ <div class="col-xl-5 d-flex align-items-center justify-content-center">
247
+ <button class="btn">Contact us here</button>
248
+ </div>
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+ </div>
254
+ </div>
255
+