swedbank-pay-design-guide-jekyll-theme 2.4.1 → 2.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 460f32897594d35506f24e3aed0eb34028982b3ca384d4353ce29ea43742b8fe
4
- data.tar.gz: 49bd8515c22ade73b3a3c06e67a5e2bc1bd0209b78e5fd157d10042c11385150
3
+ metadata.gz: daec6e16bfca9b810fbd8c87388d41a35c8f03a4c6d07a5f04ead988799446f8
4
+ data.tar.gz: 00036ea6565dedcea30f47b678683008def0d2cb0bfd6419871fa07c761edccf
5
5
  SHA512:
6
- metadata.gz: 0af16984cba923880cd3996691af11d37975fa2fc85ac5494e7fa6c8bd229706d87b86eac1b3fe99ba4d9ac28264ab7699a4ae8d8a2027f357f7866c1cf8837f
7
- data.tar.gz: 4fcc8434970d37db0973cc2b693ba5b180570a1a5b0cab2e1427aaf1ca8cd3307c8578b0591723877ed44379146a3b180bb97117d709ee6afa0f55c55ac76b19
6
+ metadata.gz: dcac90d5efb9ba85a26210bbb4ebf7fb5dc2a9d6c6451a8f8ae99dd22f1227a09427da0c06566acc575dff6bdb007da9a2cff5b9c51ecff36ba199892b68ab63
7
+ data.tar.gz: bb1ab6ad245a02d00f134da18a37fa025d3c10ddf77af8ae0de70933549fd5bb71203838f0518916e4833caaaa833395bde75492e0a830b7a5fcccf08f63f6c7
@@ -1,9 +1,17 @@
1
1
  {%- comment -%}
2
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
3
+ card_list(required): An array with items having the attributes
4
+ title(required): Title of the card
5
+ image_src: Image source for the card
6
+ image_alt_text: Alt text for the image
7
+ icon_content: Used to generate content of dx-card-icon
8
+ description: Text content of the card
9
+ cta_text: Text for the call to action.
10
+ use_wide: Used when dx-card-horizontal is needed
11
+ open_in_new_tab: Used to open the link in a new tab
12
+ url(required): Url to the page to be directed to on click
13
+ type: sdk | module - Empty type result in default card styling
14
+ Works with site.pages.
7
15
  col_class(required): Describes what grid column class(es) each card should be wrapped in
8
16
  {%- endcomment -%}
9
17
 
@@ -22,10 +30,10 @@ col_class(required): Describes what grid column class(es) each card should be wr
22
30
  <div class="{{ col_class }}">
23
31
  {% include card.html
24
32
  title=title
25
- text=card.description
33
+ description=card.description
26
34
  cta_text=card.cta_text
27
35
  icon_content=icon_content
28
- to=link_to
36
+ url=link_to
29
37
  type=card_type
30
38
  use_wide=use_wide
31
39
  %}
@@ -54,10 +54,10 @@ type: sdk | module - Empty type result in default card styling
54
54
  {% include card.html
55
55
  cta_text=include.cta_text
56
56
  title=include.title
57
- text=card_content
57
+ description=card_content
58
58
  use_wide=true
59
59
  icon_content=include.icon_content
60
- to=include.to
60
+ url=include.to
61
61
  type=include.type
62
62
  %}
63
63
  </div>
data/_includes/card.html CHANGED
@@ -4,11 +4,11 @@ title(required): Title of the card
4
4
  image_src: Image source for the card
5
5
  image_alt_text: Alt text for the image
6
6
  icon_content: Used to generate content of dx-card-icon
7
- text: Text content of the card
7
+ description: Text content of the card
8
8
  cta_text: Text for the call to action.
9
9
  use_wide: Used when dx-card-horizontal is needed
10
10
  open_in_new_tab: Used to open the link in a new tab
11
- to(required): Url to the page to be directed to on click
11
+ url(required): Url to the page to be directed to on click
12
12
  type: sdk | module - Empty type result in default card styling
13
13
  {%- endcomment -%}
14
14
 
@@ -16,11 +16,11 @@ type: sdk | module - Empty type result in default card styling
16
16
  {% assign image_alt_text = include.image_alt_text %}
17
17
  {% assign image_ratio = 'ratio-16-9'%}
18
18
  {% assign icon_content = include.icon_content %}
19
- {% assign text = include.text %}
19
+ {% assign description = include.description %}
20
20
  {% assign cta_text = include.cta_text %}
21
21
  {% assign use_wide = include.use_wide | default: false %}
22
22
  {% assign open_in_new_tab = include.open_in_new_tab | default: false %}
23
- {% assign to = include.to %}
23
+ {% assign url = include.url %}
24
24
 
25
25
  {% if include.type %}
26
26
  {% assign type = include.type %}
@@ -42,7 +42,7 @@ type: sdk | module - Empty type result in default card styling
42
42
  {% assign target = '_blank' %}
43
43
  {% endif %}
44
44
 
45
- {% capture card_attributes %}href="{{ to }}"{% endcapture %}
45
+ {% capture card_attributes %}href="{{ url }}"{% endcapture %}
46
46
 
47
47
  <a {{ card_attributes }} class="{{ card_class }}" target="{{target}}" >
48
48
  {% if image_src %}
@@ -55,7 +55,7 @@ type: sdk | module - Empty type result in default card styling
55
55
 
56
56
  <span class="h4">{{ include.title }}</span>
57
57
  <div class="cards-content">
58
- {{ text | markdownify }}
58
+ {{ description | markdownify }}
59
59
  </div>
60
60
  <div class="cards-cta">
61
61
  {% if cta_text %}
@@ -1,6 +1,6 @@
1
1
  {% capture max_width_class %}
2
2
  {% if page.layout == 'front-page' %}
3
- no-padding
3
+ normal-padding
4
4
  {% elsif page.card_overview %}
5
5
  normal-padding max-width-card-overview
6
6
  {% elsif page.release_notes %}
@@ -9,7 +9,6 @@ layout: default
9
9
  {% assign front_page_ingress = page.front_page.ingress | default: "The complete toolbox for integrating our easy and safe omnichannel payment solutions" %}
10
10
 
11
11
  <div class="front-page">
12
- {% include github.html %}
13
12
  <div class="front-page-top">
14
13
  <div class="front-page-hero">
15
14
  <h3>{{ front_page_hero1 }}
@@ -63,6 +62,10 @@ layout: default
63
62
  <div class="front-page-container">
64
63
  {% contentblock intro_cards%}
65
64
 
65
+ <div class="front-page-playground">
66
+ {% contentblock playground %}
67
+ </div>
68
+
66
69
  <div class="front-page-cards-sdk">
67
70
  {% contentblock sdks %}
68
71
  </div>
@@ -71,12 +71,20 @@ $front-page-max-width: $breakpoint-lg;
71
71
  z-index: 0;
72
72
  border-radius: 1rem;
73
73
 
74
+ @media screen and (max-width: $breakpoint-md) {
75
+ margin: 0;
76
+ }
77
+
74
78
  .front-page-hero {
75
79
  position: relative;
76
80
  margin-bottom: 1.5rem;
77
81
  z-index: 1;
78
82
  padding: 1.5rem;
79
83
 
84
+ @media screen and (max-width: $breakpoint-md) {
85
+ padding: 0;
86
+ }
87
+
80
88
  h3 {
81
89
  color: $brown;
82
90
  font-family: $font_headline;
@@ -84,7 +92,12 @@ $front-page-max-width: $breakpoint-lg;
84
92
  font-size: 2.5rem;
85
93
  line-height: 3.5rem;
86
94
 
87
-
95
+ @media screen and (max-width: $breakpoint-md) {
96
+ font-size: 1.25rem;
97
+ line-height: 2.25rem;
98
+ margin-bottom: 1rem;
99
+ }
100
+
88
101
  }
89
102
 
90
103
  p {
@@ -101,6 +114,10 @@ $front-page-max-width: $breakpoint-lg;
101
114
  font-family: $font_headline;
102
115
  margin-bottom: 2rem;
103
116
  font-size: 3.5rem;
117
+
118
+ @media screen and (max-width: $breakpoint-md) {
119
+ font-size: 2.25rem;
120
+ }
104
121
  }
105
122
 
106
123
  .front-page-hero-lean {
@@ -108,21 +125,17 @@ $front-page-max-width: $breakpoint-lg;
108
125
  white-space: nowrap;
109
126
 
110
127
  &::before {
111
- content: ' { ';
128
+ content: ' {';
112
129
  font-family: $font_mono;
113
130
  font-weight: bold;
114
- font-size: 2.5rem;
115
131
  color: $yellow;
116
- margin-bottom: 1rem;
117
132
  }
118
133
 
119
134
  &::after {
120
- content: ' } ';
135
+ content: '} ';
121
136
  font-family: $font_mono;
122
137
  font-weight: bold;
123
- font-size: 2.5rem;
124
138
  color: $yellow;
125
- margin-bottom: 1rem;
126
139
  }
127
140
  }
128
141
 
@@ -482,6 +482,14 @@ body {
482
482
  }
483
483
  }
484
484
 
485
+ .playground-cta {
486
+ margin-top: 2.5rem;
487
+
488
+ @media screen and (max-width: $breakpoint-lg) {
489
+ margin-top: 0;
490
+ }
491
+ }
492
+
485
493
  .video-container {
486
494
  width: 100%;
487
495
  max-width: 330px;
data/lib/gem_version.rb CHANGED
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.4.1'
7
+ '2.4.2'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swedbank-pay-design-guide-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-05 00:00:00.000000000 Z
11
+ date: 2025-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday