@designcrowd/library.brand-page 5.15.6 → 5.15.8
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-DananZ7O.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DY3bPXtI.js → CreatedOnBrandCrowd-en-us-B5TCZLJU.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-C6PKONMO.js → CreatedOnBrandCrowd-es-es-zw-oE6vZ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-3TnrVeqQ.js → CreatedOnBrandCrowd-fr-ca-CIn849gM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-3TnrVeqQ.js → CreatedOnBrandCrowd-fr-fr-CIn849gM.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-CmdhjNhY.js → CreatedOnBrandCrowd-pt-br-4__DyYF0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-CmdhjNhY.js → CreatedOnBrandCrowd-pt-pt-4__DyYF0.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-aEFpuUMs.js → CreatedOnDcom-de-de-DVi5nidB.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-CgdLgAE-.js → CreatedOnDcom-en-us-CnEgKfr9.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BWhFpoSM.js → CreatedOnDcom-es-es-CxjrdaLG.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Bo7o80t4.js → CreatedOnDcom-fr-ca-BTc2--67.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BvGigv3L.js → CreatedOnDcom-fr-fr-CXPv26w1.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-RBDZ7UHy.js → CreatedOnDcom-pt-br-DqrtGI2M.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-Bug8rNRV.js → CreatedOnDcom-pt-pt-BuR6EcQc.js} +1 -1
- package/lib/src/brand-page/components/page-footer/PageFooter.mixin.d.ts +13 -1
- 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 +13 -1
- 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-BbYOKZgE.js} +2584 -2558
- 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 +2 -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
|
+
:is-mobile="isMobile"
|
|
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
|
+
:is-mobile="isMobile"
|
|
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
|
+
:is-mobile="isMobile"
|
|
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
|
+
:is-mobile="isMobile"
|
|
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
|
+
isMobile: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
required: false,
|
|
133
|
+
default: false,
|
|
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.isMobile) {
|
|
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
|
+
isMobile?: boolean;
|
|
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.isMobile) {
|
|
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
|
? {
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
}"
|
|
53
53
|
@open-side-menu="openSideMenu"
|
|
54
54
|
@header-container-click="onPageHeaderContainerClick"
|
|
55
|
+
is-mobile="true"
|
|
55
56
|
/>
|
|
56
57
|
</template>
|
|
57
58
|
</MediaQuery>
|
|
@@ -212,6 +213,7 @@
|
|
|
212
213
|
:show-brand-crowd-logo="showBrandCrowdLogo"
|
|
213
214
|
@footer-container-click="onPageFooterContainerClick"
|
|
214
215
|
@on-logo-click="onLogoClick"
|
|
216
|
+
is-mobile="true"
|
|
215
217
|
/>
|
|
216
218
|
</template>
|
|
217
219
|
</MediaQuery>
|
|
@@ -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
|
+
isMobile: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
required: false,
|
|
25
|
+
default: false,
|
|
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
|
+
isMobile: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
required: false,
|
|
24
|
+
default: false,
|
|
25
|
+
},
|
|
21
26
|
},
|
|
22
27
|
data: function () {
|
|
23
28
|
return {
|