@designcrowd/library.brand-page 5.15.6 → 5.15.7
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/lib/src/{CreatedOnBrandCrowd-de-de-58ejlewn.js → CreatedOnBrandCrowd-de-de-Dxl7b9V_.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DY3bPXtI.js → CreatedOnBrandCrowd-en-us-CEoIeAOI.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-C6PKONMO.js → CreatedOnBrandCrowd-es-es-DL9xtWpJ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-3TnrVeqQ.js → CreatedOnBrandCrowd-fr-ca-BJ__NUm8.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-3TnrVeqQ.js → CreatedOnBrandCrowd-fr-fr-BJ__NUm8.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CmdhjNhY.js → CreatedOnBrandCrowd-pt-br-NbMBfyBa.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CmdhjNhY.js → CreatedOnBrandCrowd-pt-pt-NbMBfyBa.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-aEFpuUMs.js → CreatedOnDcom-de-de-BlK-NeP_.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CgdLgAE-.js → CreatedOnDcom-en-us-BGAYF0EZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BWhFpoSM.js → CreatedOnDcom-es-es-BB2kXsQh.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Bo7o80t4.js → CreatedOnDcom-fr-ca-g8XVHBzq.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BvGigv3L.js → CreatedOnDcom-fr-fr--t1jyGv8.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-RBDZ7UHy.js → CreatedOnDcom-pt-br-CyVpuXts.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Bug8rNRV.js → CreatedOnDcom-pt-pt-OoWc5iXY.js} +1 -1
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +14 -2
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.js +5 -0
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.d.ts +14 -2
- package/lib/src/brand-page/components/page-header/PageHeader.mixin.js +5 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +27 -27
- package/lib/src/css/library.brand-page-brandPage.min.css +27 -27
- package/lib/src/css/library.brand-page-designCom.min.css +27 -27
- package/lib/src/css/library.brand-page-preview.min.css +27 -27
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-C5OPdyX-.js → lib-CpmXOBrP.js} +2588 -2560
- package/package.json +1 -1
- package/src/brand-page/components/logo/Logo.vue +24 -2
- package/src/brand-page/components/logo/LogoRender.vue +16 -1
- package/src/brand-page/components/page/Page.vue +4 -0
- package/src/brand-page/components/page-footer/PageFooter.mixin.ts +6 -1
- package/src/brand-page/components/page-footer/PageFooter.vue +1 -0
- package/src/brand-page/components/page-header/PageHeader.mixin.ts +6 -1
- package/src/brand-page/components/page-header/PageHeader.vue +1 -0
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
? {
|
|
10
10
|
margin: 'var(--logo-spacing) 0',
|
|
11
11
|
height: viewModel?.logoImageHeight || DEFAULT_LOGO_HEIGHT,
|
|
12
|
+
maxWidth: logoMaxWidth,
|
|
12
13
|
}
|
|
13
14
|
: {}),
|
|
14
15
|
}
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
:has-margin-bottom="hasMarginBottom"
|
|
36
37
|
:alt-text="altText"
|
|
37
38
|
:view-model="viewModel"
|
|
39
|
+
:viewport="viewport"
|
|
38
40
|
/>
|
|
39
41
|
</LazyHydrationWrapper>
|
|
40
42
|
<LogoRender
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
:has-margin-bottom="hasMarginBottom"
|
|
49
51
|
:alt-text="altText"
|
|
50
52
|
:view-model="viewModel"
|
|
53
|
+
:viewport="viewport"
|
|
51
54
|
/>
|
|
52
55
|
</router-link>
|
|
53
56
|
</div>
|
|
@@ -68,6 +71,7 @@
|
|
|
68
71
|
:is-brand-page-or-is-brand-contact="
|
|
69
72
|
context.isBrandPageOrIsBrandContact
|
|
70
73
|
"
|
|
74
|
+
:viewport="viewport"
|
|
71
75
|
/>
|
|
72
76
|
</LazyHydrationWrapper>
|
|
73
77
|
<LogoRender
|
|
@@ -79,6 +83,7 @@
|
|
|
79
83
|
:has-margin-bottom="hasMarginBottom"
|
|
80
84
|
:alt-text="altText"
|
|
81
85
|
:view-model="viewModel"
|
|
86
|
+
:viewport="viewport"
|
|
82
87
|
/>
|
|
83
88
|
</template>
|
|
84
89
|
</div>
|
|
@@ -87,13 +92,17 @@
|
|
|
87
92
|
import LogoRender from './LogoRender.vue';
|
|
88
93
|
import { type PropType, computed } from 'vue';
|
|
89
94
|
import type { LogoViewModel } from '../../view-models';
|
|
90
|
-
import type { BrandPageContext } from '../../models';
|
|
95
|
+
import type { BrandPageContext, ViewportsType } from '../../models';
|
|
91
96
|
import {
|
|
92
97
|
getRouteNameByPageIndex,
|
|
93
98
|
getRouteParamsByPage,
|
|
94
99
|
} from '../../utils/route.util';
|
|
95
100
|
import { LazyHydrationWrapper } from 'vue3-lazy-hydration';
|
|
96
|
-
import {
|
|
101
|
+
import {
|
|
102
|
+
DEFAULT_LOGO_HEIGHT,
|
|
103
|
+
LOGO_SLIDER_DESKTOP_MAX,
|
|
104
|
+
LOGO_SLIDER_MOBILE_MAX,
|
|
105
|
+
} from '../../constants';
|
|
97
106
|
|
|
98
107
|
const props = defineProps({
|
|
99
108
|
isPreview: {
|
|
@@ -118,12 +127,25 @@ const props = defineProps({
|
|
|
118
127
|
type: Boolean,
|
|
119
128
|
required: false,
|
|
120
129
|
},
|
|
130
|
+
viewport: {
|
|
131
|
+
type: String as PropType<ViewportsType>,
|
|
132
|
+
required: false,
|
|
133
|
+
default: undefined,
|
|
134
|
+
},
|
|
121
135
|
});
|
|
122
136
|
|
|
123
137
|
const altText = computed(() =>
|
|
124
138
|
props.context.pageTitle ? `${props.context.pageTitle}'s logo` : 'logo',
|
|
125
139
|
);
|
|
126
140
|
|
|
141
|
+
const logoMaxWidth = computed(() => {
|
|
142
|
+
if (props.viewport === 'mobile') {
|
|
143
|
+
return `${LOGO_SLIDER_MOBILE_MAX}rem`;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return `${LOGO_SLIDER_DESKTOP_MAX}rem`;
|
|
147
|
+
});
|
|
148
|
+
|
|
127
149
|
const routes = computed(
|
|
128
150
|
() =>
|
|
129
151
|
props.context.pages?.map((p, i) => {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
? {
|
|
20
20
|
margin: 'var(--logo-spacing) auto',
|
|
21
21
|
height: `${viewModel?.logoImageHeight || DEFAULT_LOGO_HEIGHT}`,
|
|
22
|
+
maxWidth: logoMaxWidth,
|
|
22
23
|
}
|
|
23
24
|
: {
|
|
24
25
|
height: '100%',
|
|
@@ -42,7 +43,13 @@
|
|
|
42
43
|
import { computed, ref, watch, onServerPrefetch, onMounted } from 'vue';
|
|
43
44
|
import type { LogoViewModel } from '../../view-models';
|
|
44
45
|
import { LogoCacheRepository } from '../../repositories';
|
|
45
|
-
import {
|
|
46
|
+
import {
|
|
47
|
+
DEFAULT_LOGO_HEIGHT,
|
|
48
|
+
DEFAULT_LOGO_WIDTH,
|
|
49
|
+
LOGO_SLIDER_DESKTOP_MAX,
|
|
50
|
+
LOGO_SLIDER_MOBILE_MAX,
|
|
51
|
+
} from '../../constants';
|
|
52
|
+
import type { ViewportsType } from '../../models';
|
|
46
53
|
|
|
47
54
|
const props = withDefaults(
|
|
48
55
|
defineProps<{
|
|
@@ -53,6 +60,7 @@ const props = withDefaults(
|
|
|
53
60
|
isBrandPageOrIsBrandContact: boolean;
|
|
54
61
|
viewModel?: LogoViewModel;
|
|
55
62
|
altText: string;
|
|
63
|
+
viewport?: ViewportsType;
|
|
56
64
|
}>(),
|
|
57
65
|
{
|
|
58
66
|
isPreview: false,
|
|
@@ -99,6 +107,13 @@ const logoWidth = computed(() => {
|
|
|
99
107
|
return props.viewModel?.logoImageWidth || DEFAULT_LOGO_WIDTH;
|
|
100
108
|
});
|
|
101
109
|
|
|
110
|
+
const logoMaxWidth = computed(() => {
|
|
111
|
+
if (props.viewport === 'mobile') {
|
|
112
|
+
return `${LOGO_SLIDER_MOBILE_MAX}rem`;
|
|
113
|
+
}
|
|
114
|
+
return `${LOGO_SLIDER_DESKTOP_MAX}rem`;
|
|
115
|
+
});
|
|
116
|
+
|
|
102
117
|
const logoStyle = computed(() => {
|
|
103
118
|
return props.viewModel?.useOldLogoRenderSize
|
|
104
119
|
? {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
<PageHeader
|
|
33
33
|
nav-id="nav-1"
|
|
34
34
|
:view-model="viewModel.headerViewModelDesktop"
|
|
35
|
+
:viewport="viewport"
|
|
35
36
|
:context="context"
|
|
36
37
|
:class="{
|
|
37
38
|
'tw-cursor-pointer': context.isPreview,
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
<PageHeader
|
|
46
47
|
nav-id="nav-2"
|
|
47
48
|
:view-model="viewModel.headerViewModelMobile"
|
|
49
|
+
:viewport="viewport"
|
|
48
50
|
:context="context"
|
|
49
51
|
:class="{
|
|
50
52
|
'tw-cursor-pointer': context.isPreview,
|
|
@@ -189,6 +191,7 @@
|
|
|
189
191
|
<template #desktop>
|
|
190
192
|
<PageFooter
|
|
191
193
|
:view-model="viewModel.footerViewModelDesktop"
|
|
194
|
+
:viewport="viewport"
|
|
192
195
|
:context="context"
|
|
193
196
|
:class="{
|
|
194
197
|
'tw-cursor-pointer': context.isPreview,
|
|
@@ -203,6 +206,7 @@
|
|
|
203
206
|
<template #mobile>
|
|
204
207
|
<PageFooter
|
|
205
208
|
:view-model="viewModel.footerViewModelMobile"
|
|
209
|
+
:viewport="viewport"
|
|
206
210
|
:context="context"
|
|
207
211
|
:class="{
|
|
208
212
|
'tw-cursor-pointer': context.isPreview,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import type { PageFooterViewModel } from '../../view-models';
|
|
3
3
|
import type { PropType } from 'vue';
|
|
4
|
-
import type { BrandPageContext } from '../../models';
|
|
4
|
+
import type { BrandPageContext, ViewportsType } from '../../models';
|
|
5
5
|
import { getRenderText } from '../../utils';
|
|
6
6
|
import { FOOTER_DISPLAY } from '../../constants';
|
|
7
7
|
|
|
@@ -19,6 +19,11 @@ export default defineComponent({
|
|
|
19
19
|
type: Boolean,
|
|
20
20
|
required: true,
|
|
21
21
|
},
|
|
22
|
+
viewport: {
|
|
23
|
+
type: String as PropType<ViewportsType>,
|
|
24
|
+
required: false,
|
|
25
|
+
default: undefined,
|
|
26
|
+
},
|
|
22
27
|
},
|
|
23
28
|
emits: ['on-logo-click', 'footer-container-click'],
|
|
24
29
|
computed: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
import type { BrandPageContext } from '../../models';
|
|
3
|
+
import type { BrandPageContext, ViewportsType } from '../../models';
|
|
4
4
|
import type { PageHeaderViewModel } from '../../view-models';
|
|
5
5
|
import { LOGO_SLIDER_DESKTOP_MAX } from '../../constants';
|
|
6
6
|
|
|
@@ -18,6 +18,11 @@ export default defineComponent({
|
|
|
18
18
|
type: Object as PropType<BrandPageContext>,
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
|
+
viewport: {
|
|
22
|
+
type: String as PropType<ViewportsType>,
|
|
23
|
+
required: false,
|
|
24
|
+
default: undefined,
|
|
25
|
+
},
|
|
21
26
|
},
|
|
22
27
|
data: function () {
|
|
23
28
|
return {
|