hr-design-system-handlebars 1.59.13 → 1.59.15
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 +25 -0
- package/dist/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr1/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr2/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr3/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr4/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/you-fm/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/you-fm/icons/logo/svgmap.min.svg +1 -1
- package/dist/assets/icons/icons/svgmap/copy-ds.svg +21 -0
- package/dist/assets/icons/icons/svgmap.min.svg +1 -1
- package/dist/assets/index.css +28 -6
- package/dist/views/components/page/index/page_offline.hbs +58 -0
- package/dist/views/components/site_header/offline_header.hbs +33 -0
- package/dist/views/components/social_sharing/social_sharing_compact.hbs +14 -5
- package/dist/views/components/social_sharing/social_sharing_compact_icons.hbs +10 -10
- package/dist/views_static/components/page/index/page_offline.hbs +58 -0
- package/dist/views_static/components/site_header/offline_header.hbs +33 -0
- package/dist/views_static/components/social_sharing/social_sharing_compact.hbs +14 -5
- package/dist/views_static/components/social_sharing/social_sharing_compact_icons.hbs +10 -10
- 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/brand/you-fm/icons/logo/svgmap.min.svg +1 -1
- package/src/assets/icons/icons/svgmap/copy-ds.svg +21 -0
- package/src/assets/icons/icons/svgmap.min.svg +1 -1
- package/src/stories/views/components/page/index/page_offline.hbs +58 -0
- package/src/stories/views/components/page/index/page_offline.stories.js +32 -0
- package/src/stories/views/components/site_header/offline_header.hbs +33 -0
- package/src/stories/views/components/social_sharing/social_sharing_compact.hbs +14 -5
- package/src/stories/views/components/social_sharing/social_sharing_compact_icons.hbs +10 -10
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import page from './page_offline.hbs'
|
|
2
|
+
|
|
3
|
+
const Template = (args, { globals: { theme } }) => {
|
|
4
|
+
// You can either use a function to create DOM elements or use a plain html string!
|
|
5
|
+
// return `<div>${label}</div>`;
|
|
6
|
+
let brand = undefined !== theme ? theme : 'hessenschau'
|
|
7
|
+
return page({ brand, ...args })
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Seiten/Offline',
|
|
12
|
+
argTypes: {},
|
|
13
|
+
|
|
14
|
+
parameters: {
|
|
15
|
+
chromatic: {
|
|
16
|
+
viewports: [360, 768, 1024],
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
layout: 'fullscreen',
|
|
20
|
+
|
|
21
|
+
docs: {
|
|
22
|
+
inlineStories: false,
|
|
23
|
+
iframeHeight: 400,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const Default = {
|
|
29
|
+
render: Template.bind({}),
|
|
30
|
+
name: 'Offline Page',
|
|
31
|
+
args: {},
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div class="sb-main-navigation" x-data="mainNavigationHandler()" x-init="{{#if _useSticky}}start(){{/if}}">
|
|
2
|
+
<header class="print:hidden relative z-110 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
|
|
3
|
+
<div x-data
|
|
4
|
+
id="headerWrapper"
|
|
5
|
+
@resize.window="resetNav()"
|
|
6
|
+
:class="shouldBrandNavBeHidden() ? '-mt-[33px] md:-mt-[33px]' : '' "
|
|
7
|
+
class="{{#if _useSticky }}fixed top-0 left-0{{/if}} flex flex-wrap max-w-full transition-all duration-500 transform font-copy lg:justify-center lg:w-full ">
|
|
8
|
+
|
|
9
|
+
<div id="serviceNavWrapper"
|
|
10
|
+
:class="shouldServiceNavBeHidden() ? '-mt-40' : ''"
|
|
11
|
+
|
|
12
|
+
class="relative flex justify-center order-2 w-full transition-[margin-top] duration-250 ease-in-out border-b border-servicenavigation-border-color bg-navigation-bg z-120">
|
|
13
|
+
<div id="serviceNavMainContainer"
|
|
14
|
+
class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-110">
|
|
15
|
+
|
|
16
|
+
<span id="serviceNavHeadline" class="hidden print:hidden">Service Navigation</span>
|
|
17
|
+
|
|
18
|
+
<div id="serviceLogoWrapper"
|
|
19
|
+
class="flex items-center order-1 w-full pl-4 pr-2 tablet:pl-5 bg-navigation-bg md:px-0 md:h-12 lg:h-16 md:w-1/2 md:max-w-1/2 lg:w-1/4 lg:max-w-1/4">
|
|
20
|
+
{{> components/site_header/service_logo _useSticky=_useSticky}}
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</header>
|
|
27
|
+
<div class="justify-center hidden w-full scale-50 brand-logo_print print:flex">
|
|
28
|
+
<img loading="lazy"
|
|
29
|
+
alt="{{loca "header_homepage_link_title"}}"
|
|
30
|
+
src="{{resourceUrl "assets/base/icons/rsslogo/brandlogo--rss.jpg" _brand=(if this.brand this.brand)}}"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<div x-data="{
|
|
2
2
|
open: false,
|
|
3
3
|
sharingIsVisible: true,
|
|
4
|
+
isDesktop: true,
|
|
4
5
|
toggle() {
|
|
5
6
|
var isMobileApple = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i);
|
|
6
7
|
var isMobileOther= navigator.userAgent.match(/(Android)|(webOS)|(Blackberry)|(Windows Phone)/i);
|
|
@@ -28,8 +29,13 @@
|
|
|
28
29
|
this.open = false
|
|
29
30
|
|
|
30
31
|
focusAfter && focusAfter.focus()
|
|
32
|
+
},
|
|
33
|
+
checkIfDesktop() {
|
|
34
|
+
this.isDesktop = (window.innerWidth >= 768) ? true : false
|
|
31
35
|
}
|
|
32
36
|
}"
|
|
37
|
+
x-init = "checkIfDesktop()"
|
|
38
|
+
x-on:resize.window = "checkIfDesktop()"
|
|
33
39
|
x-on:keydown.escape.prevent.stop="close($refs.button)"
|
|
34
40
|
x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
|
|
35
41
|
x-id="['dropdown-button']"
|
|
@@ -37,13 +43,17 @@
|
|
|
37
43
|
x-intersect:leave="sharingIsVisible = false"
|
|
38
44
|
x-intersect:enter="sharingIsVisible = true"
|
|
39
45
|
>
|
|
40
|
-
<div
|
|
46
|
+
<div class="fixed left-1 top-1">
|
|
47
|
+
sharingIsVisible:<span x-text="sharingIsVisible" ></span><br>
|
|
48
|
+
open:<span x-text="open" ></span><br>
|
|
49
|
+
isDesktop:<span x-text="isDesktop" ></span>
|
|
50
|
+
</div>
|
|
41
51
|
<div :class="{ 'grid grid-page z-100 fixed bottom-feature-box-height left-0 w-full': !sharingIsVisible }">
|
|
42
52
|
<div class="" :class="{ 'flex justify-start col-full sm:col-main relative': !sharingIsVisible }">
|
|
43
|
-
<div class="flex gap-3" :class="{ 'bottom-5 left-
|
|
53
|
+
<div class="flex gap-3" :class="{ 'bottom-5 -left-8 flex-col absolute bg-white': !sharingIsVisible }">
|
|
44
54
|
<button
|
|
45
55
|
class="order-2 w-8 h-8 ds-button font-heading active:scale-95 hover:scale-105 group"
|
|
46
|
-
|
|
56
|
+
x-show="!isDesktop"
|
|
47
57
|
x-ref="button"
|
|
48
58
|
x-on:click="toggle()"
|
|
49
59
|
:aria-expanded="open"
|
|
@@ -55,11 +65,10 @@
|
|
|
55
65
|
<!-- Panel -->
|
|
56
66
|
<div
|
|
57
67
|
x-ref="panel"
|
|
58
|
-
x-show="open"
|
|
68
|
+
x-show="open || isDesktop"
|
|
59
69
|
x-transition.origin.right
|
|
60
70
|
x-on:click.outside="close($refs.button)"
|
|
61
71
|
:id="$id('dropdown-button')"
|
|
62
|
-
style="display: none;"
|
|
63
72
|
class="bg-white"
|
|
64
73
|
>
|
|
65
74
|
<ul class="flex gap-3" :class="{ 'flex-col': ! sharingIsVisible }">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<li>
|
|
2
2
|
<a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
href="{{this}}"
|
|
5
5
|
target="_blank"
|
|
6
6
|
rel="noopener noreferrer"
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::X"}]}'
|
|
10
10
|
{{/with}}
|
|
11
11
|
>
|
|
12
|
-
{{~> components/base/image/icon _addClass="w-full h-full fill-[#0f1419] " _icon="x" _iconmap="icons" ~}}
|
|
12
|
+
{{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-[#0f1419] " _icon="x-ds" _iconmap="icons" ~}}
|
|
13
13
|
</a>
|
|
14
14
|
</li>
|
|
15
15
|
<li class="">
|
|
16
16
|
<a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
href="{{this}}"
|
|
19
19
|
target="_blank"
|
|
20
20
|
rel="noopener noreferrer"
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::facebook"}]}'
|
|
24
24
|
{{/with}}
|
|
25
25
|
>
|
|
26
|
-
{{~> components/base/image/icon _addClass="w-full h-full fill-[#3b5999] " _icon="facebook" _iconmap="icons" ~}}
|
|
26
|
+
{{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-[#3b5999] " _icon="facebook-ds" _iconmap="icons" ~}}
|
|
27
27
|
</a>
|
|
28
28
|
</li>
|
|
29
29
|
<li class="">
|
|
30
30
|
<a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
href="{{this}}"
|
|
33
33
|
target="_blank"
|
|
34
34
|
rel="noopener noreferrer"
|
|
@@ -37,30 +37,30 @@
|
|
|
37
37
|
data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::whatsapp"}]}'
|
|
38
38
|
{{/with}}
|
|
39
39
|
>
|
|
40
|
-
{{~> components/base/image/icon _addClass="w-full h-full fill-[#4dc247] " _icon="whatsapp" _iconmap="icons" ~}}
|
|
40
|
+
{{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-[#4dc247] " _icon="whatsapp-ds" _iconmap="icons" ~}}
|
|
41
41
|
</a>
|
|
42
42
|
</li>
|
|
43
43
|
<li class="">
|
|
44
44
|
<a class="{{#with ../../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
href="{{this}}"
|
|
47
47
|
title="{{loca "share_mail_linktitle" }}"
|
|
48
48
|
{{#with ../../this.content.trackingData}}
|
|
49
49
|
data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::mailto"}]}'
|
|
50
50
|
{{/with}}
|
|
51
51
|
>
|
|
52
|
-
{{~> components/base/image/icon _addClass="w-full h-full fill-
|
|
52
|
+
{{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-black " _icon="kontakt-ds" _iconmap="icons" ~}}
|
|
53
53
|
</a>
|
|
54
54
|
</li>
|
|
55
55
|
<li class="">
|
|
56
56
|
<a class="{{#with ../this.content.trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
href="javascript:window.print()"
|
|
59
59
|
title="{{loca "share_print_linktitle" }}"
|
|
60
60
|
{{#with ../this.content.trackingData}}
|
|
61
61
|
data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::printbutton"}]}'
|
|
62
62
|
{{/with}}
|
|
63
63
|
>
|
|
64
|
-
{{~> components/base/image/icon _addClass="w-full h-full fill-
|
|
64
|
+
{{~> components/base/image/icon _addClass="w-full h-full fill-link hover:fill-link-dark " _icon="copy-ds" _iconmap="icons" ~}}
|
|
65
65
|
</a>
|
|
66
66
|
</li>
|