hr-design-system-handlebars 0.47.0 → 0.47.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.47.1 (Tue May 24 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - add poster-teaser [#235](https://github.com/mumprod/hr-design-system-handlebars/pull/235) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
1
13
  # v0.47.0 (Fri May 20 2022)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1569,6 +1569,9 @@ Ensure the default browser behavior of the `hidden` attribute.
1569
1569
  .-mt-10 {
1570
1570
  margin-top: -2.5rem;
1571
1571
  }
1572
+ .mb-7 {
1573
+ margin-bottom: 1.75rem;
1574
+ }
1572
1575
  .mr-4 {
1573
1576
  margin-right: 1rem;
1574
1577
  }
@@ -1902,6 +1905,14 @@ Ensure the default browser behavior of the `hidden` attribute.
1902
1905
  --tw-divide-opacity: 1;
1903
1906
  border-color: rgba(229, 231, 235, var(--tw-divide-opacity));
1904
1907
  }
1908
+ .self-end {
1909
+ -ms-flex-item-align: end;
1910
+ align-self: flex-end;
1911
+ }
1912
+ .self-center {
1913
+ -ms-flex-item-align: center;
1914
+ align-self: center;
1915
+ }
1905
1916
  .overflow-hidden {
1906
1917
  overflow: hidden;
1907
1918
  }
@@ -1972,6 +1983,10 @@ Ensure the default browser behavior of the `hidden` attribute.
1972
1983
  .border-r {
1973
1984
  border-right-width: 1px;
1974
1985
  }
1986
+ .border-white {
1987
+ --tw-border-opacity: 1;
1988
+ border-color: rgba(255, 255, 255, var(--tw-border-opacity));
1989
+ }
1975
1990
  .border-gray-200 {
1976
1991
  --tw-border-opacity: 1;
1977
1992
  border-color: rgba(229, 231, 235, var(--tw-border-opacity));
@@ -1980,10 +1995,6 @@ Ensure the default browser behavior of the `hidden` attribute.
1980
1995
  --tw-border-opacity: 1;
1981
1996
  border-color: rgba(0, 82, 147, var(--tw-border-opacity));
1982
1997
  }
1983
- .border-white {
1984
- --tw-border-opacity: 1;
1985
- border-color: rgba(255, 255, 255, var(--tw-border-opacity));
1986
- }
1987
1998
  .bg-red-200 {
1988
1999
  --tw-bg-opacity: 1;
1989
2000
  background-color: rgba(254, 202, 202, var(--tw-bg-opacity));
@@ -2075,10 +2086,18 @@ Ensure the default browser behavior of the `hidden` attribute.
2075
2086
  background-image: -webkit-gradient(linear, left top, right top, from(var(--tw-gradient-stops)));
2076
2087
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
2077
2088
  }
2089
+ .bg-gradient-to-t {
2090
+ background-image: -webkit-gradient(linear, left bottom, left top, from(var(--tw-gradient-stops)));
2091
+ background-image: linear-gradient(to top, var(--tw-gradient-stops));
2092
+ }
2078
2093
  .from-purple-50 {
2079
2094
  --tw-gradient-from: #faf5ff;
2080
2095
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
2081
2096
  }
2097
+ .from-black {
2098
+ --tw-gradient-from: #000000;
2099
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
2100
+ }
2082
2101
  .to-purple-100 {
2083
2102
  --tw-gradient-to: #f3e8ff;
2084
2103
  }
@@ -2132,6 +2151,10 @@ Ensure the default browser behavior of the `hidden` attribute.
2132
2151
  padding-top: 0.75rem;
2133
2152
  padding-bottom: 0.75rem;
2134
2153
  }
2154
+ .px-2 {
2155
+ padding-left: 0.5rem;
2156
+ padding-right: 0.5rem;
2157
+ }
2135
2158
  .px-3\.5 {
2136
2159
  padding-left: 0.875rem;
2137
2160
  padding-right: 0.875rem;
@@ -2144,10 +2167,6 @@ Ensure the default browser behavior of the `hidden` attribute.
2144
2167
  padding-top: 0.5rem;
2145
2168
  padding-bottom: 0.5rem;
2146
2169
  }
2147
- .px-2 {
2148
- padding-left: 0.5rem;
2149
- padding-right: 0.5rem;
2150
- }
2151
2170
  .py-1\.5 {
2152
2171
  padding-top: 0.375rem;
2153
2172
  padding-bottom: 0.375rem;
@@ -2206,6 +2225,9 @@ Ensure the default browser behavior of the `hidden` attribute.
2206
2225
  .text-left {
2207
2226
  text-align: left;
2208
2227
  }
2228
+ .text-center {
2229
+ text-align: center;
2230
+ }
2209
2231
  .align-top {
2210
2232
  vertical-align: top;
2211
2233
  }
@@ -1,6 +1,6 @@
1
1
  {{#with this.commentLink}}
2
2
  <span class="whitespace-nowrap">
3
- {{#>components/base/link _cssClasses="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
3
+ {{#>components/base/link css="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
6
  <span class="text-toplineColor">{{../../this.commentNumber}}</span>
@@ -1,5 +1,5 @@
1
1
  <span
2
- class="leading-5.5 pt-px block text-base text-toplineColor font-heading"
2
+ class="leading-5.5 pt-px block text-base {{inline-switch isPosterTeaser '[true]' '["text-white","text-toplineColor"]'}} font-heading"
3
3
  aria-label="{{readMore}}: {{text}}"
4
4
  >
5
5
  {{text}}
@@ -0,0 +1,13 @@
1
+ <article class="relative col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["33","50"]' '["md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
+ <figure class="ar-1-1">
3
+ {{~> components/base/image/responsive_image this.teaserImage type="poster" variant=this.content.imageVariant noDelay=../_noDelay addClassImg="ar__content rounded-tl-3xl rounded-br-3xl" ~}}
4
+ </figure>
5
+ <div class="absolute flex justify-center w-full h-full ar-1-1 bg-gradient-to-t from-black rounded-br-3xl">
6
+ <div class="self-center block mx-4 text-center text-white">
7
+ {{> components/teaser/components/teaser_heading headlineTag="h2" isPosterTeaser=true size=teasersize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
8
+ </div>
9
+ </div>
10
+ {{#>components/base/link css="absolute flex w-full h-full justify-center" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teasersize clickLabelPrefix2="mediaLink" }}
11
+ <button class="self-end px-2 text-white border border-white mb-7">{{this.link.readMoreText.readMoreLong}}</button>
12
+ {{/components/base/link}}
13
+ </article>
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "0.47.0",
9
+ "version": "0.47.1",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -207,5 +207,34 @@
207
207
  }
208
208
  ]
209
209
  }
210
- }
210
+ },
211
+ "poster_1":{
212
+ "copyrightWithLinks": "",
213
+ "responsiveImage": {
214
+ "asPicture": false,
215
+ "asImage": true,
216
+ "fallback": "https://picsum.photos/id/189/480/480",
217
+ "sources": [
218
+ {
219
+ "sizes": "(min-width: 1010px) 960px, 100vw",
220
+ "srcset": "https://picsum.photos/id/189/320/320 320w, https://picsum.photos/id/189/480/480 480w, https://picsum.photos/id/189/640/640 640w, https://picsum.photos/id/189/960/960 960w, https://picsum.photos/id/189/1920/1080 1920w"
221
+ }
222
+ ]
223
+ }
224
+ },
225
+ "poster_2":{
226
+ "copyrightWithLinks": "",
227
+ "responsiveImage": {
228
+ "asPicture": false,
229
+ "asImage": true,
230
+ "fallback": "https://picsum.photos/id/164/480/480",
231
+ "sources": [
232
+ {
233
+ "sizes": "(min-width: 1010px) 960px, 100vw",
234
+ "srcset": "https://picsum.photos/id/164/320/320 320w, https://picsum.photos/id/164/480/480 480w, https://picsum.photos/id/164/640/640 640w, https://picsum.photos/id/164/960/960 960w, https://picsum.photos/id/164/1920/1080 1920w"
235
+ }
236
+ ]
237
+ }
238
+ }
239
+
211
240
  }
@@ -0,0 +1,29 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teasersize",
7
+ "@->value": "50"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.link.readMoreText.readMoreLong",
11
+ "@->value": "Zum Artikel"
12
+ },
13
+ {
14
+ "@->contentpath": "logicItem.includeModel.link.content.teaserImage",
15
+ "@->value": {
16
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
17
+ "@->contentpath": "poster_1"
18
+ }
19
+ },
20
+ {
21
+ "@->contentpath": "logicItem.includeModel.teaserImage",
22
+ "@->value": {
23
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
24
+ "@->contentpath": "poster_1"
25
+ }
26
+ }
27
+
28
+ ]
29
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teasersize",
7
+ "@->value": "33"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.link.readMoreText.readMoreLong",
11
+ "@->value": "Zum Artikel"
12
+ },
13
+ {
14
+ "@->contentpath": "logicItem.includeModel.link.content.teaserImage",
15
+ "@->value": {
16
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
17
+ "@->contentpath": "poster_1"
18
+ }
19
+ },
20
+ {
21
+ "@->contentpath": "logicItem.includeModel.teaserImage",
22
+ "@->value": {
23
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
24
+ "@->contentpath": "poster_1"
25
+ }
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "@->jsoninclude": "teaser/teasers.inc.json",
3
+ "@->contentpath": "teaser",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "logicItem.includeModel.teasersize",
7
+ "@->value": "33"
8
+ },
9
+ {
10
+ "@->contentpath": "logicItem.includeModel.title",
11
+ "@->value": "Liveticker ausm Urlaub"
12
+ },
13
+ {
14
+ "@->contentpath": "logicItem.includeModel.link.readMoreText.readMoreLong",
15
+ "@->value": "Zum Ticker"
16
+ },
17
+ {
18
+ "@->contentpath": "logicItem.includeModel.link.content.teaserImage",
19
+ "@->value": {
20
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
21
+ "@->contentpath": "poster_2"
22
+ }
23
+ },
24
+ {
25
+ "@->contentpath": "logicItem.includeModel.teaserImage",
26
+ "@->value": {
27
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
28
+ "@->contentpath": "poster_2"
29
+ }
30
+ },
31
+ {
32
+ "@->contentpath": "logicItem.includeModel.topline",
33
+ "@->value": ""
34
+ },
35
+ {
36
+ "@->contentpath": "logicItem.includeModel.link.content.topline",
37
+ "@->value": ""
38
+ },
39
+ {
40
+ "@->contentpath": "logicItem.includeModel.label",
41
+ "@->value": {
42
+ "@->jsoninclude": "teaser/teaser_labels.inc.json",
43
+ "@->contentpath": "ticker",
44
+ "@->overrides": [
45
+ {
46
+ "@->contentpath": "byline.bylineSsi",
47
+ "@->value": ""
48
+ },
49
+ {
50
+ "@->contentpath": "byline.bylineText",
51
+ "@->value": ""
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ {
57
+ "@->contentpath": "logicItem.includeModel.link.content.label",
58
+ "@->value": {
59
+ "@->jsoninclude": "teaser/teaser_labels.inc.json",
60
+ "@->contentpath": "ticker",
61
+ "@->overrides": [
62
+ {
63
+ "@->contentpath": "byline.bylineSsi",
64
+ "@->value": ""
65
+ },
66
+ {
67
+ "@->contentpath": "byline.bylineText",
68
+ "@->value": ""
69
+ }
70
+ ]
71
+ }
72
+ }
73
+ ]
74
+ }
@@ -1,6 +1,6 @@
1
1
  {{#with this.commentLink}}
2
2
  <span class="whitespace-nowrap">
3
- {{#>components/base/link _cssClasses="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
3
+ {{#>components/base/link css="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="comment" }}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
6
  <span class="text-toplineColor">{{../../this.commentNumber}}</span>
@@ -1,5 +1,5 @@
1
1
  <span
2
- class="leading-5.5 pt-px block text-base text-toplineColor font-heading"
2
+ class="leading-5.5 pt-px block text-base {{inline-switch isPosterTeaser '[true]' '["text-white","text-toplineColor"]'}} font-heading"
3
3
  aria-label="{{readMore}}: {{text}}"
4
4
  >
5
5
  {{text}}
@@ -0,0 +1 @@
1
+ {"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"hero","teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":true,"showTeaserInfoAll":true,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":true},"teaserImage":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/189/480/480","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/189/320/320 320w, https://picsum.photos/id/189/480/480 480w, https://picsum.photos/id/189/640/640 640w, https://picsum.photos/id/189/960/960 960w, https://picsum.photos/id/189/1920/1080 1920w"}]}},"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isVideo":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":false,"obsolet_brandOfTeaser":"hessenschau","documentSection":"Gesellschaft","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"Von Alf Haubitz und Alice Merton","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Wolfhagen"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"Zum Artikel"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/189/480/480","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/189/320/320 320w, https://picsum.photos/id/189/480/480 480w, https://picsum.photos/id/189/640/640 640w, https://picsum.photos/id/189/960/960 960w, https://picsum.photos/id/189/1920/1080 1920w"}]}},"teaserSize":"hero","teaserType":"standard","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"teasersize":"50"}}}
@@ -0,0 +1 @@
1
+ {"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"hero","teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":true,"showTeaserInfoAll":true,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":true},"teaserImage":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/189/480/480","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/189/320/320 320w, https://picsum.photos/id/189/480/480 480w, https://picsum.photos/id/189/640/640 640w, https://picsum.photos/id/189/960/960 960w, https://picsum.photos/id/189/1920/1080 1920w"}]}},"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isVideo":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":false,"obsolet_brandOfTeaser":"hessenschau","documentSection":"Gesellschaft","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"Von Alf Haubitz und Alice Merton","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Wolfhagen"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"Zum Artikel"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/189/480/480","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/189/320/320 320w, https://picsum.photos/id/189/480/480 480w, https://picsum.photos/id/189/640/640 640w, https://picsum.photos/id/189/960/960 960w, https://picsum.photos/id/189/1920/1080 1920w"}]}},"teaserSize":"hero","teaserType":"standard","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"teasersize":"33"}}}
@@ -0,0 +1 @@
1
+ {"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Liveticker ausm Urlaub","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"hero","teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":true,"showTeaserInfoAll":true,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":true},"teaserImage":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/164/480/480","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/164/320/320 320w, https://picsum.photos/id/164/480/480 480w, https://picsum.photos/id/164/640/640 640w, https://picsum.photos/id/164/960/960 960w, https://picsum.photos/id/164/1920/1080 1920w"}]}},"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isVideo":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"allowAVConsumption":false,"displayEpgInfos":false,"aspectRatio":"ar--teaserTop","hideGeotag":false,"hideEditableByline":true,"doTracking":true,"trackingForArdMediatheksLink":false,"showMediatheksLink":false,"showAirdate":false,"showProfileInfoAsByline":false,"obsolet_brandOfTeaser":"hessenschau","documentSection":"Gesellschaft","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"Vor einem Jahr wurde die syrische Familie Kheder aus Wolfhagen abgeschoben. Die Gemeinde setzte alle Hebel in Bewegung, um Mutter, Tochter und Sohn zurückzuholen. Im Fall der Kinder hat das nun zu einem Happy End geführt. Doch ihre Mutter fehlt.","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"Von Alf Haubitz und Alice Merton","teaserLead":{"avDocument":"","image":""},"geotag":[{"title":"Wolfhagen"}],"link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"Zum Ticker"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/164/480/480","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/164/320/320 320w, https://picsum.photos/id/164/480/480 480w, https://picsum.photos/id/164/640/640 640w, https://picsum.photos/id/164/960/960 960w, https://picsum.photos/id/164/1920/1080 1920w"}]}},"teaserSize":"hero","teaserType":"standard","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"","trackingData":{"secondLevelId":"2","pageName":"hessenschau"},"label":{"type":"Ticker","loca":"ticker","byline":{"bylineSsi":"","bylineText":""}}}},"teasersize":"33","label":{"type":"Ticker","loca":"ticker","byline":{"bylineSsi":"","bylineText":""}}}}}
@@ -0,0 +1,13 @@
1
+ <article class="relative col-span-12 flex gap-y-5 gap-x-4 {{inline-switch teasersize '["33","50"]' '["md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
2
+ <figure class="ar-1-1">
3
+ {{~> components/base/image/responsive_image this.teaserImage type="poster" variant=this.content.imageVariant noDelay=../_noDelay addClassImg="ar__content rounded-tl-3xl rounded-br-3xl" ~}}
4
+ </figure>
5
+ <div class="absolute flex justify-center w-full h-full ar-1-1 bg-gradient-to-t from-black rounded-br-3xl">
6
+ <div class="self-center block mx-4 text-center text-white">
7
+ {{> components/teaser/components/teaser_heading headlineTag="h2" isPosterTeaser=true size=teasersize font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
8
+ </div>
9
+ </div>
10
+ {{#>components/base/link css="absolute flex w-full h-full justify-center" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teasersize clickLabelPrefix2="mediaLink" }}
11
+ <button class="self-end px-2 text-white border border-white mb-7">{{this.link.readMoreText.readMoreLong}}</button>
12
+ {{/components/base/link}}
13
+ </article>
@@ -0,0 +1,53 @@
1
+ import { ArgsTable, Meta, Story, Canvas, Preview } from '@storybook/addon-docs'
2
+ import teaser from './teaser_poster.hbs'
3
+ import teserPosterLg from './fixtures/teaser_poster_lg.json'
4
+ import teserPosterMd from './fixtures/teaser_poster_md.json'
5
+ import teserPosterMdLabel from './fixtures/teaser_poster_md_label.json'
6
+
7
+ <Meta
8
+ title="Komponenten/Teaser/Poster"
9
+ parameters={{
10
+ layout: 'fullscreen',
11
+ }}
12
+ argTypes={{
13
+ teasersize: {
14
+ control: {
15
+ type: 'select',
16
+ options: ['50', '33'],
17
+ },
18
+ description: 'Teaser Größe',
19
+ table: {
20
+ defaultValue: {
21
+ summary: '50',
22
+ },
23
+ },
24
+ },
25
+ }}
26
+ decorators={[
27
+ (Story) => {
28
+ return `<div class="grid grid-page"><div class="grid grid-cols-12 py-6 col-full gap-x-6 gap-y-6 sm:px-8 sm:col-main">
29
+ ${Story()}
30
+ </div></div>`
31
+ },
32
+ ]}
33
+ />
34
+
35
+ export const Template = (args, { globals: { customConditionalToolbar } }) => {
36
+ // You can either use a function to create DOM elements or use a plain html string!
37
+ // return `<div>${label}</div>`;
38
+ let brand =
39
+ undefined !== customConditionalToolbar ? customConditionalToolbar['brands'] : 'hessenschau'
40
+ return teaser({ brand, ...args })
41
+ }
42
+
43
+ <Preview withToolbar>
44
+ <Story name="Poster 50" args={teserPosterLg.logicItem.includeModel}>
45
+ {Template.bind({})}
46
+ </Story>
47
+ <Story name="Poster 33" args={teserPosterMd.logicItem.includeModel}>
48
+ {Template.bind({})}
49
+ </Story>
50
+ <Story name="Poster 33 mit Label" args={teserPosterMdLabel.logicItem.includeModel}>
51
+ {Template.bind({})}
52
+ </Story>
53
+ </Preview>