hr-design-system-handlebars 0.53.3 → 0.54.0
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 +13 -0
- package/build/helpers/loca.js +1 -0
- package/dist/assets/index.css +76 -11
- package/dist/views/components/event/instant_dates.hbs +21 -0
- package/dist/views/components/teaser/components/teaser_body.hbs +20 -0
- package/dist/views/components/teaser/components/teaser_image.hbs +10 -1
- package/dist/views/components/teaser/components/teaser_image_overlay.hbs +3 -0
- package/dist/views/components/teaser/teaser_alternativ.hbs +2 -19
- package/dist/views/components/teaser/teaser_standard.hbs +11 -21
- package/dist/views/components/teaser/teaser_standard_event.hbs +133 -0
- package/package.json +1 -1
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_single_event.json +32 -0
- package/src/assets/fixtures/teaser/teaser_alternative_100_serif_two_events.json +36 -0
- package/src/assets/fixtures/teaser/teaser_labels.inc.json +8 -0
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_single_event.json +21 -0
- package/src/assets/fixtures/teaser/teaser_standard_100_serif_two_events.json +25 -0
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_multiple_events.json +42 -0
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_single_event.json +24 -0
- package/src/assets/fixtures/teaser/teaser_standard_33_serif_two_events.json +28 -0
- package/src/assets/fixtures/teaser/teaser_standard_50_serif_single_event.json +17 -0
- package/src/assets/fixtures/teaser/teaser_standard_66_serif_single_event.json +17 -0
- package/src/assets/fixtures/teaser/teasers.inc.json +147 -0
- package/src/stories/views/components/event/instant_dates.hbs +21 -0
- package/src/stories/views/components/teaser/components/teaser_body.hbs +20 -0
- package/src/stories/views/components/teaser/components/teaser_image.hbs +10 -1
- package/src/stories/views/components/teaser/components/teaser_image_overlay.hbs +3 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif copy.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_single_event copy.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_single_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_two_events.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_comments.json +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_alternative_hero_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_cluster.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_comments_without_teaserinfo.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_index.json +4979 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_download.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_single_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_two_events.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_multiple_events.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_tabbox.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_two_events.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_download.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_single_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_tabbox.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_66_serif_single_event.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_comments.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_tabbox.json +1 -1
- package/src/stories/views/components/teaser/teaser_alternativ.hbs +2 -19
- package/src/stories/views/components/teaser/teaser_standard.hbs +11 -21
- package/src/stories/views/components/teaser/teaser_standard_event.hbs +133 -0
- package/src/stories/views/components/teaser/teaser_standard_event.stories.mdx +139 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v0.54.0 (Mon Aug 15 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Dpe 1673 [#296](https://github.com/mumprod/hr-design-system-handlebars/pull/296) ([@Sunny1112358](https://github.com/Sunny1112358) [@szuelch](https://github.com/szuelch))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- [@Sunny1112358](https://github.com/Sunny1112358)
|
|
10
|
+
- [@szuelch](https://github.com/szuelch)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v0.53.3 (Fri Aug 05 2022)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/build/helpers/loca.js
CHANGED
package/dist/assets/index.css
CHANGED
|
@@ -827,6 +827,9 @@ video {
|
|
|
827
827
|
.h-5 {
|
|
828
828
|
height: 1.25rem;
|
|
829
829
|
}
|
|
830
|
+
.h-2\/5 {
|
|
831
|
+
height: 40%;
|
|
832
|
+
}
|
|
830
833
|
.h-auto {
|
|
831
834
|
height: auto;
|
|
832
835
|
}
|
|
@@ -1075,6 +1078,9 @@ video {
|
|
|
1075
1078
|
.gap-y-5 {
|
|
1076
1079
|
row-gap: 1.25rem;
|
|
1077
1080
|
}
|
|
1081
|
+
.gap-y-4 {
|
|
1082
|
+
row-gap: 1rem;
|
|
1083
|
+
}
|
|
1078
1084
|
.divide-y > :not([hidden]) ~ :not([hidden]) {
|
|
1079
1085
|
--tw-divide-y-reverse: 0;
|
|
1080
1086
|
border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
|
|
@@ -1147,6 +1153,16 @@ video {
|
|
|
1147
1153
|
.border-0 {
|
|
1148
1154
|
border-width: 0px;
|
|
1149
1155
|
}
|
|
1156
|
+
.border-x {
|
|
1157
|
+
border-left-width: 1px;
|
|
1158
|
+
border-right-width: 1px;
|
|
1159
|
+
}
|
|
1160
|
+
.border-r {
|
|
1161
|
+
border-right-width: 1px;
|
|
1162
|
+
}
|
|
1163
|
+
.border-l-2 {
|
|
1164
|
+
border-left-width: 2px;
|
|
1165
|
+
}
|
|
1150
1166
|
.border-b {
|
|
1151
1167
|
border-bottom-width: 1px;
|
|
1152
1168
|
}
|
|
@@ -1159,8 +1175,11 @@ video {
|
|
|
1159
1175
|
.border-t {
|
|
1160
1176
|
border-top-width: 1px;
|
|
1161
1177
|
}
|
|
1162
|
-
.border-
|
|
1163
|
-
border-
|
|
1178
|
+
.border-dashed {
|
|
1179
|
+
border-style: dashed;
|
|
1180
|
+
}
|
|
1181
|
+
.border-dotted {
|
|
1182
|
+
border-style: dotted;
|
|
1164
1183
|
}
|
|
1165
1184
|
.border-white {
|
|
1166
1185
|
--tw-border-opacity: 1;
|
|
@@ -1174,6 +1193,14 @@ video {
|
|
|
1174
1193
|
border-color: #006dc1;
|
|
1175
1194
|
border-color: var(--color-topline);
|
|
1176
1195
|
}
|
|
1196
|
+
.border-gray-400 {
|
|
1197
|
+
--tw-border-opacity: 1;
|
|
1198
|
+
border-color: rgba(156, 163, 175, var(--tw-border-opacity));
|
|
1199
|
+
}
|
|
1200
|
+
.border-slate-600 {
|
|
1201
|
+
--tw-border-opacity: 1;
|
|
1202
|
+
border-color: rgba(71, 85, 105, var(--tw-border-opacity));
|
|
1203
|
+
}
|
|
1177
1204
|
.border-gray-200 {
|
|
1178
1205
|
--tw-border-opacity: 1;
|
|
1179
1206
|
border-color: rgba(229, 231, 235, var(--tw-border-opacity));
|
|
@@ -1268,6 +1295,10 @@ video {
|
|
|
1268
1295
|
--tw-bg-opacity: 1;
|
|
1269
1296
|
background-color: rgba(31, 41, 55, var(--tw-bg-opacity));
|
|
1270
1297
|
}
|
|
1298
|
+
.bg-neutral-200 {
|
|
1299
|
+
--tw-bg-opacity: 1;
|
|
1300
|
+
background-color: rgba(229, 229, 229, var(--tw-bg-opacity));
|
|
1301
|
+
}
|
|
1271
1302
|
.bg-\[\#dce8f0\] {
|
|
1272
1303
|
--tw-bg-opacity: 1;
|
|
1273
1304
|
background-color: rgba(220, 232, 240, var(--tw-bg-opacity));
|
|
@@ -1290,6 +1321,11 @@ video {
|
|
|
1290
1321
|
--tw-gradient-to: rgba(0, 0, 0, 0);
|
|
1291
1322
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1292
1323
|
}
|
|
1324
|
+
.from-white {
|
|
1325
|
+
--tw-gradient-from: #fff;
|
|
1326
|
+
--tw-gradient-to: rgba(255, 255, 255, 0);
|
|
1327
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1328
|
+
}
|
|
1293
1329
|
.to-purple-100 {
|
|
1294
1330
|
--tw-gradient-to: #f3e8ff;
|
|
1295
1331
|
}
|
|
@@ -1370,6 +1406,10 @@ video {
|
|
|
1370
1406
|
padding-left: 0.5rem;
|
|
1371
1407
|
padding-right: 0.5rem;
|
|
1372
1408
|
}
|
|
1409
|
+
.py-4 {
|
|
1410
|
+
padding-top: 1rem;
|
|
1411
|
+
padding-bottom: 1rem;
|
|
1412
|
+
}
|
|
1373
1413
|
.py-1\.5 {
|
|
1374
1414
|
padding-top: 0.375rem;
|
|
1375
1415
|
padding-bottom: 0.375rem;
|
|
@@ -1382,10 +1422,6 @@ video {
|
|
|
1382
1422
|
padding-left: 0px;
|
|
1383
1423
|
padding-right: 0px;
|
|
1384
1424
|
}
|
|
1385
|
-
.py-4 {
|
|
1386
|
-
padding-top: 1rem;
|
|
1387
|
-
padding-bottom: 1rem;
|
|
1388
|
-
}
|
|
1389
1425
|
.py-px {
|
|
1390
1426
|
padding-top: 1px;
|
|
1391
1427
|
padding-bottom: 1px;
|
|
@@ -1399,6 +1435,9 @@ video {
|
|
|
1399
1435
|
.pr-2 {
|
|
1400
1436
|
padding-right: 0.5rem;
|
|
1401
1437
|
}
|
|
1438
|
+
.pt-5 {
|
|
1439
|
+
padding-top: 1.25rem;
|
|
1440
|
+
}
|
|
1402
1441
|
.pt-1 {
|
|
1403
1442
|
padding-top: 0.25rem;
|
|
1404
1443
|
}
|
|
@@ -1570,6 +1609,10 @@ video {
|
|
|
1570
1609
|
--tw-text-opacity: 1;
|
|
1571
1610
|
color: rgba(0, 82, 147, var(--tw-text-opacity));
|
|
1572
1611
|
}
|
|
1612
|
+
.text-black {
|
|
1613
|
+
--tw-text-opacity: 1;
|
|
1614
|
+
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
1615
|
+
}
|
|
1573
1616
|
.text-blue-science {
|
|
1574
1617
|
--tw-text-opacity: 1;
|
|
1575
1618
|
color: rgba(0, 109, 193, var(--tw-text-opacity));
|
|
@@ -1632,6 +1675,9 @@ video {
|
|
|
1632
1675
|
.opacity-70 {
|
|
1633
1676
|
opacity: 0.7;
|
|
1634
1677
|
}
|
|
1678
|
+
.opacity-80 {
|
|
1679
|
+
opacity: 0.8;
|
|
1680
|
+
}
|
|
1635
1681
|
.shadow-inner {
|
|
1636
1682
|
--tw-shadow: inset 0 0px 5px 0 rgba(0, 0, 0, 0.25);
|
|
1637
1683
|
--tw-shadow-colored: inset 0 0px 5px 0 var(--tw-shadow-color);
|
|
@@ -2589,6 +2635,10 @@ video {
|
|
|
2589
2635
|
position: static;
|
|
2590
2636
|
}
|
|
2591
2637
|
|
|
2638
|
+
.md\:absolute {
|
|
2639
|
+
position: absolute;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2592
2642
|
.md\:top-auto {
|
|
2593
2643
|
top: auto;
|
|
2594
2644
|
}
|
|
@@ -2782,21 +2832,32 @@ video {
|
|
|
2782
2832
|
border-color: rgba(255, 255, 255, var(--tw-border-opacity));
|
|
2783
2833
|
}
|
|
2784
2834
|
|
|
2835
|
+
.md\:bg-neutral-200 {
|
|
2836
|
+
--tw-bg-opacity: 1;
|
|
2837
|
+
background-color: rgba(229, 229, 229, var(--tw-bg-opacity));
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
.md\:from-white {
|
|
2841
|
+
--tw-gradient-from: #fff;
|
|
2842
|
+
--tw-gradient-to: rgba(255, 255, 255, 0);
|
|
2843
|
+
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2785
2846
|
.md\:px-0 {
|
|
2786
2847
|
padding-left: 0px;
|
|
2787
2848
|
padding-right: 0px;
|
|
2788
2849
|
}
|
|
2789
2850
|
|
|
2790
|
-
.md\:px-5 {
|
|
2791
|
-
padding-left: 1.25rem;
|
|
2792
|
-
padding-right: 1.25rem;
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
2851
|
.md\:px-4 {
|
|
2796
2852
|
padding-left: 1rem;
|
|
2797
2853
|
padding-right: 1rem;
|
|
2798
2854
|
}
|
|
2799
2855
|
|
|
2856
|
+
.md\:px-5 {
|
|
2857
|
+
padding-left: 1.25rem;
|
|
2858
|
+
padding-right: 1.25rem;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2800
2861
|
.md\:px-8 {
|
|
2801
2862
|
padding-left: 2rem;
|
|
2802
2863
|
padding-right: 2rem;
|
|
@@ -2842,6 +2903,10 @@ video {
|
|
|
2842
2903
|
text-decoration-thickness: 2px;
|
|
2843
2904
|
}
|
|
2844
2905
|
|
|
2906
|
+
.md\:opacity-80 {
|
|
2907
|
+
opacity: 0.8;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2845
2910
|
.md\:drop-shadow-md {
|
|
2846
2911
|
--tw-drop-shadow: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.07));
|
|
2847
2912
|
-webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{{#if this.moreThenOneEvent}}
|
|
2
|
+
{{#with this.firstInstant}}
|
|
3
|
+
<span class='text-2xl font-headingSerif font-bold'>{{this.startDate.day}}</span>
|
|
4
|
+
<span class='text-sm font-headingSerif'>{{this.startDate.monthNameShort}}</span>
|
|
5
|
+
{{/with}}
|
|
6
|
+
{{#if this.moreThenTwoEvents}}
|
|
7
|
+
<span class='text-sm font-headingSerif'>|</span>
|
|
8
|
+
{{else}}
|
|
9
|
+
<span class='text-sm font-headingSerif'>+</span>
|
|
10
|
+
{{/if}}
|
|
11
|
+
{{#with this.lastInstant}}
|
|
12
|
+
<span class='text-2xl font-headingSerif font-bold'>{{this.startDate.day}}</span>
|
|
13
|
+
<span class='text-sm font-headingSerif'>{{this.startDate.monthNameShort}}</span>
|
|
14
|
+
{{/with}}
|
|
15
|
+
{{else}}
|
|
16
|
+
{{#with this.firstInstant}}
|
|
17
|
+
<span class='text-sm font-headingSerif'>{{this.startDate.weekdayNameShort}}</span>
|
|
18
|
+
<span class='text-2xl font-headingSerif font-bold'>{{this.startDate.day}}</span>
|
|
19
|
+
<span class='text-sm font-headingSerif'>{{this.startDate.monthNameShort}}</span>
|
|
20
|
+
{{/with}}
|
|
21
|
+
{{/if}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<div class="{{~#if this.isMobile1to1}}basis-3/5 md:flex-full{{/if~}}{{#if _outerCssClasses}} {{_outerCssClasses}}{{/if}}">
|
|
2
|
+
<header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
3
|
+
{{#>components/base/link _css="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="headlineLink" }}
|
|
4
|
+
{{> components/teaser/components/teaser_heading
|
|
5
|
+
_fontVariant=this.headingFontVariant
|
|
6
|
+
_headlineTag=this.headlineTag
|
|
7
|
+
_label=this.label
|
|
8
|
+
_readMore=this.link.readMoreText.readMoreScreenreader
|
|
9
|
+
_size=this.teaserSize
|
|
10
|
+
_title=this.title
|
|
11
|
+
_topline=this.topline
|
|
12
|
+
_teaserType=this.teaserType
|
|
13
|
+
_isMobile1to1=this.isMobile1to1}}
|
|
14
|
+
{{/components/base/link}}
|
|
15
|
+
</header>
|
|
16
|
+
<div class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
17
|
+
{{> components/teaser/components/teaser_text _text=this.shorttext _size=this.teaserSize _cssClasses=_teaserTextCssClasses }}
|
|
18
|
+
{{> components/teaser/components/teaser_byline}}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
{{#>components/base/link _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink" }}
|
|
2
2
|
{{~> components/base/image/responsive_image this.teaserImage _type=this.teaserType _variant=this.imageVariant _noDelay=../this.dontLazyload _addClassImg="" ~}}
|
|
3
|
-
{{/components/base/link}}
|
|
3
|
+
{{/components/base/link}}
|
|
4
|
+
{{#if this.isEvent}}
|
|
5
|
+
{{#unless this.displayTeaserBodyAsImageOverlay}}
|
|
6
|
+
{{#>components/teaser/components/teaser_image_overlay _cssClasses="top-0 h-full"}}
|
|
7
|
+
<div class="flex flex-col items-center justify-center p-4">
|
|
8
|
+
{{> components/event/instant_dates}}
|
|
9
|
+
</div>
|
|
10
|
+
{{/components/teaser/components/teaser_image_overlay}}
|
|
11
|
+
{{/unless}}
|
|
12
|
+
{{/if}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<div class="{{#unless _noOverlayInMobileViewports}}absolute bg-gradient-to-t from-white bg-neutral-200 opacity-80{{else}}relative border-x border-b border-gray-400 md:border-0 md:absolute md:from-white md:bg-neutral-200 md:opacity-80{{/unless}} flex justify-center{{#if _cssClasses}} {{_cssClasses}}{{/if}}" aria-hidden="true">
|
|
2
|
+
{{> @partial-block }}
|
|
3
|
+
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<article class="col-span-12 flex md:flex-row gap-y-3 gap-x-4 md:px-0{{~inline-switch this.teaserSize '["hero","100","50"]' '[" flex-col"," px-5 md:flex-row"," md:col-span-6 px-5 md:flex-row"]'~}}"
|
|
1
|
+
<article class="col-span-12 flex items-start md:flex-row gap-y-3 gap-x-4 md:px-0{{#unless this.isEvent}}{{~inline-switch this.teaserSize '["hero","100","50"]' '[" flex-col"," px-5 md:flex-row"," md:col-span-6 px-5 md:flex-row"]'~}}{{else}} flex-col{{/unless}}"
|
|
2
2
|
x-data="{ avStart: false }"
|
|
3
3
|
{{#if this.isMobile1to1}}
|
|
4
4
|
:class="avStart ? 'flex-col' : 'flex-row'"
|
|
@@ -7,22 +7,5 @@
|
|
|
7
7
|
<figure class="relative ar-16-9{{~inline-switch this.teaserSize '["hero","100","50"]' '[" basis-2/3"," basis-2/5 md:basis-1/3"," basis-2/5 md:basis-1/2"]'~}}">
|
|
8
8
|
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
9
9
|
</figure>
|
|
10
|
-
|
|
11
|
-
<header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
12
|
-
{{#>components/base/link _css="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="headlineLink" }}
|
|
13
|
-
{{> components/teaser/components/teaser_heading _fontVariant=this.headingFontVariant
|
|
14
|
-
_headlineTag=this.headlineTag
|
|
15
|
-
_label=this.label
|
|
16
|
-
_readMore=this.link.readMoreText.readMoreScreenreader
|
|
17
|
-
_size=this.teaserSize
|
|
18
|
-
_title=this.title
|
|
19
|
-
_teaserType=this.teaserType
|
|
20
|
-
_topline=this.topline}}
|
|
21
|
-
{{/components/base/link}}
|
|
22
|
-
</header>
|
|
23
|
-
<section class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
24
|
-
{{> components/teaser/components/teaser_text _text=this.shorttext _size=this.teaserSize }}
|
|
25
|
-
{{> components/teaser/components/teaser_byline}}
|
|
26
|
-
</section>
|
|
27
|
-
</div>
|
|
10
|
+
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.teaserSize '["hero","100","50"]' '["basis-1/3"," basis-3/5 md:basis-2/3"," basis-3/5 md:basis-1/2"]') }}
|
|
28
11
|
</article>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<article class="col-span-12 flex gap-y-3 gap-x-4
|
|
1
|
+
<article class="relative col-span-12 flex {{if this.displayTeaserBodyAsImageOverlay '' 'gap-y-3'}} gap-x-4
|
|
2
2
|
{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}}
|
|
3
3
|
{{~#if this.isMobile1to1}} js-is1to1 px-5 md:px-0 md:flex-col{{else}} flex-col{{/if~}}
|
|
4
4
|
"
|
|
@@ -11,24 +11,14 @@
|
|
|
11
11
|
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
12
12
|
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
13
13
|
</figure>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{> components/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_topline=this.topline
|
|
25
|
-
_teaserType=this.teaserType
|
|
26
|
-
_isMobile1to1=this.isMobile1to1}}
|
|
27
|
-
{{/components/base/link}}
|
|
28
|
-
</header>
|
|
29
|
-
<section class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
30
|
-
{{> components/teaser/components/teaser_text _text=this.shorttext _size=this.teaserSize }}
|
|
31
|
-
{{> components/teaser/components/teaser_byline}}
|
|
32
|
-
</section>
|
|
33
|
-
</div>
|
|
14
|
+
{{#if this.displayTeaserBodyAsImageOverlay}}
|
|
15
|
+
{{#>components/teaser/components/teaser_image_overlay _noOverlayInMobileViewports=true _cssClasses=" relative md:absolute w-full bottom-0"}}
|
|
16
|
+
<div class="flex flex-col items-center justify-center p-4 border-dashed border-r border-gray-400">
|
|
17
|
+
{{> components/event/instant_dates}}
|
|
18
|
+
</div>
|
|
19
|
+
{{> components/teaser/components/teaser_body _outerCssClasses=(if this.isMobile1to1 'py-4 md:px-4 basis-3/5 md:flex-full' 'py-4 md:px-4')}}
|
|
20
|
+
{{/components/teaser/components/teaser_image_overlay}}
|
|
21
|
+
{{else}}
|
|
22
|
+
{{> components/teaser/components/teaser_body _outerCssClasses=(if this.isMobile1to1 'basis-3/5 md:flex-full')}}
|
|
23
|
+
{{/if}}
|
|
34
24
|
</article>
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<article class="col-span-12 flex gap-y-3 gap-x-4
|
|
2
|
+
{{~inline-switch this.teaserSize '["25","33","50"]' '[" md:col-span-3"," md:col-span-4"," md:col-span-6",""]'}}
|
|
3
|
+
{{~#if this.isMobile1to1}} js-is1to1 px-5 md:px-0 md:flex-col{{else}} flex-col{{/if~}}
|
|
4
|
+
"
|
|
5
|
+
x-data="{ avStart: false }"
|
|
6
|
+
{{#if this.isMobile1to1}}
|
|
7
|
+
:class="avStart ? 'flex-col' : 'flex-row'"
|
|
8
|
+
{{/if}}
|
|
9
|
+
>
|
|
10
|
+
|
|
11
|
+
{{#if this.isEvent}}
|
|
12
|
+
{{! ---- To handle two events ----}}
|
|
13
|
+
{{#if this.moreThenOneEvent}}
|
|
14
|
+
<article class="mx-5 md:mx-0 relative col-span-12 flex gap-y-4 gap-x-4 {{inline-switch teaserSize '["33","50"]' '["md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
15
|
+
<figure class="relative
|
|
16
|
+
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
17
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
18
|
+
</figure>
|
|
19
|
+
<div class="absolute flex justify-center w-16 h-full bg-gradient-to-t from-white
|
|
20
|
+
{{inline-switch teaserSize '["100"]' '["bottom-0 w-full h-2/5 bg-neutral-200 opacity-80"]'}}"
|
|
21
|
+
aria-hidden="true">
|
|
22
|
+
<div class="self-center block mx-4 text-center text-black">
|
|
23
|
+
<span class="text-xl font-headingSerif font-bold">{{ this.firstInstant.startDate.day}}</span>
|
|
24
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.monthNameShort}}</span>
|
|
25
|
+
+<br>
|
|
26
|
+
<span class="text-xl font-headingSerif font-bold">{{this.lastInstant.startDate.day}}</span>
|
|
27
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.monthNameShort}} </span>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="{{~#if this.isMobile1to1}}basis-3/5 md:flex-full{{/if~}}
|
|
30
|
+
{{inline-switch teaserSize '["100"]' '["border-l-2 border-dotted pt-5 pl-4 border-slate-600"]'}}
|
|
31
|
+
{{inline-switch teaserSize '["50","33"]' '[" hidden"," hidden"]'}}">
|
|
32
|
+
<header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
33
|
+
{{#>components/base/link css="hover:text-toplineColor" }}
|
|
34
|
+
{{> components/teaser/components/teaser_heading
|
|
35
|
+
fontVariant=this.headingFontVariant
|
|
36
|
+
headlineTag=this.headlineTag
|
|
37
|
+
label=this.label
|
|
38
|
+
readMore=this.link.readMoreText.readMoreScreenreader
|
|
39
|
+
size=this.teaserSize
|
|
40
|
+
title=this.title
|
|
41
|
+
topline=this.topline
|
|
42
|
+
teaserType=this.teaserType
|
|
43
|
+
_isMobile1to1=this.isMobile1to1}}
|
|
44
|
+
{{/components/base/link}}
|
|
45
|
+
</header>
|
|
46
|
+
<section class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
47
|
+
{{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
|
|
48
|
+
</section>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</article>
|
|
52
|
+
{{else if this.moreThenTwoEvents}}
|
|
53
|
+
{{! ---- To handle more than two events ----}}
|
|
54
|
+
<article class="mx-5 md:mx-0 relative col-span-12 flex gap-y-4 gap-x-4 {{inline-switch teaserSize '["33","50"]' '["md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
55
|
+
<figure class="relative
|
|
56
|
+
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
57
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
58
|
+
</figure>
|
|
59
|
+
<div class="absolute flex justify-center w-16 h-full bg-gradient-to-t from-white" aria-hidden="true">
|
|
60
|
+
<div class="self-center block mx-4 text-center text-black">
|
|
61
|
+
<span class="text-xl font-headingSerif font-bold">{{ this.firstInstant.startDate.day }} </span>
|
|
62
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.monthNameShort }} </span>
|
|
63
|
+
|<br>
|
|
64
|
+
<span class="text-xl font-headingSerif font-bold">{{this.lastInstant.startDate.day }} </span>
|
|
65
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.monthNameShort }} </span>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</article>
|
|
69
|
+
{{else}}
|
|
70
|
+
{{! ---- To handle a single event ----}}
|
|
71
|
+
<article class="mx-5 md:mx-0 relative col-span-12 flex gap-y-4 gap-x-4 {{inline-switch teaserSize '["33","50"]' '["md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
72
|
+
<figure class="relative
|
|
73
|
+
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
74
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
75
|
+
</figure>
|
|
76
|
+
<div class="absolute flex justify-center w-16 h-full bg-gradient-to-t from-white
|
|
77
|
+
{{inline-switch teaserSize '["100"]' '["bottom-0 w-full h-2/5 bg-neutral-200 opacity-80"]'}}"
|
|
78
|
+
aria-hidden="true">
|
|
79
|
+
<div class="self-center block mx-4 text-center text-black">
|
|
80
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.weekdayNameShort }} </span>
|
|
81
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.day }} </span>
|
|
82
|
+
<span class="text-xl font-headingSerif">{{this.lastInstant.startDate.monthNameShort }} </span>
|
|
83
|
+
</div>
|
|
84
|
+
<div class=" {{~#if this.isMobile1to1}}basis-3/5 md:flex-full{{/if~}}
|
|
85
|
+
{{inline-switch teaserSize '["100"]' '["border-l-2 border-dotted pt-5 pl-4 border-slate-600"]'}}
|
|
86
|
+
{{inline-switch teaserSize '["50","33"]' '[" hidden"," hidden"]'}}">
|
|
87
|
+
<header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
88
|
+
{{#>components/base/link css="hover:text-toplineColor" }}
|
|
89
|
+
{{> components/teaser/components/teaser_heading
|
|
90
|
+
fontVariant=this.headingFontVariant
|
|
91
|
+
headlineTag=this.headlineTag
|
|
92
|
+
label=this.label
|
|
93
|
+
readMore=this.link.readMoreText.readMoreScreenreader
|
|
94
|
+
size=this.teaserSize
|
|
95
|
+
title=this.title
|
|
96
|
+
topline=this.topline
|
|
97
|
+
teaserType=this.teaserType
|
|
98
|
+
_isMobile1to1=this.isMobile1to1}}
|
|
99
|
+
{{/components/base/link}}
|
|
100
|
+
</header>
|
|
101
|
+
<section class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
102
|
+
{{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
|
|
103
|
+
</section>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</article>
|
|
107
|
+
{{/if}}
|
|
108
|
+
{{else}}
|
|
109
|
+
<figure class="relative
|
|
110
|
+
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
111
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
112
|
+
</figure>
|
|
113
|
+
{{/if}}
|
|
114
|
+
<div class="{{~#if this.isMobile1to1}}basis-3/5 md:flex-full{{/if~}}{{inline-switch teaserSize '["100"]' '[" hidden"]'}}">
|
|
115
|
+
<header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
116
|
+
{{#>components/base/link css="hover:text-toplineColor" }}
|
|
117
|
+
{{> components/teaser/components/teaser_heading
|
|
118
|
+
fontVariant=this.headingFontVariant
|
|
119
|
+
headlineTag=this.headlineTag
|
|
120
|
+
label=this.label
|
|
121
|
+
readMore=this.link.readMoreText.readMoreScreenreader
|
|
122
|
+
size=this.teaserSize
|
|
123
|
+
title=this.title
|
|
124
|
+
topline=this.topline
|
|
125
|
+
teaserType=this.teaserType
|
|
126
|
+
_isMobile1to1=this.isMobile1to1}}
|
|
127
|
+
{{/components/base/link}}
|
|
128
|
+
</header>
|
|
129
|
+
<section class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
|
|
130
|
+
{{> components/teaser/components/teaser_text text=this.shorttext size=this.teaserSize }}
|
|
131
|
+
</section>
|
|
132
|
+
</div>
|
|
133
|
+
</article>
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.54.0",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserEvent",
|
|
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.teaserImage",
|
|
19
|
+
"@->value": {
|
|
20
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
21
|
+
"@->contentpath": "md_1"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
26
|
+
"@->value": {
|
|
27
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
28
|
+
"@->contentpath": "event"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserEvent",
|
|
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.teaserImage",
|
|
19
|
+
"@->value": {
|
|
20
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
21
|
+
"@->contentpath": "md_1"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
26
|
+
"@->value": {
|
|
27
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
28
|
+
"@->contentpath": "event"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"@->contentpath": "logicItem.includeModel.moreThenOneEvent",
|
|
33
|
+
"@->value": "true"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserEvent",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includeModel.teaserSize",
|
|
7
|
+
"@->value": "100"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.displayTeaserBodyAsImageOverlay",
|
|
11
|
+
"@->value": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
15
|
+
"@->value": {
|
|
16
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
17
|
+
"@->contentpath": "event"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@->jsoninclude": "teaser/teasers.inc.json",
|
|
3
|
+
"@->contentpath": "teaserEvent",
|
|
4
|
+
"@->overrides": [
|
|
5
|
+
{
|
|
6
|
+
"@->contentpath": "logicItem.includeModel.teaserSize",
|
|
7
|
+
"@->value": "100"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"@->contentpath": "logicItem.includeModel.displayTeaserBodyAsImageOverlay",
|
|
11
|
+
"@->value": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"@->contentpath": "logicItem.includeModel.label",
|
|
15
|
+
"@->value": {
|
|
16
|
+
"@->jsoninclude": "teaser/teaser_labels.inc.json",
|
|
17
|
+
"@->contentpath": "event"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"@->contentpath": "logicItem.includeModel.moreThenOneEvent",
|
|
22
|
+
"@->value": "true"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|