@dcodegroup-au/page-builder 0.7.0 → 0.7.3
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 +1546 -188
- package/dist/page-builder.es.js +235 -231
- package/dist/page-builder.umd.js +235 -231
- package/example/.vscode/extensions.json +3 -0
- package/example/src/App.vue +89 -17
- package/example/src/pages/AboutUs.js +1 -1
- package/example/src/pages/OurCommitment.js +1 -1
- package/example/src/pages/OurHistory.js +1 -1
- package/package.json +2 -2
- package/src/assets/css/style.css +1 -1
- package/src/components/builders/Links.vue +0 -1
- package/src/components/common/LinkedTo.vue +0 -2
- package/src/components/presenters/components/CarouselPresenter.vue +18 -4
- package/src/components/presenters/components/CollectionGridPresenter.vue +3 -3
- package/src/components/presenters/components/SliderPresenter.vue +3 -2
- package/src/components/presenters/modules/AccordionPricing.vue +5 -5
- package/src/components/presenters/modules/BulletPoints.vue +5 -5
- package/src/components/presenters/modules/Callout.vue +5 -5
- package/src/components/presenters/modules/CollectionCarousel.vue +1 -1
- package/src/components/presenters/modules/ContactUs.vue +1 -1
- package/src/components/presenters/modules/FAQ.vue +3 -2
- package/src/components/presenters/modules/HeroHeader.vue +1 -1
- package/src/components/presenters/modules/HorizontalTabs.vue +4 -4
- package/src/components/presenters/modules/LinkCard.vue +39 -5
- package/src/components/presenters/modules/LinkList.vue +4 -4
- package/src/components/presenters/modules/Paragraph.vue +4 -4
- package/src/components/presenters/modules/QuickLinks.vue +1 -1
- package/src/components/presenters/modules/StandardHeader.vue +4 -4
- package/src/components/presenters/modules/TestimonialSlider.vue +4 -4
- package/src/components/presenters/modules/Timeline.vue +2 -2
- package/src/components/presenters/modules/TwoColumnsImageContent.vue +10 -16
- package/src/components/presenters/modules/VTabs.vue +1 -1
- package/tailwind.config.js +3 -0
- /package/example/src/pages/{AdvisoryService.js → AdvisoryServices.js} +0 -0
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
:key="index"
|
|
11
11
|
class="w-full flex-shrink-0 py-10"
|
|
12
12
|
>
|
|
13
|
-
<div class="flex
|
|
13
|
+
<div class="flex flex-col-reverse lg:flex-row gap-8 xl:gap-x-16 max-w-[1640px] md:px-[120px] mx-auto w-full">
|
|
14
14
|
<article class="flex-1 flex flex-col justify-center gap-8">
|
|
15
15
|
<span class="flex items-center gap-1">
|
|
16
16
|
<template v-for="star in 5">
|
|
17
17
|
<Star class="w-5 h-5 text-yellow-100"></Star>
|
|
18
18
|
</template>
|
|
19
19
|
</span>
|
|
20
|
-
<h3 class="font-medium text-3xl leading-[38px]" v-html="feature.description"></h3>
|
|
20
|
+
<h3 class="font-medium text-2xl md:text-3xl md:leading-[38px]" v-html="feature.description"></h3>
|
|
21
21
|
<p class="text-gray-600">{{ feature.title }}</p>
|
|
22
22
|
</article>
|
|
23
|
-
<div class="h-[480px] w-[560px]">
|
|
23
|
+
<div class="h-[480px] w-full md:w-[560px] lg:h-[300px] lg:w-[350px] xl:h-[480px] xl:w-[560px]">
|
|
24
24
|
<img
|
|
25
25
|
v-if="feature.featured_image"
|
|
26
26
|
:src="feature.featured_image"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<!-- Controls -->
|
|
41
41
|
<footer class="flex max-w-[1640px] md:px-[120px] mx-auto w-full gap-4 relative">
|
|
42
|
-
<div class="absolute bottom-[40px]
|
|
42
|
+
<div class="absolute bottom-[40px] right-0 md:right-[120px] xl:left-[120px] gap-4 flex">
|
|
43
43
|
<button
|
|
44
44
|
type="button"
|
|
45
45
|
@click="prevSlide"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="mt-4">
|
|
10
10
|
<div v-for="(data, index) in timelineComponent.data" class="flex flex-row">
|
|
11
11
|
<div class="w-1/5 mr-[40px] relative">
|
|
12
|
-
<h1 class="
|
|
12
|
+
<h1 class="text-[24px] font-semibold text-navy-800 pr-5">{{ data.title }}</h1>
|
|
13
13
|
<div class="w-[32px] h-[32px] flex items-center justify-center border-2 border-navy-100 rounded-full absolute right-[-17px] bg-white top-0">
|
|
14
14
|
<p class="w-[16px] h-[16px] rounded-full bg-navy-600"></p>
|
|
15
15
|
</div>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div
|
|
21
21
|
v-for="(line, index) in data.lines"
|
|
22
22
|
:key="index"
|
|
23
|
-
class="bg-pale-orange-100 p-6 mb-6 rounded-
|
|
23
|
+
class="bg-pale-orange-100 p-6 mb-6 rounded-lg md:rounded-2xl"
|
|
24
24
|
>
|
|
25
25
|
<h4 class="text-xl font-semibold text-gray-900">{{ line.title }}</h4>
|
|
26
26
|
<div class="all-unset ql-editor">
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="overflow-hidden">
|
|
3
3
|
<div class="max-w-[1640px] md:px-[120px] mx-auto w-full mt-4 px-4">
|
|
4
|
-
<div class="
|
|
5
|
-
|
|
4
|
+
<div class="grid gap-1.5 lg:gap-4"
|
|
5
|
+
:style="innerWidth >= 1024 ? 'grid-template-columns: 33% auto;' : ''"
|
|
6
|
+
v-if="paragraphComponent">
|
|
7
|
+
<div class="bg-gray-100 rounded-xl p-8" :class="{'h-fit': section?.minimum_height}" v-if="paragraphComponent">
|
|
6
8
|
<h3 class="text-[20px] text-gray-900 font-semibold">{{ paragraphComponent.title }}</h3>
|
|
7
9
|
<p class="text-md font-normal mt-2 text-gray-600 leading-6" v-html="paragraphComponent.paragraph"></p>
|
|
8
10
|
</div>
|
|
9
|
-
<div class="
|
|
11
|
+
<div class="rounded-xl md:rounded-3xl overflow-hidden relative" v-if="imageComponent">
|
|
10
12
|
<img :src="imageComponent.featured_image" :alt="imageComponent.caption" class="w-full h-full object-cover"/>
|
|
11
13
|
<p v-html="imageComponent.caption" class="mt-2 text-[13px]"></p>
|
|
12
14
|
</div>
|
|
@@ -22,13 +24,13 @@
|
|
|
22
24
|
class="text-[20px] font-normal mt-4 text-gray-600 leading-[30px] max-w-[800px]"
|
|
23
25
|
v-html="headerComponent.supporting_text"></p>
|
|
24
26
|
</div>
|
|
25
|
-
<div :class="featureItemsComponent.hasOwnProperty('grid_columns') ? '' : 'flex flex-row gap-8'">
|
|
27
|
+
<div :class="featureItemsComponent.hasOwnProperty('grid_columns') ? '' : 'flex flex-col-reverse md:flex-row gap-8'">
|
|
26
28
|
<div class="grid gap-8"
|
|
27
|
-
:class="featureItemsComponent.hasOwnProperty('grid_columns') ? `grid-cols-${featureItemsComponent.grid_columns}` : 'grid-cols-2 w-2/3'">
|
|
29
|
+
:class="featureItemsComponent.hasOwnProperty('grid_columns') ? `md:grid-cols-${featureItemsComponent.grid_columns}` : 'lg:grid-cols-2 w-2/3'">
|
|
28
30
|
<div v-for="item in items"
|
|
29
31
|
class="flex gap-3 w-full"
|
|
30
32
|
:class="{
|
|
31
|
-
'bg-gray-50 p-8 rounded-
|
|
33
|
+
'bg-gray-50 p-8 rounded-xl md:rounded-3xl overflow-hidden flex-col' : featureItemsComponent.hasOwnProperty('grid_columns') && (featureItemsComponent.grid_columns > 2 || featureItemsComponent?.has_background),
|
|
32
34
|
'!p-0 rounded-tr-[0px] rounded-bl-[0px]': item?.image
|
|
33
35
|
}">
|
|
34
36
|
<template v-if="item.title">
|
|
@@ -64,7 +66,7 @@
|
|
|
64
66
|
|
|
65
67
|
<script setup>
|
|
66
68
|
import IconComponent from "@/components/common/Icon.vue";
|
|
67
|
-
import {ref, computed
|
|
69
|
+
import {ref, computed} from "vue";
|
|
68
70
|
import {formatUrl} from "@/components/helpers/common";
|
|
69
71
|
import ArrowUpRight from "@/assets/img/icons/arrow-up-right.svg";
|
|
70
72
|
import "quill/dist/quill.snow.css";
|
|
@@ -76,10 +78,8 @@ const props = defineProps({
|
|
|
76
78
|
},
|
|
77
79
|
});
|
|
78
80
|
|
|
79
|
-
const leftColumn = ref(null);
|
|
80
|
-
const rightColumn = ref(null);
|
|
81
|
-
|
|
82
81
|
const section = ref(props.section);
|
|
82
|
+
const innerWidth = ref(window.innerWidth);
|
|
83
83
|
const paragraphComponent = computed(() => {
|
|
84
84
|
return section.value.components.find((component) => component.type === "paragraph");
|
|
85
85
|
});
|
|
@@ -109,10 +109,4 @@ const items = computed(() => {
|
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
onMounted(() => {
|
|
113
|
-
if (leftColumn.value && rightColumn.value && section.value?.minimum_height) {
|
|
114
|
-
rightColumn.value.style.height = `${leftColumn.value.offsetHeight}px`;
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
|
|
118
112
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="max-w-[1640px] md:px-[120px] mx-auto w-full">
|
|
3
|
-
<div class="max-md:mx-[30px] 1xl:mx-0 bg-navy-25 rounded-[48px] p-16">
|
|
3
|
+
<div class="max-md:mx-[30px] 1xl:mx-0 bg-navy-25 rounded-3xl md:rounded-[48px] p-16">
|
|
4
4
|
<div v-for="(component, index) in section.components">
|
|
5
5
|
<component
|
|
6
6
|
:is="currentComponent(component)"
|
package/tailwind.config.js
CHANGED
|
File without changes
|