hr-design-system-handlebars 0.47.0 → 0.47.3
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 +36 -0
- package/build/helpers/loca.js +3 -1
- package/dist/assets/index.css +30 -8
- package/dist/views/components/base/image/responsive_image.hbs +5 -5
- package/dist/views/components/teaser/components/teaser_comments.hbs +1 -1
- package/dist/views/components/teaser/components/teaser_heading.hbs +1 -1
- package/dist/views/components/teaser/components/teaser_topline.hbs +1 -1
- package/dist/views/components/teaser/teaser_alternativ.hbs +1 -1
- package/dist/views/components/teaser/teaser_poster.hbs +13 -0
- package/dist/views/components/teaser/teaser_standard.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/fixtures/teaser/teaser_images.inc.json +30 -1
- package/src/assets/fixtures/teaser/teaser_labels.inc.json +4 -4
- package/src/assets/fixtures/teaser/teaser_poster_lg.json +29 -0
- package/src/assets/fixtures/teaser/teaser_poster_md.json +28 -0
- package/src/assets/fixtures/teaser/teaser_poster_md_label.json +74 -0
- package/src/stories/views/components/base/image/responsive_image.hbs +5 -5
- package/src/stories/views/components/teaser/components/teaser_comments.hbs +1 -1
- package/src/stories/views/components/teaser/components/teaser_heading.hbs +1 -1
- package/src/stories/views/components/teaser/components/teaser_topline.hbs +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +1 -1
- package/src/stories/views/components/teaser/teaser_alternativ.hbs +1 -1
- package/src/stories/views/components/teaser/teaser_poster.hbs +13 -0
- package/src/stories/views/components/teaser/teaser_poster.stories.mdx +53 -0
- package/src/stories/views/components/teaser/teaser_standard.hbs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.47.3 (Mon May 30 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- - fixed label call in teaser_heading.hbs [#237](https://github.com/mumprod/hr-design-system-handlebars/pull/237) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.47.2 (Mon May 30 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- - removed css classes from responsive_image.hbs [#236](https://github.com/mumprod/hr-design-system-handlebars/pull/236) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.47.1 (Tue May 24 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- add poster-teaser [#235](https://github.com/mumprod/hr-design-system-handlebars/pull/235) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.47.0 (Fri May 20 2022)
|
|
2
38
|
|
|
3
39
|
#### 🚀 Enhancement
|
package/build/helpers/loca.js
CHANGED
|
@@ -15,7 +15,9 @@ module.exports = function(text, options) {
|
|
|
15
15
|
"comment_label_text": "Kommentar",
|
|
16
16
|
"comment_label_text_many": "Kommentare",
|
|
17
17
|
"comment_anchor_2": " Kommentaren des Artikels springen",
|
|
18
|
-
"date_simple_at": options + " Uhr"
|
|
18
|
+
"date_simple_at": options + " Uhr",
|
|
19
|
+
"label_ticker":"Ticker",
|
|
20
|
+
"label_media":"Media",
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
for (let key in locas){
|
package/dist/assets/index.css
CHANGED
|
@@ -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
|
}
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
--}}
|
|
13
13
|
{{#withParam this.responsiveImage type variant }}
|
|
14
14
|
{{#if this.asPicture}}
|
|
15
|
-
<picture class="
|
|
15
|
+
<picture class="{{~#if ../addClass}} {{../addClass}}{{/if}}">
|
|
16
16
|
{{#unless _disableNoScript}}
|
|
17
17
|
<noscript>
|
|
18
|
-
<img class="
|
|
18
|
+
<img class="{{~#if ../addClassImg}} {{../addClassImg}}{{/if}}" src="{{this.fallback}}" alt="{{#if ../alttext}}{{../alttext}}{{else}}{{../this.alttext}}{{/if}}">
|
|
19
19
|
</noscript>
|
|
20
20
|
{{/unless}}
|
|
21
21
|
{{#with this.sources}}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{{#with this.srcset}} srcset="{{this}}"{{/with}}>
|
|
26
26
|
{{/each}}
|
|
27
27
|
{{/with}}
|
|
28
|
-
<img class="
|
|
28
|
+
<img class="{{~#if ../addClassImg}} {{../addClassImg}}{{/if}}" loading="{{#if ../noDelay}}auto{{else}}lazy{{/if}}" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt="{{#if ../alttext}}{{../alttext}}{{else}}{{../this.alttext}}{{/if}}" {{~#if ../errorHandler }} onerror="this.onerror=null; {{../errorHandler}}"{{/if}}>
|
|
29
29
|
</picture>
|
|
30
30
|
{{/if}}
|
|
31
31
|
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
{{~#with ../../addClass }}<div class="{{this}}">{{/with}}
|
|
35
35
|
{{#unless ../../disableNoScript}}
|
|
36
36
|
<noscript>
|
|
37
|
-
<img class="
|
|
37
|
+
<img class="{{~#if ../../addClassImg}} {{../../addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}">
|
|
38
38
|
</noscript>
|
|
39
39
|
{{/unless}}
|
|
40
40
|
<img {{#with this.sizes}}sizes="{{this}}" {{/with~}}
|
|
41
41
|
loading="{{#if ../../noDelay}}auto{{else}}lazy{{/if}}"
|
|
42
42
|
{{#with this.srcset}} {{#if ../../../noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
|
|
43
43
|
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
|
|
44
|
-
alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}" class="
|
|
44
|
+
alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}" class="{{~#with ../../addClassImg }} {{this}}{{/with}}" {{~#if ../../errorHandler}} onerror="this.onerror=null; {{../../errorHandler}}" {{~/if}}>
|
|
45
45
|
{{~#with ../../addClass }}</div>{{/with}}
|
|
46
46
|
{{/with}}
|
|
47
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{#with this.commentLink}}
|
|
2
2
|
<span class="whitespace-nowrap">
|
|
3
|
-
{{#>components/base/link
|
|
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,7 +1,7 @@
|
|
|
1
1
|
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
|
|
2
2
|
<figure class="{{inline-switch this.teaserSize '["25", "hero"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
|
|
3
3
|
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink" }}
|
|
4
|
-
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../_noDelay addClassImg="
|
|
4
|
+
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../_noDelay addClassImg="" ~}}
|
|
5
5
|
{{/components/base/link}}
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch this.teaserSize '["25", "hero"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
|
|
@@ -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>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
2
2
|
<figure class="{{inline-switch this.teaserSize '["25"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
|
|
3
3
|
{{#>components/base/link isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
|
|
4
|
-
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="
|
|
4
|
+
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="" ~}}
|
|
5
5
|
{{/components/base/link}}
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch this.teaserSize '["25"]' '["basis-3/5 md:flex-full"]'}} ">
|
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.
|
|
9
|
+
"version": "0.47.3",
|
|
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
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ticker": {
|
|
3
|
-
"type": "
|
|
4
|
-
"loca": "
|
|
3
|
+
"type": "ticker",
|
|
4
|
+
"loca": "label_ticker",
|
|
5
5
|
"byline": {
|
|
6
6
|
"bylineSsi": "BylineText aus ssi",
|
|
7
7
|
"bylineText": "BylineText"
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"media": {
|
|
11
|
-
"type": "
|
|
12
|
-
"loca": "
|
|
11
|
+
"type": "media",
|
|
12
|
+
"loca": "label_media",
|
|
13
13
|
"byline": {
|
|
14
14
|
"bylineSsi": "BylineText aus ssi",
|
|
15
15
|
"bylineText": "BylineText"
|
|
@@ -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
|
+
}
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
--}}
|
|
13
13
|
{{#withParam this.responsiveImage type variant }}
|
|
14
14
|
{{#if this.asPicture}}
|
|
15
|
-
<picture class="
|
|
15
|
+
<picture class="{{~#if ../addClass}} {{../addClass}}{{/if}}">
|
|
16
16
|
{{#unless _disableNoScript}}
|
|
17
17
|
<noscript>
|
|
18
|
-
<img class="
|
|
18
|
+
<img class="{{~#if ../addClassImg}} {{../addClassImg}}{{/if}}" src="{{this.fallback}}" alt="{{#if ../alttext}}{{../alttext}}{{else}}{{../this.alttext}}{{/if}}">
|
|
19
19
|
</noscript>
|
|
20
20
|
{{/unless}}
|
|
21
21
|
{{#with this.sources}}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{{#with this.srcset}} srcset="{{this}}"{{/with}}>
|
|
26
26
|
{{/each}}
|
|
27
27
|
{{/with}}
|
|
28
|
-
<img class="
|
|
28
|
+
<img class="{{~#if ../addClassImg}} {{../addClassImg}}{{/if}}" loading="{{#if ../noDelay}}auto{{else}}lazy{{/if}}" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt="{{#if ../alttext}}{{../alttext}}{{else}}{{../this.alttext}}{{/if}}" {{~#if ../errorHandler }} onerror="this.onerror=null; {{../errorHandler}}"{{/if}}>
|
|
29
29
|
</picture>
|
|
30
30
|
{{/if}}
|
|
31
31
|
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
{{~#with ../../addClass }}<div class="{{this}}">{{/with}}
|
|
35
35
|
{{#unless ../../disableNoScript}}
|
|
36
36
|
<noscript>
|
|
37
|
-
<img class="
|
|
37
|
+
<img class="{{~#if ../../addClassImg}} {{../../addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}">
|
|
38
38
|
</noscript>
|
|
39
39
|
{{/unless}}
|
|
40
40
|
<img {{#with this.sizes}}sizes="{{this}}" {{/with~}}
|
|
41
41
|
loading="{{#if ../../noDelay}}auto{{else}}lazy{{/if}}"
|
|
42
42
|
{{#with this.srcset}} {{#if ../../../noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
|
|
43
43
|
src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
|
|
44
|
-
alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}" class="
|
|
44
|
+
alt="{{#if ../../alttext}}{{../../alttext}}{{else}}{{../../this.alttext}}{{/if}}" class="{{~#with ../../addClassImg }} {{this}}{{/with}}" {{~#if ../../errorHandler}} onerror="this.onerror=null; {{../../errorHandler}}" {{~/if}}>
|
|
45
45
|
{{~#with ../../addClass }}</div>{{/with}}
|
|
46
46
|
{{/with}}
|
|
47
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{#with this.commentLink}}
|
|
2
2
|
<span class="whitespace-nowrap">
|
|
3
|
-
{{#>components/base/link
|
|
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>
|
package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"alternative","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":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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":"read More Long"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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"}}},"label":{"type":"
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"alternative","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":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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":"read More Long"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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"}}},"label":{"type":"ticker","loca":"label_ticker","byline":{"bylineSsi":"BylineText aus ssi","bylineText":"BylineText"}}}}}
|
|
@@ -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":"label_ticker","byline":{"bylineSsi":"","bylineText":""}}}},"teasersize":"33","label":{"type":"ticker","loca":"label_ticker","byline":{"bylineSsi":"","bylineText":""}}}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","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":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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":"read More Long"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/1920/1080 1920w"}]}},"teaserSize":"hero","teaserType":"standard","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"label":{"type":"
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","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":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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":"read More Long"},"content":{"headlineTag":"h1","headingFontVariant":"serif","imageVariant":"topteaser","isFileDownload":false,"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"sizes":"(min-width: 1010px) 960px, 100vw","srcset":"https://picsum.photos/id/188/320/180 320w, https://picsum.photos/id/188/480/270 480w, https://picsum.photos/id/188/640/360 640w, https://picsum.photos/id/188/960/540 960w, https://picsum.photos/id/188/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":"label_ticker","byline":{"bylineSsi":"BylineText aus ssi","bylineText":"BylineText"}}}}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 flex-row ","md:col-span-4 flex-row","md:col-span-6 flex-row","flex-row"]'}} ">
|
|
2
2
|
<figure class="{{inline-switch this.teaserSize '["25", "hero"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9","basis-3/5 ar-16-9", "ar-16-9"]'}} ">
|
|
3
3
|
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink" }}
|
|
4
|
-
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../_noDelay addClassImg="
|
|
4
|
+
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../_noDelay addClassImg="" ~}}
|
|
5
5
|
{{/components/base/link}}
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch this.teaserSize '["25", "hero"]' '["basis-3/5 md:flex-full" , "basis-2/5"]'}} ">
|
|
@@ -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>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<article class="col-span-12 flex gap-y-5 gap-x-4 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
2
2
|
<figure class="{{inline-switch this.teaserSize '["25"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
|
|
3
3
|
{{#>components/base/link isAriaHidden=true doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="mediaLink" }}
|
|
4
|
-
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="
|
|
4
|
+
{{~> components/base/image/responsive_image this.teaserImage type=this.teasertype variant=this.imageVariant noDelay=../noDelay addClassImg="" ~}}
|
|
5
5
|
{{/components/base/link}}
|
|
6
6
|
</figure>
|
|
7
7
|
<div class="{{inline-switch this.teaserSize '["25"]' '["basis-3/5 md:flex-full"]'}} ">
|