hr-design-system-handlebars 0.51.2 → 0.52.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/build/helpers/loca.js +1 -0
- package/dist/views/components/teaser/tabbox/teaser_tabbox.hbs +3 -1
- package/package.json +1 -1
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_download.json +40 -0
- package/src/assets/fixtures/teaser/teaser_alternative_50_serif_download.json +40 -0
- package/src/assets/fixtures/teaser/teaser_labels.inc.json +8 -0
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_download.json +17 -0
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_download.json +17 -0
- package/src/assets/fixtures/teaser/teasers.inc.json +111 -0
- package/src/stories/views/components/site_header/header.stories.mdx +13 -6
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_download.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_download.json +1 -0
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.hbs +3 -1
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.stories.mdx +3 -1
- package/src/stories/views/components/teaser/teaser_alternativ.stories.mdx +8 -0
- package/src/stories/views/components/teaser/teaser_standard.stories.mdx +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.52.2 (Tue Aug 02 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- - added ugly closing and openeing div again [#291](https://github.com/mumprod/hr-design-system-handlebars/pull/291) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.52.1 (Tue Aug 02 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- better wording in mdx [#285](https://github.com/mumprod/hr-design-system-handlebars/pull/285) ([@StefanVesper](https://github.com/StefanVesper))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.52.0 (Mon Aug 01 2022)
|
|
26
|
+
|
|
27
|
+
#### 🚀 Enhancement
|
|
28
|
+
|
|
29
|
+
- Dpe 1675 Download Teaser [#290](https://github.com/mumprod/hr-design-system-handlebars/pull/290) ([@Sunny1112358](https://github.com/Sunny1112358))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- [@Sunny1112358](https://github.com/Sunny1112358)
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.51.2 (Thu Jul 28 2022)
|
|
2
38
|
|
|
3
39
|
#### 🐛 Bug Fix
|
package/build/helpers/loca.js
CHANGED
|
@@ -17,6 +17,7 @@ module.exports = function(text, options) {
|
|
|
17
17
|
"comment_anchor_2": " Kommentaren des Artikels springen",
|
|
18
18
|
"date_simple_at": options + " Uhr",
|
|
19
19
|
"label_ticker":"Ticker",
|
|
20
|
+
"label_download":"Download",
|
|
20
21
|
"label_media":"Media",
|
|
21
22
|
"group_tabbed_more":"weitere Meldungen aus " + options,
|
|
22
23
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
</div>
|
|
1
2
|
<div
|
|
2
3
|
x-data="{ tab: '{{this.tabbedGroup.[0].title}}' }"
|
|
3
4
|
class="grid grid-cols-12 pt-6 md:pt-7 bg-[#dce8f0] mx-0 md:rounded-tl-3xl md:rounded-br-3xl col-main gap-x-6 gap-y-6"
|
|
@@ -19,4 +20,5 @@
|
|
|
19
20
|
</div>
|
|
20
21
|
{{~> components/teaser/teaser_logic/teaser_logic ~}}
|
|
21
22
|
</section>
|
|
22
|
-
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="grid grid-cols-12 py-6 bg-white sm:px-8 col-full sm:col-main gap-x-6 gap-y-6">
|
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.
|
|
9
|
+
"version": "0.52.2",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserDownload",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includePath",
|
|
7
|
+
"@->value": "components/teaser/teaser_alternative"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.teaserSize",
|
|
11
|
+
"@->value": "100"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"@->contentpath": "logicItem.includeModel.teaserType",
|
|
15
|
+
"@->value": "alternative-ds"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"@->contentpath": "logicItem.includeModel.isMobile1to1",
|
|
19
|
+
"@->value": "true"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"@->contentpath": "logicItem.includeModel.link.content.isMobile1to1",
|
|
23
|
+
"@->value": "true"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"@->contentpath": "logicItem.includeModel.teaserImage",
|
|
27
|
+
"@->value": {
|
|
28
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
29
|
+
"@->contentpath": "md_1_tab"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
34
|
+
"@->value": {
|
|
35
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
36
|
+
"@->contentpath": "download"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserDownload",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includePath",
|
|
7
|
+
"@->value": "components/teaser/teaser_alternative"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.teaserSize",
|
|
11
|
+
"@->value": "50"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"@->contentpath": "logicItem.includeModel.teaserType",
|
|
15
|
+
"@->value": "alternative-ds"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"@->contentpath": "logicItem.includeModel.isMobile1to1",
|
|
19
|
+
"@->value": "true"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"@->contentpath": "logicItem.includeModel.link.content.isMobile1to1",
|
|
23
|
+
"@->value": "true"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"@->contentpath": "logicItem.includeModel.teaserImage",
|
|
27
|
+
"@->value": {
|
|
28
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
29
|
+
"@->contentpath": "md_2_tab"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
34
|
+
"@->value": {
|
|
35
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
36
|
+
"@->contentpath": "download"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserDownload",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includeModel.teaserSize",
|
|
7
|
+
"@->value": "100"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
11
|
+
"@->value": {
|
|
12
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
13
|
+
"@->contentpath": "download"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserDownload",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includeModel.teaserSize",
|
|
7
|
+
"@->value": "50"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
11
|
+
"@->value": {
|
|
12
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
13
|
+
"@->contentpath": "download"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -110,6 +110,117 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
+
"teaserDownload": {
|
|
114
|
+
"isSsi": true,
|
|
115
|
+
"logicItem": {
|
|
116
|
+
"includePath": "components/teaser/teaser_standard",
|
|
117
|
+
"includeModel": {
|
|
118
|
+
"byline": "Byline",
|
|
119
|
+
"title": "Download",
|
|
120
|
+
"topline": "",
|
|
121
|
+
"headingFontVariant": "serif",
|
|
122
|
+
"extendedTitle": "",
|
|
123
|
+
"teaserType": "standard-ds",
|
|
124
|
+
"teaserSize": "hero",
|
|
125
|
+
"isMobile1to1": false,
|
|
126
|
+
"teaserDate": {
|
|
127
|
+
"htmlDateTime": "2022-04-17T19:30+0200",
|
|
128
|
+
"htmlDate": "20.02.1983",
|
|
129
|
+
"date": "17.04.22",
|
|
130
|
+
"dateSeparatorTime": "17.04.22, 19:30"
|
|
131
|
+
},
|
|
132
|
+
"teaserInfo": {
|
|
133
|
+
"showTeaserInfo": true,
|
|
134
|
+
"showTeaserInfoSection": true,
|
|
135
|
+
"showTeaserInfoChannel": true,
|
|
136
|
+
"showTeaserInfoAll": true,
|
|
137
|
+
"showTeaserInfoDate": false,
|
|
138
|
+
"showTeaserInfoDateTime": false,
|
|
139
|
+
"showTeaserInfoProgramRef": true
|
|
140
|
+
},
|
|
141
|
+
"teaserImage": {
|
|
142
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
143
|
+
"@->contentpath": "standard_1"
|
|
144
|
+
},
|
|
145
|
+
"hasMediaButtons": false,
|
|
146
|
+
"dontLazyload": true,
|
|
147
|
+
"isStandardTeaser": true,
|
|
148
|
+
"isHeroTeaser": true,
|
|
149
|
+
"isMediaTeaser": false,
|
|
150
|
+
"isGuide": false,
|
|
151
|
+
"isProgram": false,
|
|
152
|
+
"isEvent": false,
|
|
153
|
+
"isTicker": false,
|
|
154
|
+
"isAudio": false,
|
|
155
|
+
"isVideo": false,
|
|
156
|
+
"isPodcastEpisode": false,
|
|
157
|
+
"isExtOrBrandLink": false,
|
|
158
|
+
"isAuthor": false,
|
|
159
|
+
"copyright": "Copyright Text",
|
|
160
|
+
"audioAuthor": "Audio Author",
|
|
161
|
+
"hasStatus": false,
|
|
162
|
+
"hasTeaserItem": true,
|
|
163
|
+
"allowAVConsumption": false,
|
|
164
|
+
"displayEpgInfos": false,
|
|
165
|
+
"aspectRatio": "ar--teaserTop",
|
|
166
|
+
"hideGeotag": false,
|
|
167
|
+
"hideEditableByline": true,
|
|
168
|
+
"doTracking": true,
|
|
169
|
+
"trackingForArdMediatheksLink": false,
|
|
170
|
+
"showMediatheksLink": false,
|
|
171
|
+
"showAirdate": false,
|
|
172
|
+
"showProfileInfoAsByline": false,
|
|
173
|
+
"obsolet_brandOfTeaser": "hessenschau",
|
|
174
|
+
"documentSection": "",
|
|
175
|
+
"headlineTag": "h1",
|
|
176
|
+
"icon": "ortsmarke",
|
|
177
|
+
"imageVariant": "topteaser",
|
|
178
|
+
"shorttext": "",
|
|
179
|
+
"sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
|
|
180
|
+
"profiles": "",
|
|
181
|
+
"teaserLead": {
|
|
182
|
+
"avDocument": "",
|
|
183
|
+
"image": ""
|
|
184
|
+
},
|
|
185
|
+
"geotag": [
|
|
186
|
+
{
|
|
187
|
+
"title": "Wolfhagen"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"link": {
|
|
191
|
+
"url": "/teaser1",
|
|
192
|
+
"webviewUrl": "/teaser1#webview",
|
|
193
|
+
"isTargetBlank": false,
|
|
194
|
+
"hasIcon": false,
|
|
195
|
+
"iconName": "iconName",
|
|
196
|
+
"readMoreText": {
|
|
197
|
+
"readMoreScreenreader": "Zum Artikel",
|
|
198
|
+
"readMore": "mehr",
|
|
199
|
+
"readMoreLong": "read More Long"
|
|
200
|
+
},
|
|
201
|
+
"content": {
|
|
202
|
+
"headlineTag": "h1",
|
|
203
|
+
"headingFontVariant": "serif",
|
|
204
|
+
"imageVariant": "topteaser",
|
|
205
|
+
"isFileDownload": false,
|
|
206
|
+
"teaserImage": {
|
|
207
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
208
|
+
"@->contentpath": "standard_1"
|
|
209
|
+
},
|
|
210
|
+
"teaserSize": "hero",
|
|
211
|
+
"isMobile1to1": false,
|
|
212
|
+
"teaserType": "standard-ds",
|
|
213
|
+
"title": "Abgeschobene Geschwister aus Syrien zurück in Wolfhagen",
|
|
214
|
+
"topline": "Überglücklich, aber ohne Mama",
|
|
215
|
+
"trackingData": {
|
|
216
|
+
"secondLevelId": "2",
|
|
217
|
+
"pageName": "hessenschau"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
113
224
|
"teaserWithComments": {
|
|
114
225
|
"isSsi": true,
|
|
115
226
|
"logicItem": {
|
|
@@ -13,7 +13,7 @@ import JsonData3 from './fixtures/site_header_mit_submenu.json'
|
|
|
13
13
|
viewports: [360, 768, 1024],
|
|
14
14
|
},
|
|
15
15
|
layout: 'fullscreen',
|
|
16
|
-
docs: { inlineStories : false, iframeHeight:
|
|
16
|
+
docs: { inlineStories : false, iframeHeight: 240 },
|
|
17
17
|
viewport: {
|
|
18
18
|
viewports: INITIAL_VIEWPORTS
|
|
19
19
|
},
|
|
@@ -69,7 +69,6 @@ Die wesentlichen Funktionen und Features der Navigation sind mit dem Javascript-
|
|
|
69
69
|
Für das CSS wird das Framework [**TailwindCSS**](https://www.tailwindcss.com) verwendet.
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
|
|
73
72
|
<a name="varianten" />
|
|
74
73
|
|
|
75
74
|
### Varianten
|
|
@@ -94,16 +93,24 @@ Mobil:
|
|
|
94
93
|
|
|
95
94
|
***
|
|
96
95
|
|
|
97
|
-
|
|
96
|
+
<br />
|
|
97
|
+
<br />
|
|
98
|
+
<br />
|
|
99
|
+
<br />
|
|
100
|
+
Navigation mit zusätzlichem Service-Item:
|
|
98
101
|
|
|
99
102
|
<Canvas>
|
|
100
|
-
<Story name="Mit Warnung" args={JsonData2}>
|
|
103
|
+
<Story name="Mit Warnung" args={JsonData2}>bla
|
|
101
104
|
{Template.bind({})}
|
|
102
105
|
</Story>
|
|
103
106
|
</Canvas>
|
|
104
107
|
|
|
105
108
|
***
|
|
106
109
|
|
|
110
|
+
<br />
|
|
111
|
+
<br />
|
|
112
|
+
<br />
|
|
113
|
+
<br />
|
|
107
114
|
Navigation mit zusätzlicher Subnavigation:
|
|
108
115
|
|
|
109
116
|
<Canvas>
|
|
@@ -294,10 +301,10 @@ Die Brand-Navigation stellt im obersten Bereich des Headers direkte Links zu den
|
|
|
294
301
|
* burger.hbs
|
|
295
302
|
<br />
|
|
296
303
|
|
|
297
|
-
Die Service-Navigation beinhaltet das Logo **(service_logo.hbs)**, die Service-
|
|
304
|
+
Die Service-Navigation beinhaltet das Logo **(service_logo.hbs)**, die Service-List **(service_list.hbs)** und die Suchfunktion **(navigation_search.hbs)**, sowie bei mobilen Viewports das Burger-Menu **(burger.hbs)**, welches die mobile Variante der **SectionNavigation** darstellt.<br />
|
|
298
305
|
Die gesamte ServiceNavigation liegt innerhalb des **"serviceNavWrapper"**. Bei mobilem Viewport wird dieser Wrapper beim Scrollen der Seite mit Hilfe der Funktion **"shouldServiceNavBeHidden()"** ein- bzw. ausgeblendet.
|
|
299
306
|
|
|
300
|
-
Innerhalb des Hauptwrappers liegt der **"serviceNavMainContainer"** welcher die serviceNavHeadline, einen Wrapper für das Logo sowie den **"serviceItemsWrapper"** beinhaltet. In diesem wiederum liegt die Service-List **(service_list.hbs)**
|
|
307
|
+
Innerhalb des Hauptwrappers liegt der **"serviceNavMainContainer"** welcher die serviceNavHeadline, einen Wrapper für das Logo sowie den **"serviceItemsWrapper"** beinhaltet. In diesem wiederum liegt die Service-List **(service_list.hbs)** , die Komponente für die Suchfunktion **(navigation_search.hbs)** sowie für mobil/Tablet das Burger-Menu **(burger.hbs)**.
|
|
301
308
|
|
|
302
309
|
**header.hbs:**
|
|
303
310
|
|
package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_alternative","includeModel":{"byline":"Byline","title":"Download","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"alternative-ds","teaserSize":"100","isMobile1to1":"true","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":false,"showTeaserInfoProgramRef":true},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":true,"asImage":false,"fallback":"https://picsum.photos/id/188/480/270","sources":[{"media":"all and (max-width: 47.938em)","sizes":"40vw","srcset":"https://picsum.photos/id/188/320/320 320w, https://picsum.photos/id/188/480/480 480w, https://picsum.photos/id/188/640/640 640w, https://picsum.photos/id/188/960/960 960w"},{"media":"all and (min-width: 48em) ","sizes":"33vw","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"}]}},"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":"","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"","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","isMobile1to1":"true","teaserType":"standard-ds","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"label":{"type":"download","loca":"label_download","byline":{"bylineSsi":"ZIP - 3mb","bylineText":"BylineText"}}}}}
|
package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_alternative","includeModel":{"byline":"Byline","title":"Download","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"alternative-ds","teaserSize":"50","isMobile1to1":"true","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":false,"showTeaserInfoProgramRef":true},"teaserImage":{"alttext":"Lorem ipsum","copyrightWithLinks":"","responsiveImage":{"asPicture":true,"asImage":false,"fallback":"https://picsum.photos/id/189/480/270","sources":[{"media":"all and (max-width: 47.938em)","sizes":"40vw","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"},{"media":"all and (min-width: 48em) ","sizes":"33vw","srcset":"https://picsum.photos/id/189/320/180 320w, https://picsum.photos/id/189/480/270 480w, https://picsum.photos/id/189/640/360 640w, https://picsum.photos/id/189/960/540 960w"}]}},"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":"","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"","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","isMobile1to1":"true","teaserType":"standard-ds","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"label":{"type":"download","loca":"label_download","byline":{"bylineSsi":"ZIP - 3mb","bylineText":"BylineText"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Download","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard-ds","teaserSize":"100","isMobile1to1":false,"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":false,"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":"","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"","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","isMobile1to1":false,"teaserType":"standard-ds","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"label":{"type":"download","loca":"label_download","byline":{"bylineSsi":"ZIP - 3mb","bylineText":"BylineText"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"isSsi":true,"logicItem":{"includePath":"components/teaser/teaser_standard","includeModel":{"byline":"Byline","title":"Download","topline":"","headingFontVariant":"serif","extendedTitle":"","teaserType":"standard-ds","teaserSize":"50","isMobile1to1":false,"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":false,"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":"","headlineTag":"h1","icon":"ortsmarke","imageVariant":"topteaser","shorttext":"","sophoraId":"rueckkehr-nach-abschiebung-wolfhagen--100","profiles":"","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","isMobile1to1":false,"teaserType":"standard-ds","title":"Abgeschobene Geschwister aus Syrien zurück in Wolfhagen","topline":"Überglücklich, aber ohne Mama","trackingData":{"secondLevelId":"2","pageName":"hessenschau"}}},"label":{"type":"download","loca":"label_download","byline":{"bylineSsi":"ZIP - 3mb","bylineText":"BylineText"}}}}}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
</div>
|
|
1
2
|
<div
|
|
2
3
|
x-data="{ tab: '{{this.tabbedGroup.[0].title}}' }"
|
|
3
4
|
class="grid grid-cols-12 pt-6 md:pt-7 bg-[#dce8f0] mx-0 md:rounded-tl-3xl md:rounded-br-3xl col-main gap-x-6 gap-y-6"
|
|
@@ -19,4 +20,5 @@
|
|
|
19
20
|
</div>
|
|
20
21
|
{{~> components/teaser/teaser_logic/teaser_logic ~}}
|
|
21
22
|
</section>
|
|
22
|
-
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="grid grid-cols-12 py-6 bg-white sm:px-8 col-full sm:col-main gap-x-6 gap-y-6">
|
|
@@ -8,6 +8,7 @@ import heroTeaserWithLabel from './fixtures/teaser_alternative_hero_serif_label.
|
|
|
8
8
|
import heroTeaserWithComments from './fixtures/teaser_alternative_hero_serif_comments.json'
|
|
9
9
|
import teaser100 from './fixtures/teaser_alternative_100_serif.json'
|
|
10
10
|
import teaser50 from './fixtures/teaser_alternative_50_serif.json'
|
|
11
|
+
import teaser50Download from './fixtures/teaser_alternative_50_serif_download.json'
|
|
11
12
|
|
|
12
13
|
<Meta
|
|
13
14
|
title="Komponenten/Teaser/Alternativ"
|
|
@@ -67,6 +68,10 @@ Der Alternativ-Teaser besteht aus 2 Hauptelemente: <b>Bild</b> und <b>Text</b> (
|
|
|
67
68
|
Desktop = Bild(33%) neben Text(66%) <br/>
|
|
68
69
|
Mobile = Verhalten wie bei 100% Standard-Teaser <br/>
|
|
69
70
|
|
|
71
|
+
<b>Alternativ 50% mit Download:</b> <br/>
|
|
72
|
+
Desktop = Bild(33%) neben Text(66%) <br/>
|
|
73
|
+
Mobile = Verhalten wie bei 100% Standard-Teaser <br/>
|
|
74
|
+
|
|
70
75
|
Der Alternativ-Teaser soll nur als 100%- bzw. 50%-Teaser verwendet werden.
|
|
71
76
|
|
|
72
77
|
## Sub-Komponenten
|
|
@@ -111,4 +116,7 @@ Die Alternativ-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
|
111
116
|
<Story name="Alternativ 50" args={teaser50.logicItem.includeModel}>
|
|
112
117
|
{Template.bind({})}
|
|
113
118
|
</Story>
|
|
119
|
+
<Story name="Alternativ 50 mit Download" args={teaser50Download.logicItem.includeModel}>
|
|
120
|
+
{Template.bind({})}
|
|
121
|
+
</Story>
|
|
114
122
|
</Preview>
|
|
@@ -7,6 +7,7 @@ import teaser100Serif from './fixtures/teaser_standard_100_serif.json'
|
|
|
7
7
|
import teaser50Serif from './fixtures/teaser_standard_50_serif.json'
|
|
8
8
|
import teaser33Serif from './fixtures/teaser_standard_33_serif.json'
|
|
9
9
|
import teaser25Serif from './fixtures/teaser_standard_25_serif.json'
|
|
10
|
+
import teaser100Download from './fixtures/teaser_standard_100_serif_download.json'
|
|
10
11
|
|
|
11
12
|
<Meta
|
|
12
13
|
title="Komponenten/Teaser/Standard"
|
|
@@ -108,5 +109,8 @@ Die Standard-Teaser-Komponente wird in handlebars wie folgt eingebaut:
|
|
|
108
109
|
<Story name="Standard 25" args={teaser25Serif.logicItem.includeModel}>
|
|
109
110
|
{Template.bind({})}
|
|
110
111
|
</Story>
|
|
112
|
+
<Story name="Standard 100 Mit Download" args={teaser100Download.logicItem.includeModel}>
|
|
113
|
+
{Template.bind({})}
|
|
114
|
+
</Story>
|
|
111
115
|
</Preview>
|
|
112
116
|
|