@dcodegroup-au/page-builder 0.8.0 → 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 +25 -16
- package/dist/page-builder.es.js +130 -82
- package/dist/page-builder.umd.js +130 -82
- package/example/src/pages/AboutUs.js +2 -2
- package/example/src/pages/BestLife.js +1 -0
- package/package.json +1 -1
- package/src/components/builders/VideoGrid.vue +17 -0
- package/src/components/presenters/components/CollectionGridPresenter.vue +38 -17
- 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
|
@@ -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>
|