hr-design-system-handlebars 0.40.1 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/build/helpers/case.js +5 -4
- package/build/helpers/switch.js +4 -5
- package/dist/assets/index.css +23 -15
- package/dist/views/components/Header/ServiceNavigation/ServiceList.hbs +1 -6
- package/dist/views/components/Label.hbs +12 -1
- package/dist/views/components/Teaser/Teaser-Heading.hbs +13 -8
- package/dist/views/components/Teaser/Teaser-standard.hbs +18 -0
- package/dist/views/components/Teaser/Title.hbs +1 -1
- package/dist/views/components/Teaser/Topline.hbs +1 -1
- package/dist/views/components/Teaser/labelHelper.js +13 -0
- package/dist/views/components/base/loadDynamic.hbs +5 -0
- package/dist/views/components/base/loadSSI.hbs +1 -1
- package/package.json +1 -1
- package/src/stories/Typography.stories.mdx +1 -1
- package/src/stories/views/components/Header/ServiceNavigation/ServiceList.hbs +1 -6
- package/src/stories/views/components/Label.hbs +12 -1
- package/src/stories/views/components/Teaser/Teaser-Heading.hbs +13 -8
- package/src/stories/views/components/Teaser/Teaser-Heading.stories.mdx +37 -18
- package/src/stories/views/components/Teaser/Teaser-standard.hbs +18 -0
- package/src/stories/views/components/Teaser/{Teaser.stories.mdx → Teaser.stories.mdx.old} +2 -1
- package/src/stories/views/components/Teaser/Title.hbs +1 -1
- package/src/stories/views/components/Teaser/Title.stories.mdx +9 -6
- package/src/stories/views/components/Teaser/Topline.hbs +1 -1
- package/src/stories/views/components/Teaser/Topline.stories.mdx +1 -1
- package/src/stories/views/components/Teaser/{teaser_article.json → data/teaser_article.json} +4 -3
- package/src/stories/views/components/Teaser/{teaser_full.json → data/teaser_full.json} +2 -2
- package/src/stories/views/components/Teaser/data/teaser_standard_lg_serif.json +156 -0
- package/src/stories/views/components/Teaser/data/teaser_standard_md_serif.json +156 -0
- package/src/stories/views/components/Teaser/data/teaser_standard_sm_serif.json +156 -0
- package/src/stories/views/components/Teaser/data/teaser_standard_xl_serif.json +156 -0
- package/src/stories/views/components/Teaser/data/teaser_standard_xxl_serif.json +140 -0
- package/src/stories/views/components/Teaser/data/ticker_label.json +10 -0
- package/src/stories/views/components/Teaser/labelHelper.js +13 -0
- package/src/stories/views/components/Teaser/teaser-standard.stories.mdx +70 -0
- package/src/stories/views/components/base/loadDynamic.hbs +5 -0
- package/src/stories/views/components/base/loadSSI.hbs +1 -1
- package/tailwind.config.js +1 -1
- package/dist/views/components/Teaser/Teaser-default.hbs +0 -3
- package/src/stories/views/components/Teaser/Teaser-default.hbs +0 -3
- package/src/stories/views/components/Teaser/teaser-default.stories.mdx +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.42.1 (Mon Apr 11 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Dpe 1496 [#208](https://github.com/mumprod/hr-design-system-handlebars/pull/208) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.42.0 (Thu Apr 07 2022)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- FEATURE: employs a loadDynamic template as a [#207](https://github.com/mumprod/hr-design-system-handlebars/pull/207) ([@szuelch](https://github.com/szuelch))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- [@szuelch](https://github.com/szuelch)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.41.0 (Wed Apr 06 2022)
|
|
26
|
+
|
|
27
|
+
#### 🚀 Enhancement
|
|
28
|
+
|
|
29
|
+
- Bild für Standard-Teaser [#206](https://github.com/mumprod/hr-design-system-handlebars/pull/206) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.40.1 (Wed Apr 06 2022)
|
|
2
38
|
|
|
3
39
|
#### 🐛 Bug Fix
|
package/build/helpers/case.js
CHANGED
package/build/helpers/switch.js
CHANGED
package/dist/assets/index.css
CHANGED
|
@@ -1514,15 +1514,15 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
1514
1514
|
.-mt-10 {
|
|
1515
1515
|
margin-top: -2.5rem;
|
|
1516
1516
|
}
|
|
1517
|
-
.mb-4 {
|
|
1518
|
-
margin-bottom: 1rem;
|
|
1519
|
-
}
|
|
1520
1517
|
.mt-4 {
|
|
1521
1518
|
margin-top: 1rem;
|
|
1522
1519
|
}
|
|
1523
1520
|
.mt-1 {
|
|
1524
1521
|
margin-top: 0.25rem;
|
|
1525
1522
|
}
|
|
1523
|
+
.mb-4 {
|
|
1524
|
+
margin-bottom: 1rem;
|
|
1525
|
+
}
|
|
1526
1526
|
.mt-0\.5 {
|
|
1527
1527
|
margin-top: 0.125rem;
|
|
1528
1528
|
}
|
|
@@ -2000,9 +2000,13 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2000
2000
|
.p-2 {
|
|
2001
2001
|
padding: 0.5rem;
|
|
2002
2002
|
}
|
|
2003
|
-
.px-
|
|
2004
|
-
padding-left: 0.
|
|
2005
|
-
padding-right: 0.
|
|
2003
|
+
.px-1\.5 {
|
|
2004
|
+
padding-left: 0.375rem;
|
|
2005
|
+
padding-right: 0.375rem;
|
|
2006
|
+
}
|
|
2007
|
+
.px-1 {
|
|
2008
|
+
padding-left: 0.25rem;
|
|
2009
|
+
padding-right: 0.25rem;
|
|
2006
2010
|
}
|
|
2007
2011
|
.py-6 {
|
|
2008
2012
|
padding-top: 1.5rem;
|
|
@@ -2040,6 +2044,10 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2040
2044
|
padding-top: 0.5rem;
|
|
2041
2045
|
padding-bottom: 0.5rem;
|
|
2042
2046
|
}
|
|
2047
|
+
.px-2 {
|
|
2048
|
+
padding-left: 0.5rem;
|
|
2049
|
+
padding-right: 0.5rem;
|
|
2050
|
+
}
|
|
2043
2051
|
.py-1\.5 {
|
|
2044
2052
|
padding-top: 0.375rem;
|
|
2045
2053
|
padding-bottom: 0.375rem;
|
|
@@ -2056,6 +2064,9 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2056
2064
|
padding-left: 1rem;
|
|
2057
2065
|
padding-right: 1rem;
|
|
2058
2066
|
}
|
|
2067
|
+
.pt-px {
|
|
2068
|
+
padding-top: 1px;
|
|
2069
|
+
}
|
|
2059
2070
|
.pl-4 {
|
|
2060
2071
|
padding-left: 1rem;
|
|
2061
2072
|
}
|
|
@@ -2092,9 +2103,6 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2092
2103
|
.pr-4 {
|
|
2093
2104
|
padding-right: 1rem;
|
|
2094
2105
|
}
|
|
2095
|
-
.pt-px {
|
|
2096
|
-
padding-top: 1px;
|
|
2097
|
-
}
|
|
2098
2106
|
.text-left {
|
|
2099
2107
|
text-align: left;
|
|
2100
2108
|
}
|
|
@@ -2142,7 +2150,7 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2142
2150
|
line-height: 2.25rem;
|
|
2143
2151
|
}
|
|
2144
2152
|
.text-4xl {
|
|
2145
|
-
font-size:
|
|
2153
|
+
font-size: 2.125rem;
|
|
2146
2154
|
line-height: 2.25rem;
|
|
2147
2155
|
}
|
|
2148
2156
|
.text-5xl {
|
|
@@ -2185,14 +2193,14 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2185
2193
|
--tw-text-opacity: 1;
|
|
2186
2194
|
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
2187
2195
|
}
|
|
2188
|
-
.text-indigo-500 {
|
|
2189
|
-
--tw-text-opacity: 1;
|
|
2190
|
-
color: rgba(99, 102, 241, var(--tw-text-opacity));
|
|
2191
|
-
}
|
|
2192
2196
|
.text-gray-500 {
|
|
2193
2197
|
--tw-text-opacity: 1;
|
|
2194
2198
|
color: rgba(107, 114, 128, var(--tw-text-opacity));
|
|
2195
2199
|
}
|
|
2200
|
+
.text-indigo-500 {
|
|
2201
|
+
--tw-text-opacity: 1;
|
|
2202
|
+
color: rgba(99, 102, 241, var(--tw-text-opacity));
|
|
2203
|
+
}
|
|
2196
2204
|
.text-toplineColor {
|
|
2197
2205
|
color: #006dc1;
|
|
2198
2206
|
color: var(--color-topline);
|
|
@@ -2620,7 +2628,7 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2620
2628
|
padding-left: 0px;
|
|
2621
2629
|
}
|
|
2622
2630
|
.md\:text-4xl {
|
|
2623
|
-
font-size:
|
|
2631
|
+
font-size: 2.125rem;
|
|
2624
2632
|
line-height: 2.25rem;
|
|
2625
2633
|
}
|
|
2626
2634
|
.md\:drop-shadow-md {
|
|
@@ -8,12 +8,7 @@
|
|
|
8
8
|
{{#with this.serviceNavigationSSILinks}}
|
|
9
9
|
<ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
|
|
10
10
|
{{#each this}}
|
|
11
|
-
{{
|
|
12
|
-
{{#if (isStorybook)}}
|
|
13
|
-
{{> components/Header/ServiceNavigation/ServiceNavigationItem }}
|
|
14
|
-
{{else}}
|
|
15
|
-
{{{this}}}
|
|
16
|
-
{{/if}}
|
|
11
|
+
{{> components/base/loadSSI templatePath='components/Header/ServiceNavigation/ServiceNavigationItem' }}
|
|
17
12
|
{{/each}}
|
|
18
13
|
</ul>
|
|
19
14
|
{{/with}}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
<span class="sb-label px-
|
|
1
|
+
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
|
|
2
|
+
{{text}}
|
|
3
|
+
</span>
|
|
4
|
+
{{~#with this.byline ~}}
|
|
5
|
+
<span class="">
|
|
6
|
+
{{#if this.bylineSsi}}
|
|
7
|
+
{{{this.bylineSsi}}}
|
|
8
|
+
{{else}}
|
|
9
|
+
{{this.bylineText}}
|
|
10
|
+
{{/if}}
|
|
11
|
+
</span>
|
|
12
|
+
{{~/with~}}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
{{> components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{{#>components/base/link _cssClasses="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="headlineLink" }}
|
|
2
|
+
{{#with this.content.label}}
|
|
3
|
+
<div class="mt-4">
|
|
4
|
+
{{> components/Label type=loca text=type}}
|
|
5
|
+
</div>
|
|
6
|
+
{{/with~}}
|
|
7
|
+
<{{~ ../headlineTag }} class="{{../class}}" >
|
|
8
|
+
{{#with this.content.topline}}
|
|
9
|
+
{{> components/Teaser/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
10
|
+
{{/with}}
|
|
11
|
+
{{> components/Teaser/Title text=../this.title font=../font size=../size }}
|
|
12
|
+
</{{~ ../headlineTag }}>
|
|
13
|
+
{{/components/base/link}}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<article class="col-span-12 {{inline-switch teasersize '["sm","md","lg"]' '["md:col-span-3","md:col-span-4","md:col-span-6"]'}}">
|
|
2
|
+
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
3
|
+
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
4
|
+
{{/components/base/link}}
|
|
5
|
+
{{#if labelType}}
|
|
6
|
+
<div class="mt-4">
|
|
7
|
+
{{> components/Label type=labelType text=labelText}}
|
|
8
|
+
</div>
|
|
9
|
+
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=""}}
|
|
10
|
+
{{else}}
|
|
11
|
+
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
12
|
+
{{/if}}
|
|
13
|
+
|
|
14
|
+
<div class="mt-2 text-base font-copy">{{shorttext}}</div>
|
|
15
|
+
{{#if profiles}}
|
|
16
|
+
<div class="mt-1 text-sm text-gray-500 font-headingSerif">{{profiles}}</div>
|
|
17
|
+
{{/if}}
|
|
18
|
+
</article>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl","text-lg","text-2xl"]'}} font
|
|
1
|
+
<span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl ","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function addLabel(json, label) {
|
|
2
|
+
json.link.content.label = label;
|
|
3
|
+
json.link.content.topline = false;
|
|
4
|
+
}
|
|
5
|
+
function removeLabel(json, topline) {
|
|
6
|
+
json.link.content.label = false;
|
|
7
|
+
json.link.content.topline = topline;
|
|
8
|
+
}
|
|
9
|
+
function changeTeaserSize(json, size) {
|
|
10
|
+
json.teasersize = size
|
|
11
|
+
}
|
|
12
|
+
export { addLabel, removeLabel, changeTeaserSize};
|
|
13
|
+
//export default addLabel;
|
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.42.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -94,7 +94,7 @@ Zur Auszeichnung von Überschriften stehen die folgenden Utility Klassen zur ver
|
|
|
94
94
|
| `text-xl` | `font-size: 1.25rem` <br /> `line-height: 1.75rem` | `20px`<br />`28px` | Setzt die Eigenschaften `font-size` und `line-height` |
|
|
95
95
|
| `text-2xl` | `font-size: 1.375rem` <br /> `line-height: 2rem` | `22px`<br />`32px` | Setzt die Eigenschaften `font-size` und `line-height` |
|
|
96
96
|
| `text-3xl` | `font-size: 1.875rem` <br /> `line-height: 2.25rem` | `30px`<br />`36px` | Setzt die Eigenschaften `font-size` und `line-height` |
|
|
97
|
-
| `text-4xl` | `font-size:
|
|
97
|
+
| `text-4xl` | `font-size: 2.125rem` <br /> `line-height: 2.25rem` | `34px`<br />`36px` | Setzt die Eigenschaften `font-size` und `line-height` |
|
|
98
98
|
|
|
99
99
|
### Verwendung RobotoSlab
|
|
100
100
|
|
|
@@ -8,12 +8,7 @@
|
|
|
8
8
|
{{#with this.serviceNavigationSSILinks}}
|
|
9
9
|
<ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
|
|
10
10
|
{{#each this}}
|
|
11
|
-
{{
|
|
12
|
-
{{#if (isStorybook)}}
|
|
13
|
-
{{> components/Header/ServiceNavigation/ServiceNavigationItem }}
|
|
14
|
-
{{else}}
|
|
15
|
-
{{{this}}}
|
|
16
|
-
{{/if}}
|
|
11
|
+
{{> components/base/loadSSI templatePath='components/Header/ServiceNavigation/ServiceNavigationItem' }}
|
|
17
12
|
{{/each}}
|
|
18
13
|
</ul>
|
|
19
14
|
{{/with}}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
<span class="sb-label px-
|
|
1
|
+
<span class="sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base font-heading {{inline-switch type '["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog"]' '["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive"]'}}">
|
|
2
|
+
{{text}}
|
|
3
|
+
</span>
|
|
4
|
+
{{~#with this.byline ~}}
|
|
5
|
+
<span class="">
|
|
6
|
+
{{#if this.bylineSsi}}
|
|
7
|
+
{{{this.bylineSsi}}}
|
|
8
|
+
{{else}}
|
|
9
|
+
{{this.bylineText}}
|
|
10
|
+
{{/if}}
|
|
11
|
+
</span>
|
|
12
|
+
{{~/with~}}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
{{> components/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{{#>components/base/link _cssClasses="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="headlineLink" }}
|
|
2
|
+
{{#with this.content.label}}
|
|
3
|
+
<div class="mt-4">
|
|
4
|
+
{{> components/Label type=loca text=type}}
|
|
5
|
+
</div>
|
|
6
|
+
{{/with~}}
|
|
7
|
+
<{{~ ../headlineTag }} class="{{../class}}" >
|
|
8
|
+
{{#with this.content.topline}}
|
|
9
|
+
{{> components/Teaser/Topline text=this readMore=../this.readMoreText.readMoreScreenreader}}
|
|
10
|
+
{{/with}}
|
|
11
|
+
{{> components/Teaser/Title text=../this.title font=../font size=../size }}
|
|
12
|
+
</{{~ ../headlineTag }}>
|
|
13
|
+
{{/components/base/link}}
|
|
@@ -3,13 +3,17 @@ import { ArgsTable, Meta, Story, Canvas, Preview } from "@storybook/addon-docs";
|
|
|
3
3
|
import teaserHeading from "./Teaser-Heading.hbs";
|
|
4
4
|
|
|
5
5
|
<Meta
|
|
6
|
-
title="Komponenten/TeaserHeading"
|
|
6
|
+
title="Komponenten/Teaser/Komponenten/TeaserHeading"
|
|
7
7
|
argTypes={{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
link:{
|
|
9
|
+
content:{
|
|
10
|
+
topline: {
|
|
11
|
+
control: "text",
|
|
12
|
+
description: "Topline Text",
|
|
13
|
+
}
|
|
14
|
+
}
|
|
11
15
|
},
|
|
12
|
-
|
|
16
|
+
title: {
|
|
13
17
|
control: "text",
|
|
14
18
|
description: "Headline Text",
|
|
15
19
|
},
|
|
@@ -29,7 +33,7 @@ import teaserHeading from "./Teaser-Heading.hbs";
|
|
|
29
33
|
description: "Schriftart",
|
|
30
34
|
control: {
|
|
31
35
|
type: "inline-radio",
|
|
32
|
-
options: ["headingSerif", "heading"],
|
|
36
|
+
options: ["font-headingSerif", "font-heading"],
|
|
33
37
|
},
|
|
34
38
|
table: {
|
|
35
39
|
defaultValue: {
|
|
@@ -38,7 +42,7 @@ import teaserHeading from "./Teaser-Heading.hbs";
|
|
|
38
42
|
},
|
|
39
43
|
},
|
|
40
44
|
size: {
|
|
41
|
-
options: ["
|
|
45
|
+
options: ["xxl", "md", "sm"],
|
|
42
46
|
control: { type: "inline-radio" },
|
|
43
47
|
},
|
|
44
48
|
}}
|
|
@@ -58,7 +62,7 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
|
|
|
58
62
|
|
|
59
63
|
<Canvas>
|
|
60
64
|
<Story
|
|
61
|
-
name="Serif
|
|
65
|
+
name="Serif Hero"
|
|
62
66
|
parameters={{
|
|
63
67
|
docs: {
|
|
64
68
|
source: {
|
|
@@ -69,11 +73,16 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
|
|
|
69
73
|
},
|
|
70
74
|
}}
|
|
71
75
|
args={{
|
|
72
|
-
|
|
73
|
-
headline: "Das ist eine wirklich sehr lange Headline",
|
|
76
|
+
title: "Das ist eine wirklich sehr lange Headline",
|
|
74
77
|
headlineTag: "h1",
|
|
75
|
-
font: "headingSerif",
|
|
76
|
-
size: "
|
|
78
|
+
font: "font-headingSerif",
|
|
79
|
+
size: "xxl",
|
|
80
|
+
link: {
|
|
81
|
+
content: {
|
|
82
|
+
topline: "Das ist eine wirklich sehr lange Topline"
|
|
83
|
+
},
|
|
84
|
+
url: "/teaser1"
|
|
85
|
+
}
|
|
77
86
|
}}
|
|
78
87
|
>
|
|
79
88
|
{Template.bind({})}
|
|
@@ -97,11 +106,16 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
|
|
|
97
106
|
},
|
|
98
107
|
}}
|
|
99
108
|
args={{
|
|
100
|
-
|
|
101
|
-
headline: "Das ist eine wirklich sehr lange Headline",
|
|
109
|
+
title: "Das ist eine wirklich sehr lange Headline",
|
|
102
110
|
headlineTag: "h1",
|
|
103
|
-
font: "headingSerif",
|
|
111
|
+
font: "font-headingSerif",
|
|
104
112
|
size: "md",
|
|
113
|
+
link: {
|
|
114
|
+
content: {
|
|
115
|
+
topline: "Das ist eine wirklich sehr lange Topline"
|
|
116
|
+
},
|
|
117
|
+
url: "/teaser1"
|
|
118
|
+
}
|
|
105
119
|
}}
|
|
106
120
|
>
|
|
107
121
|
{Template.bind({})}
|
|
@@ -123,11 +137,16 @@ Ein toller Einleitungstext für unsere `Teaser-Heading` Komponente:
|
|
|
123
137
|
},
|
|
124
138
|
}}
|
|
125
139
|
args={{
|
|
126
|
-
|
|
127
|
-
headline: "Das ist eine wirklich sehr lange Headline",
|
|
140
|
+
title: "Das ist eine wirklich sehr lange Headline",
|
|
128
141
|
headlineTag: "h1",
|
|
129
|
-
font: "headingSerif",
|
|
142
|
+
font: "font-headingSerif",
|
|
130
143
|
size: "sm",
|
|
144
|
+
link: {
|
|
145
|
+
content: {
|
|
146
|
+
topline: "Das ist eine wirklich sehr lange Topline"
|
|
147
|
+
},
|
|
148
|
+
url: "/teaser1"
|
|
149
|
+
}
|
|
131
150
|
}}
|
|
132
151
|
>
|
|
133
152
|
{Template.bind({})}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<article class="col-span-12 {{inline-switch teasersize '["sm","md","lg"]' '["md:col-span-3","md:col-span-4","md:col-span-6"]'}}">
|
|
2
|
+
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
3
|
+
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
4
|
+
{{/components/base/link}}
|
|
5
|
+
{{#if labelType}}
|
|
6
|
+
<div class="mt-4">
|
|
7
|
+
{{> components/Label type=labelType text=labelText}}
|
|
8
|
+
</div>
|
|
9
|
+
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=""}}
|
|
10
|
+
{{else}}
|
|
11
|
+
{{> components/Teaser/Teaser-Heading headlineTag="h2" size=teasersize font=(inline-switch serifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') headline=title topline=topline}}
|
|
12
|
+
{{/if}}
|
|
13
|
+
|
|
14
|
+
<div class="mt-2 text-base font-copy">{{shorttext}}</div>
|
|
15
|
+
{{#if profiles}}
|
|
16
|
+
<div class="mt-1 text-sm text-gray-500 font-headingSerif">{{profiles}}</div>
|
|
17
|
+
{{/if}}
|
|
18
|
+
</article>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl","text-lg","text-2xl"]'}} font
|
|
1
|
+
<span class="block {{inline-switch size '["xxl","sm"]' '["text-2xl md:text-4xl ","text-lg ","text-2xl "]'}} {{font}} mt-0.5">{{text}}</span>
|
|
@@ -3,14 +3,14 @@ import { ArgsTable, Meta, Story, Preview } from "@storybook/addon-docs";
|
|
|
3
3
|
import titleComponent from "./Title.hbs";
|
|
4
4
|
|
|
5
5
|
<Meta
|
|
6
|
-
title="Komponenten/Teaser/Titel"
|
|
6
|
+
title="Komponenten/Teaser/Komponenten/Titel"
|
|
7
7
|
argTypes={{
|
|
8
8
|
text: {
|
|
9
9
|
control: "text",
|
|
10
10
|
description: "Titel",
|
|
11
11
|
},
|
|
12
12
|
size: {
|
|
13
|
-
options: ["lg", "md", "sm"],
|
|
13
|
+
options: ["xxl","xl","lg", "md", "sm"],
|
|
14
14
|
control: { type: "inline-radio" },
|
|
15
15
|
},
|
|
16
16
|
}}
|
|
@@ -28,28 +28,31 @@ Beispiele für die Titel-Komponente:
|
|
|
28
28
|
|
|
29
29
|
<Preview withToolbar>
|
|
30
30
|
<Story
|
|
31
|
-
name="
|
|
31
|
+
name="Titel Serif - Hero"
|
|
32
32
|
args={{
|
|
33
33
|
text: "Dies ist der Titel eines 100%-Teasers",
|
|
34
|
-
size: "
|
|
34
|
+
size: "xxl",
|
|
35
|
+
font: "font-headingSerif"
|
|
35
36
|
}}
|
|
36
37
|
>
|
|
37
38
|
{Template.bind({})}
|
|
38
39
|
</Story>
|
|
39
40
|
<Story
|
|
40
|
-
name="
|
|
41
|
+
name="Titel Serif - normal"
|
|
41
42
|
args={{
|
|
42
43
|
text: "Dies ist der Titel eines 66%-, 50%- oder 33%-Teasers",
|
|
43
44
|
size: "md",
|
|
45
|
+
font: "font-headingSerif"
|
|
44
46
|
}}
|
|
45
47
|
>
|
|
46
48
|
{Template.bind({})}
|
|
47
49
|
</Story>
|
|
48
50
|
<Story
|
|
49
|
-
name="
|
|
51
|
+
name="Titel Serif - small"
|
|
50
52
|
args={{
|
|
51
53
|
text: "Dies ist der Titel eines 25%-Teasers",
|
|
52
54
|
size: "sm",
|
|
55
|
+
font: "font-headingSerif"
|
|
53
56
|
}}
|
|
54
57
|
>
|
|
55
58
|
{Template.bind({})}
|
package/src/stories/views/components/Teaser/{teaser_article.json → data/teaser_article.json}
RENAMED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"byline": "Byline",
|
|
3
3
|
"title": "Abgeschobene Geschwister aus Syrien zurück in Wolfhagen",
|
|
4
4
|
"topline": "Überglücklich, aber ohne Mama",
|
|
5
|
+
"serifHeading": true,
|
|
5
6
|
"extendedTitle": null,
|
|
6
7
|
"teasertype": "standard",
|
|
7
8
|
"teasersize": "100",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"headingSize": "h1",
|
|
78
79
|
"icon": "ortsmarke",
|
|
79
80
|
"imageVariant": "topteaser",
|
|
80
|
-
"shorttext": "
|
|
81
|
+
"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.",
|
|
81
82
|
"sophoraId": "rueckkehr-nach-abschiebung-wolfhagen--100",
|
|
82
83
|
"profiles": "Von Alf Haubitz und Alice Merton",
|
|
83
84
|
"teaserLead": {
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
"type": "Ticker",
|
|
89
90
|
"loca": "ticker",
|
|
90
91
|
"byline": {
|
|
91
|
-
"bylineSsi": "ssi",
|
|
92
|
+
"bylineSsi": "BylineText aus ssi",
|
|
92
93
|
"bylineText": "BylineText"
|
|
93
94
|
}
|
|
94
95
|
},
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
"type": "Ticker",
|
|
147
148
|
"loca": "ticker",
|
|
148
149
|
"byline": {
|
|
149
|
-
"bylineSsi": "ssi",
|
|
150
|
+
"bylineSsi": "BylineText aus ssi",
|
|
150
151
|
"bylineText": "BylineText"
|
|
151
152
|
}
|
|
152
153
|
}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"type": "Ticker",
|
|
104
104
|
"loca": "ticker",
|
|
105
105
|
"byline": {
|
|
106
|
-
"bylineSsi": "ssi",
|
|
106
|
+
"bylineSsi": "BylineText aus ssi",
|
|
107
107
|
"bylineText": "BylineText"
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"type": "Ticker",
|
|
162
162
|
"loca": "ticker",
|
|
163
163
|
"byline": {
|
|
164
|
-
"bylineSsi": "ssi",
|
|
164
|
+
"bylineSsi": "BylineText aus ssi",
|
|
165
165
|
"bylineText": "BylineText"
|
|
166
166
|
}
|
|
167
167
|
}
|