hr-design-system-handlebars 1.50.8 → 1.50.9
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 +12 -0
- package/dist/assets/brand/_default/conf/locatags.json +1 -0
- package/dist/assets/index.css +3 -3
- package/dist/views/components/teaser/components/teaser_body.hbs +4 -0
- package/dist/views/components/teaser/components/teaser_featured_content.hbs +16 -0
- package/dist/views_static/components/teaser/components/teaser_body.hbs +4 -0
- package/dist/views_static/components/teaser/components/teaser_featured_content.hbs +16 -0
- package/package.json +1 -1
- package/src/assets/brand/_default/conf/locatags.json +1 -0
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
- package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_featured_content.json +38 -0
- package/src/assets/fixtures/teaser/teaser_featured_content.inc.json +50 -0
- package/src/assets/fixtures/teaser/teaser_featured_content.json +3 -0
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_featured_content.json +17 -0
- package/src/stories/views/components/teaser/components/teaser_body.hbs +4 -0
- package/src/stories/views/components/teaser/components/teaser_featured_content.hbs +16 -0
- package/src/stories/views/components/teaser/components/teaser_featured_content.mdx +25 -0
- package/src/stories/views/components/teaser/components/teaser_featured_content.stories.js +16 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_featured_content.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_featured_content.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_featured_content.json +1 -0
- package/src/stories/views/components/teaser/teaser_alternativ.stories.js +7 -0
- package/src/stories/views/components/teaser/teaser_standard.stories.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.50.9 (Mon Nov 20 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- add featured-content-component [#757](https://github.com/mumprod/hr-design-system-handlebars/pull/757) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.50.8 (Fri Nov 17 2023)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
package/dist/assets/index.css
CHANGED
|
@@ -3055,7 +3055,7 @@ article.indexText ul {
|
|
|
3055
3055
|
border-bottom-color: var(--color-secondary-ds);
|
|
3056
3056
|
}
|
|
3057
3057
|
.counter-reset {
|
|
3058
|
-
counter-reset:
|
|
3058
|
+
counter-reset: cnt1700473359568;
|
|
3059
3059
|
}
|
|
3060
3060
|
.hyphens-auto {
|
|
3061
3061
|
-webkit-hyphens: auto;
|
|
@@ -3316,7 +3316,7 @@ article.indexText ul {
|
|
|
3316
3316
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3317
3317
|
}
|
|
3318
3318
|
.-ordered {
|
|
3319
|
-
counter-increment:
|
|
3319
|
+
counter-increment: cnt1700473359568 1;
|
|
3320
3320
|
}
|
|
3321
3321
|
.-ordered::before {
|
|
3322
3322
|
position: absolute;
|
|
@@ -3332,7 +3332,7 @@ article.indexText ul {
|
|
|
3332
3332
|
letter-spacing: .0125em;
|
|
3333
3333
|
--tw-text-opacity: 1;
|
|
3334
3334
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3335
|
-
content: counter(
|
|
3335
|
+
content: counter(cnt1700473359568);
|
|
3336
3336
|
}
|
|
3337
3337
|
/*! ****************************/
|
|
3338
3338
|
/*! DataPolicy stuff */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{{#if this.showFeaturedContent}}
|
|
2
|
+
{{#if this.featuredContentItems}}
|
|
3
|
+
<div class="relative ds-focus sm:px-0{{#unless this.isMobile1to1}} px-5{{/unless}} {{inline-switch _size '["25"]' '["hidden "]'~}}">
|
|
4
|
+
<span class="block mt-4 text-base font-heading">{{loca "featured_content_headline"}}</span>
|
|
5
|
+
<ul class="list-disc">
|
|
6
|
+
{{#each this.featuredContentItems}}
|
|
7
|
+
<li class="mt-3 ml-4">
|
|
8
|
+
{{#> components/base/link _link=this.link _css="hover:underline relative inline text-link text-sm ds-focus" }}
|
|
9
|
+
{{this.title}}
|
|
10
|
+
{{/components/base/link}}
|
|
11
|
+
</li>
|
|
12
|
+
{{/each}}
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{/if}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{{#if this.showFeaturedContent}}
|
|
2
|
+
{{#if this.featuredContentItems}}
|
|
3
|
+
<div class="relative ds-focus sm:px-0{{#unless this.isMobile1to1}} px-5{{/unless}} {{inline-switch _size '["25"]' '["hidden "]'~}}">
|
|
4
|
+
<span class="block mt-4 text-base font-heading">{{loca "featured_content_headline"}}</span>
|
|
5
|
+
<ul class="list-disc">
|
|
6
|
+
{{#each this.featuredContentItems}}
|
|
7
|
+
<li class="mt-3 ml-4">
|
|
8
|
+
{{#> components/base/link _link=this.link _css="hover:underline relative inline text-link text-sm ds-focus" }}
|
|
9
|
+
{{this.title}}
|
|
10
|
+
{{/components/base/link}}
|
|
11
|
+
</li>
|
|
12
|
+
{{/each}}
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{/if}}
|
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": "1.50.
|
|
9
|
+
"version": "1.50.9",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"event_status_moved_online_short": "Als Livestream!",
|
|
30
30
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
31
31
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
32
|
+
"featured_content_headline": "Mehr zum Thema:",
|
|
32
33
|
"gallery_image_copyright": "Bild © {0}",
|
|
33
34
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
34
35
|
"geotag_metadescription_prefix": "",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaser.logicItem.includeModel",
|
|
4
|
+
"@->extends": {
|
|
5
|
+
"@->jsoninclude": "teaser/teaser_featured_content.inc.json"
|
|
6
|
+
},
|
|
7
|
+
"@->overrides": [
|
|
8
|
+
{
|
|
9
|
+
"@->contentpath": "teaserSize",
|
|
10
|
+
"@->value": "100"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"@->contentpath": "realTeaserSize",
|
|
14
|
+
"@->value": "100"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"@->contentpath": "teaserType",
|
|
18
|
+
"@->value": "alternative"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"@->contentpath": "isMobile1to1",
|
|
22
|
+
"@->value": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"@->contentpath": "teaserImage",
|
|
26
|
+
"@->value": {
|
|
27
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
28
|
+
"@->contentpath": "teaser_alternative_100",
|
|
29
|
+
"@->replaceToken": [
|
|
30
|
+
{
|
|
31
|
+
"@->token": "image",
|
|
32
|
+
"@->value": "rueckkehr-nach-abschiebung-102"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"showFeaturedContent": true,
|
|
3
|
+
"featuredContentItems": [
|
|
4
|
+
{
|
|
5
|
+
"title": "Lindemann-Konzert in Kassel abgesagt",
|
|
6
|
+
"link": {
|
|
7
|
+
"url": "/teaser1",
|
|
8
|
+
"webviewUrl": "/teaser1#webview",
|
|
9
|
+
"isTargetBlank": false,
|
|
10
|
+
"hasIcon": false,
|
|
11
|
+
"iconName": "iconName",
|
|
12
|
+
"readMoreText": {
|
|
13
|
+
"readMoreScreenreader": "Zum Artikel",
|
|
14
|
+
"readMore": "mehr",
|
|
15
|
+
"readMoreLong": "read More Long"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"title": "Ex-Kraftwerk-Mitglied vertont Stummfilm-Klassiker | Video",
|
|
21
|
+
"link": {
|
|
22
|
+
"url": "/teaser2",
|
|
23
|
+
"webviewUrl": "/teaser2#webview",
|
|
24
|
+
"isTargetBlank": false,
|
|
25
|
+
"hasIcon": false,
|
|
26
|
+
"iconName": "iconName",
|
|
27
|
+
"readMoreText": {
|
|
28
|
+
"readMoreScreenreader": "Zum Videp",
|
|
29
|
+
"readMore": "mehr",
|
|
30
|
+
"readMoreLong": "read More Long"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "Lilien-Trainingslager wieder in El Saler | Audio",
|
|
36
|
+
"link": {
|
|
37
|
+
"url": "/teaser3",
|
|
38
|
+
"webviewUrl": "/teaser3#webview",
|
|
39
|
+
"isTargetBlank": false,
|
|
40
|
+
"hasIcon": false,
|
|
41
|
+
"iconName": "iconName",
|
|
42
|
+
"readMoreText": {
|
|
43
|
+
"readMoreScreenreader": "Zum Audio",
|
|
44
|
+
"readMore": "mehr",
|
|
45
|
+
"readMoreLong": "read More Long"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaser.logicItem.includeModel",
|
|
4
|
+
"@->extends": {
|
|
5
|
+
"@->jsoninclude": "teaser/teaser_featured_content.inc.json"
|
|
6
|
+
},
|
|
7
|
+
"@->overrides": [
|
|
8
|
+
{
|
|
9
|
+
"@->contentpath": "teaserSize",
|
|
10
|
+
"@->value": "50"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"@->contentpath": "realTeaserSize",
|
|
14
|
+
"@->value": "50"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{{#if this.showFeaturedContent}}
|
|
2
|
+
{{#if this.featuredContentItems}}
|
|
3
|
+
<div class="relative ds-focus sm:px-0{{#unless this.isMobile1to1}} px-5{{/unless}} {{inline-switch _size '["25"]' '["hidden "]'~}}">
|
|
4
|
+
<span class="block mt-4 text-base font-heading">{{loca "featured_content_headline"}}</span>
|
|
5
|
+
<ul class="list-disc">
|
|
6
|
+
{{#each this.featuredContentItems}}
|
|
7
|
+
<li class="mt-3 ml-4">
|
|
8
|
+
{{#> components/base/link _link=this.link _css="hover:underline relative inline text-link text-sm ds-focus" }}
|
|
9
|
+
{{this.title}}
|
|
10
|
+
{{/components/base/link}}
|
|
11
|
+
</li>
|
|
12
|
+
{{/each}}
|
|
13
|
+
</ul>
|
|
14
|
+
</div>
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{/if}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ArgsTable, Meta, Story, Canvas } from '@storybook/blocks'
|
|
2
|
+
import * as TeaserFeaturedContentStories from './teaser_featured_content.stories'
|
|
3
|
+
|
|
4
|
+
<Meta of={TeaserFeaturedContentStories} />
|
|
5
|
+
|
|
6
|
+
# Zeilenteaser
|
|
7
|
+
|
|
8
|
+
## Beschreibung
|
|
9
|
+
|
|
10
|
+
Im Zeilentaeser werden links zu featured Dokumenten angezeigt. Er wird unterhalb des Teasertextes bzw. unterhalb der Byline angezeigt.
|
|
11
|
+
Beispiele: [Standard 50 mit Zeilenteaser](?path=/story/komponenten-teaser-standard--standard-50-mit-featured-content), [Alternativ 100 mit Zeilenteaser](?path=/story/komponenten-teaser-alternativ--alternativ-100-mit-featured-content)
|
|
12
|
+
|
|
13
|
+
## Verwendung
|
|
14
|
+
|
|
15
|
+
Die Zeilenteaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
{{> components/teaser/components/teaser_featured_content}}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<Canvas withToolbar>
|
|
22
|
+
<Story of={TeaserFeaturedContentStories.Default} />
|
|
23
|
+
</Canvas>
|
|
24
|
+
|
|
25
|
+
<ArgsTable story="default" />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import featuredcontent from './teaser_featured_content.hbs'
|
|
2
|
+
import teaserFeaturedContent from '../fixtures/teaser_featured_content.json'
|
|
3
|
+
|
|
4
|
+
const Template = ({ ...args }) => {
|
|
5
|
+
return featuredcontent({ ...args })
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Komponenten/Teaser/Komponenten/Zeilenteaser',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const Default = {
|
|
13
|
+
render: Template.bind({}),
|
|
14
|
+
name: 'default',
|
|
15
|
+
args: teaserFeaturedContent,
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"alternative","teaserSize":"100","realTeaserSize":"100","isMobile1to1":true,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":true,"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":false,"showTeaserInfoAll":false,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":false},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":true,"asImage":false,"fallback":"images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg","sources":[{"media":"all and (max-width: 47.938em)","sizes":"40vw","srcset":"images/rueckkehr-nach-abschiebung-102_v-1to1__small.jpg 380w, images/rueckkehr-nach-abschiebung-102_v-1to1__medium.jpg 480w, images/rueckkehr-nach-abschiebung-102_v-1to1.jpg 720w, images/rueckkehr-nach-abschiebung-102_v-1to1__large.jpg 960w"},{"media":"all and (min-width: 48em) ","sizes":"33vw","srcset":"images/rueckkehr-nach-abschiebung-102_v-16to9__small.jpg 320w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg 480w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium__extended.jpg 640w, images/rueckkehr-nach-abschiebung-102_v-16to9.jpg 960w"}]}},"displayTeaserBodyAsImageOverlay":false,"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isVideo":false,"isPodcast":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"moreThenOneEvent":false,"moreThenTwoEvents":false,"firstInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Do","day":"9"}},"lastInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Fr","day":"10"}},"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.","hideBylineAndShorttext":false,"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"}},"showFeaturedContent":true,"featuredContentItems":[{"title":"Lindemann-Konzert in Kassel abgesagt","link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}}},{"title":"Ex-Kraftwerk-Mitglied vertont Stummfilm-Klassiker | Video","link":{"url":"/teaser2","webviewUrl":"/teaser2#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Videp","readMore":"mehr","readMoreLong":"read More Long"}}},{"title":"Lilien-Trainingslager wieder in El Saler | Audio","link":{"url":"/teaser3","webviewUrl":"/teaser3#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Audio","readMore":"mehr","readMoreLong":"read More Long"}}}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"showFeaturedContent":true,"featuredContentItems":[{"title":"Lindemann-Konzert in Kassel abgesagt","link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}}},{"title":"Ex-Kraftwerk-Mitglied vertont Stummfilm-Klassiker | Video","link":{"url":"/teaser2","webviewUrl":"/teaser2#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Videp","readMore":"mehr","readMoreLong":"read More Long"}}},{"title":"Lilien-Trainingslager wieder in El Saler | Audio","link":{"url":"/teaser3","webviewUrl":"/teaser3#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Audio","readMore":"mehr","readMoreLong":"read More Long"}}}]}
|
package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_featured_content.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"byline":"Byline","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard","teaserSize":"50","realTeaserSize":"50","isMobile1to1":false,"teaserDate":{"htmlDateTime":"2022-04-17T19:30+0200","htmlDate":"20.02.1983","date":"17.04.22","dateSeparatorTime":"17.04.22, 19:30"},"hasByline":true,"teaserInfo":{"showTeaserInfo":true,"showTeaserInfoSection":true,"showTeaserInfoChannel":false,"showTeaserInfoAll":false,"showTeaserInfoDate":false,"showTeaserInfoDateTime":true,"showTeaserInfoProgramRef":false},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"Vorname Nachname","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/rueckkehr-nach-abschiebung-102_v-16to9__small.jpg 320w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium.jpg 480w, images/rueckkehr-nach-abschiebung-102_v-16to9__medium__extended.jpg 640w, images/rueckkehr-nach-abschiebung-102_v-16to9.jpg 960w, images/rueckkehr-nach-abschiebung-102_v-16to9__retina.jpg 1920w"}]}},"displayTeaserBodyAsImageOverlay":false,"hasMediaButtons":false,"dontLazyload":true,"isStandardTeaser":true,"isHeroTeaser":true,"isMediaTeaser":false,"isGuide":false,"isProgram":false,"isEvent":false,"isTicker":false,"isAudio":false,"isVideo":false,"isPodcast":false,"isPodcastEpisode":false,"isExtOrBrandLink":false,"isAuthor":false,"copyright":"Copyright Text","audioAuthor":"Audio Author","hasStatus":false,"hasTeaserItem":true,"moreThenOneEvent":false,"moreThenTwoEvents":false,"firstInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Do","day":"9"}},"lastInstant":{"startDate":{"monthNameShort":"APR","weekdayNameShort":"Fr","day":"10"}},"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.","hideBylineAndShorttext":false,"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"}},"showFeaturedContent":true,"featuredContentItems":[{"title":"Lindemann-Konzert in Kassel abgesagt","link":{"url":"/teaser1","webviewUrl":"/teaser1#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Artikel","readMore":"mehr","readMoreLong":"read More Long"}}},{"title":"Ex-Kraftwerk-Mitglied vertont Stummfilm-Klassiker | Video","link":{"url":"/teaser2","webviewUrl":"/teaser2#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Videp","readMore":"mehr","readMoreLong":"read More Long"}}},{"title":"Lilien-Trainingslager wieder in El Saler | Audio","link":{"url":"/teaser3","webviewUrl":"/teaser3#webview","isTargetBlank":false,"hasIcon":false,"iconName":"iconName","readMoreText":{"readMoreScreenreader":"Zum Audio","readMore":"mehr","readMoreLong":"read More Long"}}}]}
|
|
@@ -8,6 +8,7 @@ import heroTeaserLink from './fixtures/teaser_alternative_hero_serif_link.json'
|
|
|
8
8
|
import heroTeaserProgram from './fixtures/teaser_alternative_hero_serif_program.json'
|
|
9
9
|
import teaser100Link from './fixtures/teaser_alternative_100_serif_link.json'
|
|
10
10
|
import teaser100 from './fixtures/teaser_alternative_100_serif.json'
|
|
11
|
+
import teaser100FeaturedContent from './fixtures/teaser_alternative_100_serif_featured_content.json'
|
|
11
12
|
import teaser50 from './fixtures/teaser_alternative_50_serif.json'
|
|
12
13
|
import teaser50WithoutTeaserImage from './fixtures/teaser_alternative_without_teaserimage_50_serif.json'
|
|
13
14
|
import teaser50Link from './fixtures/teaser_alternative_50_serif_link.json'
|
|
@@ -101,6 +102,12 @@ export const Alternativ100MitExternemLink = {
|
|
|
101
102
|
args: teaser100Link.logicItem.includeModel,
|
|
102
103
|
}
|
|
103
104
|
|
|
105
|
+
export const Alternativ100MitFeaturedContent = {
|
|
106
|
+
render: Template.bind({}),
|
|
107
|
+
name: 'Alternativ 100 mit Zeilenteaser',
|
|
108
|
+
args: teaser100FeaturedContent,
|
|
109
|
+
}
|
|
110
|
+
|
|
104
111
|
export const Alternativ50 = {
|
|
105
112
|
render: Template.bind({}),
|
|
106
113
|
name: 'Alternativ 50',
|
|
@@ -6,6 +6,7 @@ import teaserHeroSerif from './fixtures/teaser_standard_hero_serif.json'
|
|
|
6
6
|
import teaser100Serif from './fixtures/teaser_standard_100_serif.json'
|
|
7
7
|
import teaser50Serif from './fixtures/teaser_standard_50_serif.json'
|
|
8
8
|
import teaser50SerifWithoutTeaserImage from './fixtures/teaser_standard_without_teaserimage_50_serif.json'
|
|
9
|
+
import teaser50SerifFeaturedContent from'./fixtures/teaser_standard_50_serif_featured_content'
|
|
9
10
|
import teaser33Serif from './fixtures/teaser_standard_33_serif.json'
|
|
10
11
|
import teaser25Serif from './fixtures/teaser_standard_25_serif.json'
|
|
11
12
|
import teaser25SerifWithoutTeaserimage from './fixtures/teaser_standard_without_teaserimage_25_serif.json'
|
|
@@ -123,6 +124,12 @@ export const Standard50MitExternemLink = {
|
|
|
123
124
|
args: teaser50Link.logicItem.includeModel,
|
|
124
125
|
}
|
|
125
126
|
|
|
127
|
+
export const Standard50MitFeaturedContent = {
|
|
128
|
+
render: Template.bind({}),
|
|
129
|
+
name: 'Standard 50 mit Zeilenteaser',
|
|
130
|
+
args: teaser50SerifFeaturedContent,
|
|
131
|
+
}
|
|
132
|
+
|
|
126
133
|
export const Standard33 = {
|
|
127
134
|
render: Template.bind({}),
|
|
128
135
|
name: 'Standard 33',
|