@dcodegroup-au/page-builder 0.8.1 → 0.8.2
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/dist/page-builder.css +24 -15
- package/dist/page-builder.es.js +18 -14
- package/dist/page-builder.umd.js +18 -14
- package/example/src/pages/AboutUs.js +2 -2
- package/package.json +1 -1
- package/src/components/presenters/components/SliderPresenter.vue +6 -6
- package/src/components/presenters/modules/BulletPoints.vue +8 -5
- package/src/components/presenters/modules/TwoColumnsImageContent.vue +3 -3
package/dist/page-builder.css
CHANGED
|
@@ -894,6 +894,9 @@ select {
|
|
|
894
894
|
.mt-6 {
|
|
895
895
|
margin-top: 1.5rem;
|
|
896
896
|
}
|
|
897
|
+
.mt-7 {
|
|
898
|
+
margin-top: 1.75rem;
|
|
899
|
+
}
|
|
897
900
|
.mt-8 {
|
|
898
901
|
margin-top: 2rem;
|
|
899
902
|
}
|
|
@@ -915,12 +918,6 @@ select {
|
|
|
915
918
|
-webkit-box-orient: vertical;
|
|
916
919
|
-webkit-line-clamp: 4;
|
|
917
920
|
}
|
|
918
|
-
.line-clamp-6 {
|
|
919
|
-
overflow: hidden;
|
|
920
|
-
display: -webkit-box;
|
|
921
|
-
-webkit-box-orient: vertical;
|
|
922
|
-
-webkit-line-clamp: 6;
|
|
923
|
-
}
|
|
924
921
|
.\!block {
|
|
925
922
|
display: block !important;
|
|
926
923
|
}
|
|
@@ -1020,12 +1017,12 @@ select {
|
|
|
1020
1017
|
.h-\[48px\] {
|
|
1021
1018
|
height: 48px;
|
|
1022
1019
|
}
|
|
1020
|
+
.h-\[494px\] {
|
|
1021
|
+
height: 494px;
|
|
1022
|
+
}
|
|
1023
1023
|
.h-\[56px\] {
|
|
1024
1024
|
height: 56px;
|
|
1025
1025
|
}
|
|
1026
|
-
.h-\[614px\] {
|
|
1027
|
-
height: 614px;
|
|
1028
|
-
}
|
|
1029
1026
|
.h-\[674px\] {
|
|
1030
1027
|
height: 674px;
|
|
1031
1028
|
}
|
|
@@ -1388,6 +1385,9 @@ select {
|
|
|
1388
1385
|
.rounded-\[20px\] {
|
|
1389
1386
|
border-radius: 20px;
|
|
1390
1387
|
}
|
|
1388
|
+
.rounded-\[24px\] {
|
|
1389
|
+
border-radius: 24px;
|
|
1390
|
+
}
|
|
1391
1391
|
.rounded-\[6px\] {
|
|
1392
1392
|
border-radius: 6px;
|
|
1393
1393
|
}
|
|
@@ -2956,6 +2956,10 @@ select {
|
|
|
2956
2956
|
|
|
2957
2957
|
@media not all and (min-width: 1024px) {
|
|
2958
2958
|
|
|
2959
|
+
.max-lg\:absolute {
|
|
2960
|
+
position: absolute;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2959
2963
|
.max-lg\:hidden {
|
|
2960
2964
|
display: none;
|
|
2961
2965
|
}
|
|
@@ -2975,6 +2979,10 @@ select {
|
|
|
2975
2979
|
.max-lg\:pb-6 {
|
|
2976
2980
|
padding-bottom: 1.5rem;
|
|
2977
2981
|
}
|
|
2982
|
+
|
|
2983
|
+
.max-lg\:pt-\[55\%\] {
|
|
2984
|
+
padding-top: 55%;
|
|
2985
|
+
}
|
|
2978
2986
|
}
|
|
2979
2987
|
|
|
2980
2988
|
@media not all and (min-width: 768px) {
|
|
@@ -3023,10 +3031,6 @@ select {
|
|
|
3023
3031
|
grid-template-columns: auto 20px;
|
|
3024
3032
|
}
|
|
3025
3033
|
|
|
3026
|
-
.max-sm\:flex-col {
|
|
3027
|
-
flex-direction: column;
|
|
3028
|
-
}
|
|
3029
|
-
|
|
3030
3034
|
.max-sm\:rounded-lg {
|
|
3031
3035
|
border-radius: 0.5rem;
|
|
3032
3036
|
}
|
|
@@ -3112,6 +3116,11 @@ select {
|
|
|
3112
3116
|
padding-right: 1rem;
|
|
3113
3117
|
}
|
|
3114
3118
|
|
|
3119
|
+
.sm\:px-6 {
|
|
3120
|
+
padding-left: 1.5rem;
|
|
3121
|
+
padding-right: 1.5rem;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3115
3124
|
.sm\:py-4 {
|
|
3116
3125
|
padding-top: 1rem;
|
|
3117
3126
|
padding-bottom: 1rem;
|
|
@@ -3871,12 +3880,12 @@ select {
|
|
|
3871
3880
|
}
|
|
3872
3881
|
|
|
3873
3882
|
|
|
3874
|
-
.carousel[data-v-
|
|
3883
|
+
.carousel[data-v-37e27419] {
|
|
3875
3884
|
margin: 1rem 0;
|
|
3876
3885
|
flex-direction: column;
|
|
3877
3886
|
}
|
|
3878
3887
|
@media not all and (min-width: 1024px) {
|
|
3879
|
-
[data-v-
|
|
3888
|
+
[data-v-37e27419] .carousel__slide {
|
|
3880
3889
|
flex-direction: column;
|
|
3881
3890
|
}
|
|
3882
3891
|
}
|
package/dist/page-builder.es.js
CHANGED
|
@@ -47848,15 +47848,15 @@ const Slide = defineComponent({
|
|
|
47848
47848
|
};
|
|
47849
47849
|
}
|
|
47850
47850
|
});
|
|
47851
|
-
const _hoisted_1$M = { class: "flex h-[
|
|
47851
|
+
const _hoisted_1$M = { class: "flex h-[494px] sm:h-[550px] md:h-[806px] lg:h-[872px] w-full bg-navy-800 relative rounded-[24px] lg:rounded-[48px] z-10" };
|
|
47852
47852
|
const _hoisted_2$m = { class: "flex-1 lg:p-8 px-4 lg:py-4 flex max-lg:flex-col-reverse relative w-full" };
|
|
47853
|
-
const _hoisted_3$j = { class: "flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-
|
|
47853
|
+
const _hoisted_3$j = { class: "flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-7 sm:mt-14 lg:mt-[218px]" };
|
|
47854
47854
|
const _hoisted_4$j = { class: "gap-2 flex z-10 mb-4" };
|
|
47855
47855
|
const _hoisted_5$i = ["onClick"];
|
|
47856
47856
|
const _hoisted_6$i = { class: "text-[30px] lg:text-[48px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]" };
|
|
47857
47857
|
const _hoisted_7$h = { class: "max-md:flex-1" };
|
|
47858
47858
|
const _hoisted_8$g = ["innerHTML"];
|
|
47859
|
-
const _hoisted_9$g = { class: "flex gap-3 md:mt-8
|
|
47859
|
+
const _hoisted_9$g = { class: "flex gap-3 mt-4 md:mt-8" };
|
|
47860
47860
|
const _hoisted_10$c = ["href", "target"];
|
|
47861
47861
|
const _hoisted_11$a = ["href", "target"];
|
|
47862
47862
|
const _hoisted_12$8 = ["src"];
|
|
@@ -47905,14 +47905,14 @@ const _sfc_main$s = {
|
|
|
47905
47905
|
createElementVNode("h3", _hoisted_6$i, toDisplayString(slide == null ? void 0 : slide.title), 1),
|
|
47906
47906
|
createElementVNode("div", _hoisted_7$h, [
|
|
47907
47907
|
createElementVNode("p", {
|
|
47908
|
-
class: "lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-
|
|
47908
|
+
class: "lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-4 sm:line-clamp-3",
|
|
47909
47909
|
innerHTML: slide == null ? void 0 : slide.description
|
|
47910
47910
|
}, null, 8, _hoisted_8$g)
|
|
47911
47911
|
]),
|
|
47912
47912
|
createElementVNode("div", _hoisted_9$g, [
|
|
47913
47913
|
slide.secondary_button.show ? (openBlock(), createElementBlock("a", {
|
|
47914
47914
|
key: 0,
|
|
47915
|
-
class: "text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",
|
|
47915
|
+
class: "text-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",
|
|
47916
47916
|
href: unref(formatUrl)(slide.secondary_button.url),
|
|
47917
47917
|
target: slide.secondary_button.open_in_new_tab ? "_blank" : ""
|
|
47918
47918
|
}, [
|
|
@@ -47920,7 +47920,7 @@ const _sfc_main$s = {
|
|
|
47920
47920
|
], 8, _hoisted_10$c)) : createCommentVNode("", true),
|
|
47921
47921
|
slide.primary_button.show ? (openBlock(), createElementBlock("a", {
|
|
47922
47922
|
key: 1,
|
|
47923
|
-
class: "flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",
|
|
47923
|
+
class: "flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-50",
|
|
47924
47924
|
href: unref(formatUrl)(slide.primary_button.url),
|
|
47925
47925
|
target: slide.primary_button.open_in_new_tab ? "_blank" : ""
|
|
47926
47926
|
}, [
|
|
@@ -47950,7 +47950,7 @@ const _sfc_main$s = {
|
|
|
47950
47950
|
};
|
|
47951
47951
|
}
|
|
47952
47952
|
};
|
|
47953
|
-
const VSliderPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
47953
|
+
const VSliderPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-37e27419"]]);
|
|
47954
47954
|
const _hoisted_1$L = ["target", "href"];
|
|
47955
47955
|
const _sfc_main$r = {
|
|
47956
47956
|
__name: "LinkPresenter",
|
|
@@ -49142,7 +49142,7 @@ const _hoisted_12$5 = ["href", "target"];
|
|
|
49142
49142
|
const _hoisted_13$5 = ["src"];
|
|
49143
49143
|
const _hoisted_14$4 = {
|
|
49144
49144
|
key: 0,
|
|
49145
|
-
class: "w-full md:w-[560px]
|
|
49145
|
+
class: "w-full md:w-[560px] rounded-br-[24px] rounded-tl-[24px] overflow-hidden relative max-lg:pt-[55%]"
|
|
49146
49146
|
};
|
|
49147
49147
|
const _hoisted_15$3 = ["src", "alt"];
|
|
49148
49148
|
const _sfc_main$d = {
|
|
@@ -49270,7 +49270,7 @@ const _sfc_main$d = {
|
|
|
49270
49270
|
createElementVNode("img", {
|
|
49271
49271
|
src: imageComponent.value.featured_image,
|
|
49272
49272
|
alt: ((_d = imageComponent.value) == null ? void 0 : _d.caption) ?? "Image",
|
|
49273
|
-
class: "
|
|
49273
|
+
class: "w-full h-full object-cover max-lg:absolute inset-0"
|
|
49274
49274
|
}, null, 8, _hoisted_15$3)
|
|
49275
49275
|
])) : createCommentVNode("", true)
|
|
49276
49276
|
], 2)
|
|
@@ -49643,14 +49643,18 @@ const _sfc_main$9 = {
|
|
|
49643
49643
|
createElementVNode("div", {
|
|
49644
49644
|
class: normalizeClass(["pb-container my-[40px]", { "flex gap-8 flex-col lg:flex-row": (_c = headerComponent.value) == null ? void 0 : _c.featured_image, "flex-col-reverse lg:flex-row-reverse justify-between": (_d = headerComponent.value) == null ? void 0 : _d.revert }])
|
|
49645
49645
|
}, [
|
|
49646
|
-
((_e = headerComponent.value) == null ? void 0 : _e.featured_image) ? (openBlock(), createElementBlock("
|
|
49646
|
+
((_e = headerComponent.value) == null ? void 0 : _e.featured_image) ? (openBlock(), createElementBlock("div", {
|
|
49647
49647
|
key: 0,
|
|
49648
|
-
src: (_f = headerComponent.value) == null ? void 0 : _f.featured_image,
|
|
49649
|
-
class: "lg:max-w-[480px] w-full object-cover rounded-xl md:rounded-3xl",
|
|
49650
49648
|
ref_key: "leftColumn",
|
|
49651
49649
|
ref: leftColumn,
|
|
49652
|
-
|
|
49653
|
-
},
|
|
49650
|
+
class: "w-full lg:max-w-[480px] rounded-xl md:rounded-3xl overflow-hidden shrink-0 relative max-lg:pt-[55%]"
|
|
49651
|
+
}, [
|
|
49652
|
+
createElementVNode("img", {
|
|
49653
|
+
src: (_f = headerComponent.value) == null ? void 0 : _f.featured_image,
|
|
49654
|
+
class: "w-full h-full object-cover max-lg:absolute inset-0",
|
|
49655
|
+
alt: "Feature"
|
|
49656
|
+
}, null, 8, _hoisted_2$8)
|
|
49657
|
+
], 512)) : createCommentVNode("", true),
|
|
49654
49658
|
headerComponent.value ? (openBlock(), createElementBlock("div", {
|
|
49655
49659
|
key: 1,
|
|
49656
49660
|
class: normalizeClass(["h-fit flex flex-col gap-4 lg:gap-8", { "xl:py-[48px]": (_g = headerComponent.value) == null ? void 0 : _g.featured_image, "[&]:grid lg:grid-cols-2": (_h = section.value) == null ? void 0 : _h.two_column }]),
|
package/dist/page-builder.umd.js
CHANGED
|
@@ -47851,15 +47851,15 @@ ${escapeText(this.code(index, length))}
|
|
|
47851
47851
|
};
|
|
47852
47852
|
}
|
|
47853
47853
|
});
|
|
47854
|
-
const _hoisted_1$M = { class: "flex h-[
|
|
47854
|
+
const _hoisted_1$M = { class: "flex h-[494px] sm:h-[550px] md:h-[806px] lg:h-[872px] w-full bg-navy-800 relative rounded-[24px] lg:rounded-[48px] z-10" };
|
|
47855
47855
|
const _hoisted_2$m = { class: "flex-1 lg:p-8 px-4 lg:py-4 flex max-lg:flex-col-reverse relative w-full" };
|
|
47856
|
-
const _hoisted_3$j = { class: "flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-
|
|
47856
|
+
const _hoisted_3$j = { class: "flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-7 sm:mt-14 lg:mt-[218px]" };
|
|
47857
47857
|
const _hoisted_4$j = { class: "gap-2 flex z-10 mb-4" };
|
|
47858
47858
|
const _hoisted_5$i = ["onClick"];
|
|
47859
47859
|
const _hoisted_6$i = { class: "text-[30px] lg:text-[48px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]" };
|
|
47860
47860
|
const _hoisted_7$h = { class: "max-md:flex-1" };
|
|
47861
47861
|
const _hoisted_8$g = ["innerHTML"];
|
|
47862
|
-
const _hoisted_9$g = { class: "flex gap-3 md:mt-8
|
|
47862
|
+
const _hoisted_9$g = { class: "flex gap-3 mt-4 md:mt-8" };
|
|
47863
47863
|
const _hoisted_10$c = ["href", "target"];
|
|
47864
47864
|
const _hoisted_11$a = ["href", "target"];
|
|
47865
47865
|
const _hoisted_12$8 = ["src"];
|
|
@@ -47908,14 +47908,14 @@ ${escapeText(this.code(index, length))}
|
|
|
47908
47908
|
vue.createElementVNode("h3", _hoisted_6$i, vue.toDisplayString(slide == null ? void 0 : slide.title), 1),
|
|
47909
47909
|
vue.createElementVNode("div", _hoisted_7$h, [
|
|
47910
47910
|
vue.createElementVNode("p", {
|
|
47911
|
-
class: "lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-
|
|
47911
|
+
class: "lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-4 sm:line-clamp-3",
|
|
47912
47912
|
innerHTML: slide == null ? void 0 : slide.description
|
|
47913
47913
|
}, null, 8, _hoisted_8$g)
|
|
47914
47914
|
]),
|
|
47915
47915
|
vue.createElementVNode("div", _hoisted_9$g, [
|
|
47916
47916
|
slide.secondary_button.show ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
47917
47917
|
key: 0,
|
|
47918
|
-
class: "text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",
|
|
47918
|
+
class: "text-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60",
|
|
47919
47919
|
href: vue.unref(formatUrl)(slide.secondary_button.url),
|
|
47920
47920
|
target: slide.secondary_button.open_in_new_tab ? "_blank" : ""
|
|
47921
47921
|
}, [
|
|
@@ -47923,7 +47923,7 @@ ${escapeText(this.code(index, length))}
|
|
|
47923
47923
|
], 8, _hoisted_10$c)) : vue.createCommentVNode("", true),
|
|
47924
47924
|
slide.primary_button.show ? (vue.openBlock(), vue.createElementBlock("a", {
|
|
47925
47925
|
key: 1,
|
|
47926
|
-
class: "flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50",
|
|
47926
|
+
class: "flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-50",
|
|
47927
47927
|
href: vue.unref(formatUrl)(slide.primary_button.url),
|
|
47928
47928
|
target: slide.primary_button.open_in_new_tab ? "_blank" : ""
|
|
47929
47929
|
}, [
|
|
@@ -47953,7 +47953,7 @@ ${escapeText(this.code(index, length))}
|
|
|
47953
47953
|
};
|
|
47954
47954
|
}
|
|
47955
47955
|
};
|
|
47956
|
-
const VSliderPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
47956
|
+
const VSliderPresenter = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-37e27419"]]);
|
|
47957
47957
|
const _hoisted_1$L = ["target", "href"];
|
|
47958
47958
|
const _sfc_main$r = {
|
|
47959
47959
|
__name: "LinkPresenter",
|
|
@@ -49145,7 +49145,7 @@ ${escapeText(this.code(index, length))}
|
|
|
49145
49145
|
const _hoisted_13$5 = ["src"];
|
|
49146
49146
|
const _hoisted_14$4 = {
|
|
49147
49147
|
key: 0,
|
|
49148
|
-
class: "w-full md:w-[560px]
|
|
49148
|
+
class: "w-full md:w-[560px] rounded-br-[24px] rounded-tl-[24px] overflow-hidden relative max-lg:pt-[55%]"
|
|
49149
49149
|
};
|
|
49150
49150
|
const _hoisted_15$3 = ["src", "alt"];
|
|
49151
49151
|
const _sfc_main$d = {
|
|
@@ -49273,7 +49273,7 @@ ${escapeText(this.code(index, length))}
|
|
|
49273
49273
|
vue.createElementVNode("img", {
|
|
49274
49274
|
src: imageComponent.value.featured_image,
|
|
49275
49275
|
alt: ((_d = imageComponent.value) == null ? void 0 : _d.caption) ?? "Image",
|
|
49276
|
-
class: "
|
|
49276
|
+
class: "w-full h-full object-cover max-lg:absolute inset-0"
|
|
49277
49277
|
}, null, 8, _hoisted_15$3)
|
|
49278
49278
|
])) : vue.createCommentVNode("", true)
|
|
49279
49279
|
], 2)
|
|
@@ -49646,14 +49646,18 @@ ${escapeText(this.code(index, length))}
|
|
|
49646
49646
|
vue.createElementVNode("div", {
|
|
49647
49647
|
class: vue.normalizeClass(["pb-container my-[40px]", { "flex gap-8 flex-col lg:flex-row": (_c = headerComponent.value) == null ? void 0 : _c.featured_image, "flex-col-reverse lg:flex-row-reverse justify-between": (_d = headerComponent.value) == null ? void 0 : _d.revert }])
|
|
49648
49648
|
}, [
|
|
49649
|
-
((_e = headerComponent.value) == null ? void 0 : _e.featured_image) ? (vue.openBlock(), vue.createElementBlock("
|
|
49649
|
+
((_e = headerComponent.value) == null ? void 0 : _e.featured_image) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
49650
49650
|
key: 0,
|
|
49651
|
-
src: (_f = headerComponent.value) == null ? void 0 : _f.featured_image,
|
|
49652
|
-
class: "lg:max-w-[480px] w-full object-cover rounded-xl md:rounded-3xl",
|
|
49653
49651
|
ref_key: "leftColumn",
|
|
49654
49652
|
ref: leftColumn,
|
|
49655
|
-
|
|
49656
|
-
},
|
|
49653
|
+
class: "w-full lg:max-w-[480px] rounded-xl md:rounded-3xl overflow-hidden shrink-0 relative max-lg:pt-[55%]"
|
|
49654
|
+
}, [
|
|
49655
|
+
vue.createElementVNode("img", {
|
|
49656
|
+
src: (_f = headerComponent.value) == null ? void 0 : _f.featured_image,
|
|
49657
|
+
class: "w-full h-full object-cover max-lg:absolute inset-0",
|
|
49658
|
+
alt: "Feature"
|
|
49659
|
+
}, null, 8, _hoisted_2$8)
|
|
49660
|
+
], 512)) : vue.createCommentVNode("", true),
|
|
49657
49661
|
headerComponent.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
49658
49662
|
key: 1,
|
|
49659
49663
|
class: vue.normalizeClass(["h-fit flex flex-col gap-4 lg:gap-8", { "xl:py-[48px]": (_g = headerComponent.value) == null ? void 0 : _g.featured_image, "[&]:grid lg:grid-cols-2": (_h = section.value) == null ? void 0 : _h.two_column }]),
|
|
@@ -79,7 +79,7 @@ export const AboutUs = {
|
|
|
79
79
|
type: "header",
|
|
80
80
|
title: "Support Services",
|
|
81
81
|
icon: "AlertCircle",
|
|
82
|
-
featured_image: "https://beta-public.elaa.org.au/fileman/Page Builder/
|
|
82
|
+
featured_image: "https://beta-public.elaa.org.au/fileman/Page Builder/kinglakeselects-final-02684.jpg"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
name: "Bullet Points",
|
|
@@ -127,4 +127,4 @@ export const AboutUs = {
|
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
129
|
]
|
|
130
|
-
};
|
|
130
|
+
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="flex h-[
|
|
2
|
+
<div class="flex h-[494px] sm:h-[550px] md:h-[806px] lg:h-[872px] w-full bg-navy-800 relative rounded-[24px] lg:rounded-[48px] z-10">
|
|
3
3
|
<Carousel :items-to-show="1" v-model="currentSlide" :autoplay="5000" class="carousel w-full" :wrap-around="true">
|
|
4
4
|
<Slide v-for="(slide, index) in slides" :key="index">
|
|
5
5
|
<div class="flex-1 lg:p-8 px-4 lg:py-4 flex max-lg:flex-col-reverse relative w-full">
|
|
6
|
-
<div class="flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-
|
|
6
|
+
<div class="flex-1 lg:w-1/2 lg:pl-8 lg:pr-16 flex flex-col mt-7 sm:mt-14 lg:mt-[218px]">
|
|
7
7
|
<div class="gap-2 flex z-10 mb-4">
|
|
8
8
|
<a v-if="slides.length > 1"
|
|
9
9
|
v-for="(slide, index) in slides"
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
</div>
|
|
13
13
|
<h3 class="text-[30px] lg:text-[48px] font-semibold text-white mb-3 lg:leading-normal leading-[48px]">{{ slide?.title }}</h3>
|
|
14
14
|
<div class="max-md:flex-1">
|
|
15
|
-
<p class="lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-
|
|
15
|
+
<p class="lg:text-lg font-normal text-navy-50 overflow-hidden line-clamp-4 sm:line-clamp-3" v-html="slide?.description"></p>
|
|
16
16
|
</div>
|
|
17
|
-
<div class="flex gap-3 md:mt-8
|
|
18
|
-
<a class="text-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60"
|
|
17
|
+
<div class="flex gap-3 mt-4 md:mt-8">
|
|
18
|
+
<a class="text-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-800 hover:opacity-60"
|
|
19
19
|
:href="formatUrl(slide.secondary_button.url)"
|
|
20
20
|
v-if="slide.secondary_button.show"
|
|
21
21
|
:target="slide.secondary_button.open_in_new_tab ? '_blank' : ''">
|
|
22
22
|
<span>{{ slide.secondary_button.label }}</span>
|
|
23
23
|
</a>
|
|
24
|
-
<a class=" flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-6 py-2 rounded-full hover:bg-navy-50"
|
|
24
|
+
<a class=" flex items-center gap-2 text-navy-800 bg-white text-base font-semibold border border-white px-4 sm:px-6 py-2 rounded-full hover:bg-navy-50"
|
|
25
25
|
:href="formatUrl(slide.primary_button.url)"
|
|
26
26
|
v-if="slide.primary_button.show"
|
|
27
27
|
:target="slide.primary_button.open_in_new_tab ? '_blank' : ''">
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
<div :class="{'bg-gray-50 py-2 my-6' : section?.has_background, 'my-8': section?.margin}">
|
|
4
4
|
<div class="pb-container my-[40px]"
|
|
5
5
|
:class="{'flex gap-8 flex-col lg:flex-row': headerComponent?.featured_image, 'flex-col-reverse lg:flex-row-reverse justify-between': headerComponent?.revert}">
|
|
6
|
-
<
|
|
7
|
-
:src="headerComponent?.featured_image"
|
|
8
|
-
class="lg:max-w-[480px] w-full object-cover rounded-xl md:rounded-3xl"
|
|
6
|
+
<div v-if="headerComponent?.featured_image"
|
|
9
7
|
ref="leftColumn"
|
|
10
|
-
|
|
8
|
+
class="w-full lg:max-w-[480px] rounded-xl md:rounded-3xl overflow-hidden shrink-0 relative max-lg:pt-[55%]"
|
|
9
|
+
>
|
|
10
|
+
<img :src="headerComponent?.featured_image"
|
|
11
|
+
class="w-full h-full object-cover max-lg:absolute inset-0"
|
|
12
|
+
alt="Feature"/>
|
|
13
|
+
</div>
|
|
11
14
|
<div v-if="headerComponent" class="h-fit flex flex-col gap-4 lg:gap-8" :class="{'xl:py-[48px]': headerComponent?.featured_image, '[&]:grid lg:grid-cols-2': section?.two_column}"
|
|
12
15
|
ref="rightColumn">
|
|
13
16
|
<div>
|
|
@@ -65,4 +68,4 @@ onMounted(() => {
|
|
|
65
68
|
leftColumn.value.style.height = `${rightColumn.value.offsetHeight}px`;
|
|
66
69
|
}
|
|
67
70
|
});
|
|
68
|
-
</script>
|
|
71
|
+
</script>
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
<img v-else :src="item.image" alt="Feature Image" class="w-full h-full object-cover"/>
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
|
-
<div v-if="imageComponent" class="w-full md:w-[560px]
|
|
55
|
+
<div v-if="imageComponent" class="w-full md:w-[560px] rounded-br-[24px] rounded-tl-[24px] overflow-hidden relative max-lg:pt-[55%]">
|
|
56
56
|
<img :src="imageComponent.featured_image" :alt="imageComponent?.caption ?? 'Image'"
|
|
57
|
-
class="
|
|
57
|
+
class="w-full h-full object-cover max-lg:absolute inset-0" />
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
@@ -107,4 +107,4 @@ const items = computed(() => {
|
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
</script>
|
|
110
|
+
</script>
|