@levo-so/blocks 0.1.59 → 0.1.61
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/package.json +6 -6
- package/src/blocks/about-us/about-us-1.schema.ts +60 -58
- package/src/blocks/about-us/about-us-1.tsx +2 -4
- package/src/blocks/about-us/about-us-2.schema.ts +165 -42
- package/src/blocks/about-us/about-us-2.tsx +7 -13
- package/src/blocks/blogs/blog-listing-1.schema.ts +7 -14
- package/src/blocks/blogs/blog-listing-1.tsx +27 -36
- package/src/blocks/blogs/blog-listing-2.schema.ts +17 -34
- package/src/blocks/blogs/blog-listing-2.tsx +21 -27
- package/src/blocks/blogs/blog-listing-3.schema.ts +32 -64
- package/src/blocks/blogs/blog-listing-3.tsx +21 -27
- package/src/blocks/blogs/blog-post-1.schema.ts +9 -18
- package/src/blocks/blogs/blog-post-1.tsx +3 -14
- package/src/blocks/calendar/calendar-1.schema.ts +351 -180
- package/src/blocks/calendar/calendar-1.tsx +60 -25
- package/src/blocks/cards/cards-10.schema.ts +278 -331
- package/src/blocks/cards/cards-10.tsx +18 -15
- package/src/blocks/cards/cards-11.schema.ts +178 -356
- package/src/blocks/cards/cards-11.tsx +5 -11
- package/src/blocks/cards/cards-12.schema.ts +110 -196
- package/src/blocks/cards/cards-12.tsx +4 -10
- package/src/blocks/cards/cards-13.schema.ts +131 -120
- package/src/blocks/cards/cards-13.tsx +4 -6
- package/src/blocks/cards/cards-14.schema.ts +51 -154
- package/src/blocks/cards/cards-14.tsx +5 -11
- package/src/blocks/cards/cards-15.schema.ts +48 -32
- package/src/blocks/cards/cards-15.tsx +15 -6
- package/src/blocks/cards/cards-2.schema.ts +76 -88
- package/src/blocks/cards/cards-2.tsx +12 -17
- package/src/blocks/cards/cards-3.schema.ts +68 -70
- package/src/blocks/cards/cards-3.tsx +7 -13
- package/src/blocks/cards/cards-4.schema.ts +160 -115
- package/src/blocks/cards/cards-4.tsx +22 -17
- package/src/blocks/cards/cards-5.schema.ts +76 -70
- package/src/blocks/cards/cards-5.tsx +10 -10
- package/src/blocks/cards/cards-6.schema.ts +755 -985
- package/src/blocks/cards/cards-6.tsx +17 -9
- package/src/blocks/cards/cards-7.schema.ts +754 -2250
- package/src/blocks/cards/cards-7.tsx +18 -24
- package/src/blocks/cards/cards-8.schema.ts +171 -363
- package/src/blocks/cards/cards-8.tsx +15 -8
- package/src/blocks/cards/cards-9.schema.ts +283 -329
- package/src/blocks/cards/cards-9.tsx +28 -12
- package/src/blocks/carousel/carousel-1.schema.ts +418 -49
- package/src/blocks/carousel/carousel-1.tsx +8 -8
- package/src/blocks/carousel/carousel-2.schema.ts +153 -127
- package/src/blocks/carousel/carousel-2.tsx +16 -20
- package/src/blocks/community/community-1.schema.ts +612 -0
- package/src/blocks/community/community-1.tsx +557 -0
- package/src/blocks/community/community-post-1.schema.ts +408 -0
- package/src/blocks/community/community-post-1.tsx +405 -0
- package/src/blocks/contact-us/contact-us-1.schema.ts +25 -43
- package/src/blocks/contact-us/contact-us-1.tsx +2 -12
- package/src/blocks/contact-us/contact-us-2.schema.ts +39 -17
- package/src/blocks/contact-us/contact-us-2.tsx +21 -32
- package/src/blocks/content/content-1.schema.ts +163 -234
- package/src/blocks/content/content-1.tsx +46 -43
- package/src/blocks/content/content-2.schema.ts +117 -35
- package/src/blocks/content/content-2.tsx +19 -7
- package/src/blocks/content/content-3.schema.ts +215 -205
- package/src/blocks/content/content-3.tsx +14 -18
- package/src/blocks/content/content-4.schema.ts +105 -89
- package/src/blocks/content/content-4.tsx +10 -18
- package/src/blocks/content/content-5.schema.ts +301 -278
- package/src/blocks/content/content-5.tsx +23 -16
- package/src/blocks/content/content-6.schema.ts +432 -250
- package/src/blocks/content/content-6.tsx +24 -19
- package/src/blocks/content/content-7.schema.ts +200 -197
- package/src/blocks/content/content-7.tsx +29 -21
- package/src/blocks/content/content-8.schema.ts +28 -23
- package/src/blocks/content/content-8.tsx +3 -3
- package/src/blocks/content/content-9.schema.ts +64 -2208
- package/src/blocks/content/content-9.tsx +31 -43
- package/src/blocks/cta/cta-1.schema.ts +23 -128
- package/src/blocks/cta/cta-2.schema.ts +46 -69
- package/src/blocks/cta/cta-2.tsx +2 -6
- package/src/blocks/cta/cta-3.schema.ts +77 -72
- package/src/blocks/cta/cta-3.tsx +2 -6
- package/src/blocks/embed/embed-1.schema.ts +30 -52
- package/src/blocks/embed/embed-1.tsx +1 -9
- package/src/blocks/event/ClientOnly.tsx +1 -4
- package/src/blocks/event/event-details.schema.ts +23 -32
- package/src/blocks/event/event-details.tsx +9 -23
- package/src/blocks/event/event-listing-2.schema.ts +19 -38
- package/src/blocks/event/event-listing-2.tsx +29 -38
- package/src/blocks/event/event-listing-3.schema.ts +10 -20
- package/src/blocks/event/event-listing-3.tsx +26 -30
- package/src/blocks/event/event-listing-4.schema.ts +40 -80
- package/src/blocks/event/event-listing-4.tsx +22 -28
- package/src/blocks/event/event-listing.schema.ts +12 -24
- package/src/blocks/event/event-listing.tsx +26 -30
- package/src/blocks/faq/faq-1.schema.ts +150 -112
- package/src/blocks/faq/faq-1.tsx +31 -33
- package/src/blocks/faq/faq-2.schema.ts +132 -77
- package/src/blocks/faq/faq-2.tsx +21 -11
- package/src/blocks/faq/faq-3.schema.ts +178 -107
- package/src/blocks/faq/faq-3.tsx +30 -22
- package/src/blocks/features/features-1/features-1.schema.ts +11 -3
- package/src/blocks/features/features-1/features-1.tsx +12 -5
- package/src/blocks/features/features-1/variants/default.ts +176 -62
- package/src/blocks/features/features-1/variants/index.ts +1 -1
- package/src/blocks/features/features-1/variants/stylized-cards-v1.ts +392 -54
- package/src/blocks/features/features-1/variants/stylized-cards-v2.ts +119 -103
- package/src/blocks/features/features-1/variants/stylized-cards-v3.ts +16 -199
- package/src/blocks/features/features-2.schema.ts +149 -48
- package/src/blocks/features/features-2.tsx +18 -12
- package/src/blocks/features/features-3.schema.ts +255 -68
- package/src/blocks/features/features-3.tsx +25 -15
- package/src/blocks/features/features-4.schema.ts +367 -188
- package/src/blocks/features/features-4.tsx +12 -8
- package/src/blocks/features/features-5.schema.ts +195 -200
- package/src/blocks/features/features-5.tsx +14 -14
- package/src/blocks/features/features-6.schema.ts +230 -215
- package/src/blocks/features/features-6.tsx +28 -34
- package/src/blocks/filter-listing/filter-listing-1.tsx +12 -36
- package/src/blocks/floating-buttons/floating-button-1.schema.ts +100 -0
- package/src/blocks/floating-buttons/floating-button-1.tsx +14 -0
- package/src/blocks/footer/footer-1.schema.ts +110 -48
- package/src/blocks/footer/footer-1.tsx +17 -31
- package/src/blocks/footer/footer-2.schema.ts +230 -34
- package/src/blocks/footer/footer-2.tsx +19 -29
- package/src/blocks/footer/footer-3.schema.ts +335 -59
- package/src/blocks/footer/footer-3.tsx +11 -26
- package/src/blocks/footer/footer-4.schema.ts +139 -76
- package/src/blocks/footer/footer-4.tsx +37 -55
- package/src/blocks/footer/footer-5.schema.ts +138 -60
- package/src/blocks/footer/footer-5.tsx +16 -30
- package/src/blocks/footer/footer-6.schema.ts +62 -149
- package/src/blocks/footer/footer-6.tsx +30 -44
- package/src/blocks/form/form-1.schema.ts +144 -0
- package/src/blocks/form/form-1.tsx +33 -0
- package/src/blocks/hero/hero-1.schema.ts +153 -101
- package/src/blocks/hero/hero-1.tsx +4 -4
- package/src/blocks/hero/hero-10.schema.ts +9 -31
- package/src/blocks/hero/hero-10.tsx +4 -4
- package/src/blocks/hero/hero-11.schema.ts +196 -89
- package/src/blocks/hero/hero-11.tsx +5 -10
- package/src/blocks/hero/hero-12.schema.ts +111 -192
- package/src/blocks/hero/hero-12.tsx +4 -7
- package/src/blocks/hero/hero-13.schema.ts +36 -30
- package/src/blocks/hero/hero-13.tsx +1 -1
- package/src/blocks/hero/hero-2.schema.ts +30 -58
- package/src/blocks/hero/hero-2.tsx +3 -21
- package/src/blocks/hero/hero-3.schema.ts +70 -90
- package/src/blocks/hero/hero-3.tsx +6 -15
- package/src/blocks/hero/hero-4.schema.ts +246 -73
- package/src/blocks/hero/hero-4.tsx +22 -16
- package/src/blocks/hero/hero-5.schema.ts +104 -47
- package/src/blocks/hero/hero-5.tsx +21 -12
- package/src/blocks/hero/hero-6.schema.ts +127 -258
- package/src/blocks/hero/hero-6.tsx +6 -6
- package/src/blocks/hero/hero-7.schema.ts +90 -43
- package/src/blocks/hero/hero-7.tsx +6 -4
- package/src/blocks/hero/hero-8.schema.ts +342 -138
- package/src/blocks/hero/hero-8.tsx +23 -13
- package/src/blocks/hero/hero-9.schema.ts +111 -86
- package/src/blocks/hero/hero-9.tsx +12 -4
- package/src/blocks/index.ts +12 -8
- package/src/blocks/jobs/jobs-1.schema.ts +990 -0
- package/src/blocks/jobs/jobs-1.tsx +145 -0
- package/src/blocks/logos/logos-1.schema.ts +370 -36
- package/src/blocks/logos/logos-1.tsx +7 -7
- package/src/blocks/navbar/navbar-1.schema.ts +15 -28
- package/src/blocks/navbar/navbar-1.tsx +24 -60
- package/src/blocks/navbar/navbar-2.schema.ts +14 -28
- package/src/blocks/navbar/navbar-2.tsx +26 -56
- package/src/blocks/navbar/navbar-3.schema.ts +11 -22
- package/src/blocks/navbar/navbar-3.tsx +33 -82
- package/src/blocks/navbar/navbar-4.schema.ts +14343 -0
- package/src/blocks/navbar/navbar-4.tsx +546 -0
- package/src/blocks/polling/polling-1.schema.ts +2 -21
- package/src/blocks/polling/polling-1.tsx +24 -39
- package/src/blocks/pricing/pricing-1.schema.ts +307 -290
- package/src/blocks/pricing/pricing-1.tsx +32 -42
- package/src/blocks/products/products-listing-1.schema.ts +115 -36
- package/src/blocks/products/products-listing-1.tsx +15 -13
- package/src/blocks/products/products-listing-2.schema.ts +178 -220
- package/src/blocks/products/products-listing-2.tsx +29 -16
- package/src/blocks/products/products-listing-3.schema.ts +412 -154
- package/src/blocks/products/products-listing-3.tsx +102 -73
- package/src/blocks/profile/profile-1.schema.ts +60 -49
- package/src/blocks/profile/profile-1.tsx +5 -10
- package/src/blocks/profile/profile-2.schema.ts +71 -92
- package/src/blocks/profile/profile-2.tsx +6 -7
- package/src/blocks/profile/profile-3.schema.ts +141 -529
- package/src/blocks/profile/profile-3.tsx +19 -41
- package/src/blocks/{blogs/blog-post-2.schema.ts → profile/profile-4.schema.ts} +75 -97
- package/src/blocks/{blogs/blog-post-2.tsx → profile/profile-4.tsx} +32 -61
- package/src/blocks/{blogs/blog-post-3.schema.ts → profile/profile-5.schema.ts} +6 -6
- package/src/blocks/{blogs/blog-post-3.tsx → profile/profile-5.tsx} +6 -11
- package/src/blocks/services/service-1.schema.ts +210 -830
- package/src/blocks/services/service-1.tsx +46 -59
- package/src/blocks/services/service-2.schema.ts +92 -80
- package/src/blocks/services/service-2.tsx +13 -7
- package/src/blocks/services/service-3.schema.ts +74 -86
- package/src/blocks/services/service-3.tsx +44 -45
- package/src/blocks/stats/stats-1.schema.ts +225 -21
- package/src/blocks/stats/stats-1.tsx +7 -14
- package/src/blocks/stats/stats-2.schema.ts +13 -5
- package/src/blocks/stats/stats-2.tsx +12 -15
- package/src/blocks/stats/variants/default.ts +59 -41
- package/src/blocks/stats/variants/hero.ts +64 -31
- package/src/blocks/stats/variants/index.ts +1 -1
- package/src/blocks/tabs/tab-1.schema.ts +103 -409
- package/src/blocks/tabs/tab-1.tsx +47 -53
- package/src/blocks/tabs/tab-2.schema.ts +207 -290
- package/src/blocks/tabs/tab-2.tsx +20 -9
- package/src/blocks/team/team-1.schema.ts +593 -76
- package/src/blocks/team/team-1.tsx +16 -22
- package/src/blocks/team/team-2.schema.ts +621 -1453
- package/src/blocks/team/team-2.tsx +19 -34
- package/src/blocks/team/team-3.schema.ts +127 -78
- package/src/blocks/team/team-3.tsx +9 -14
- package/src/blocks/team/team-4.schema.ts +197 -63
- package/src/blocks/team/team-4.tsx +25 -26
- package/src/blocks/team/team-5.schema.ts +65 -54
- package/src/blocks/team/team-5.tsx +13 -4
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.schema.ts +9 -26
- package/src/blocks/termsAndPrivacy/terms-and-conditions-1.tsx +4 -6
- package/src/blocks/testimonial/testimonial-1.schema.ts +713 -65
- package/src/blocks/testimonial/testimonial-1.tsx +12 -23
- package/src/blocks/testimonial/testimonial-2.schema.ts +1316 -354
- package/src/blocks/testimonial/testimonial-2.tsx +21 -37
- package/src/blocks/testimonial/testimonial-3.schema.ts +210 -74
- package/src/blocks/testimonial/testimonial-3.tsx +17 -27
- package/src/blocks/testimonial/testimonial-4.schema.ts +353 -1049
- package/src/blocks/testimonial/testimonial-4.tsx +16 -34
- package/src/blocks/testimonial/testimonial-5/variants/default.ts +155 -171
- package/src/blocks/testimonial/testimonial-5/variants/index.ts +1 -1
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithLogo.ts +201 -501
- package/src/blocks/testimonial/testimonial-5/variants/testimonialWithRatings.ts +166 -316
- package/src/blocks/testimonial/testimonial-5.schema.ts +2 -6
- package/src/blocks/testimonial/testimonial-5.tsx +15 -25
- package/src/blocks/testimonial/testimonial-6.schema.ts +226 -315
- package/src/blocks/testimonial/testimonial-6.tsx +9 -25
- package/src/blocks/testimonial/testimonial-7.schema.ts +74 -45
- package/src/blocks/testimonial/testimonial-7.tsx +16 -27
- package/src/blocks/timeline/timeline-1.schema.ts +166 -153
- package/src/blocks/timeline/timeline-1.tsx +6 -7
- package/src/blocks/users/edit-profile.schema.ts +56 -44
- package/src/blocks/users/edit-profile.tsx +23 -28
- package/src/constants/index.ts +16 -0
- package/src/index.ts +1 -1
- package/src/schemas/blocks.ts +17 -5
- package/src/schemas/categories.ts +26 -2
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Box,
|
|
3
3
|
Button,
|
|
4
|
+
Container,
|
|
4
5
|
Heading,
|
|
6
|
+
Icon,
|
|
7
|
+
type ILevoBlockBaseProps,
|
|
5
8
|
Image,
|
|
6
|
-
Typography,
|
|
7
|
-
Container,
|
|
8
9
|
Section,
|
|
9
|
-
|
|
10
|
-
Icon,
|
|
10
|
+
Typography,
|
|
11
11
|
useContentEngine,
|
|
12
12
|
} from "@levo-so/studio";
|
|
13
13
|
import dayjs from "dayjs";
|
|
14
14
|
|
|
15
15
|
import type { IBlogListing1Content } from "./blog-listing-1.schema";
|
|
16
16
|
|
|
17
|
-
const BlogListing1: React.FC<ILevoBlockBaseProps<IBlogListing1Content>> = ({
|
|
18
|
-
content,
|
|
19
|
-
}) => {
|
|
17
|
+
const BlogListing1: React.FC<ILevoBlockBaseProps<IBlogListing1Content>> = ({ content }) => {
|
|
20
18
|
const { data, query, setQuery, meta } = useContentEngine("blogs");
|
|
21
19
|
|
|
22
20
|
const handleNext = () => setQuery({ page: (query?.page || 0) + 1 });
|
|
@@ -34,11 +32,7 @@ const BlogListing1: React.FC<ILevoBlockBaseProps<IBlogListing1Content>> = ({
|
|
|
34
32
|
Array.isArray(data) &&
|
|
35
33
|
data?.map((_, index) => {
|
|
36
34
|
return (
|
|
37
|
-
<Box
|
|
38
|
-
data-levo_group_item
|
|
39
|
-
key={index}
|
|
40
|
-
elementKey={`blogs.${index}.blog`}
|
|
41
|
-
>
|
|
35
|
+
<Box data-levo_group_item key={index} elementKey={`blogs.${index}.blog`}>
|
|
42
36
|
<Image
|
|
43
37
|
alt="cover_image"
|
|
44
38
|
elementKey={`blogs.${index}.cover_image`}
|
|
@@ -50,11 +44,8 @@ const BlogListing1: React.FC<ILevoBlockBaseProps<IBlogListing1Content>> = ({
|
|
|
50
44
|
<Box elementKey={`blogs.${index}.timestamp_wrapper`}>
|
|
51
45
|
<Icon elementKey={`blogs.${index}.timestamp_icon`} />
|
|
52
46
|
<Typography elementKey={`blogs.${index}.timestamp`}>
|
|
53
|
-
{data?.[index]?.timestamp &&
|
|
54
|
-
|
|
55
|
-
? dayjs(data?.[index]?.timestamp).format(
|
|
56
|
-
"DD MMM, YYYY",
|
|
57
|
-
)
|
|
47
|
+
{data?.[index]?.timestamp && dayjs(data?.[index]?.timestamp).isValid()
|
|
48
|
+
? dayjs(data?.[index]?.timestamp).format("DD MMM, YYYY")
|
|
58
49
|
: " "}
|
|
59
50
|
</Typography>
|
|
60
51
|
</Box>
|
|
@@ -67,9 +58,7 @@ const BlogListing1: React.FC<ILevoBlockBaseProps<IBlogListing1Content>> = ({
|
|
|
67
58
|
<Icon elementKey={`blogs.${index}.author_image`} />
|
|
68
59
|
<Box elementKey={`blogs.${index}.author_info_wrapper`}>
|
|
69
60
|
<Heading elementKey={`blogs.${index}.author_name`} />
|
|
70
|
-
<Typography
|
|
71
|
-
elementKey={`blogs.${index}.author_description`}
|
|
72
|
-
/>
|
|
61
|
+
<Typography elementKey={`blogs.${index}.author_description`} />
|
|
73
62
|
</Box>
|
|
74
63
|
</Box>
|
|
75
64
|
</Box>
|
|
@@ -79,21 +68,23 @@ const BlogListing1: React.FC<ILevoBlockBaseProps<IBlogListing1Content>> = ({
|
|
|
79
68
|
);
|
|
80
69
|
})}
|
|
81
70
|
</Box>
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
71
|
+
{(meta?.pages || 0) > 1 && (
|
|
72
|
+
<Box elementKey="pagination-wrapper">
|
|
73
|
+
<Button
|
|
74
|
+
elementKey="pagination-left"
|
|
75
|
+
disabled={query?.page === 1}
|
|
76
|
+
onClick={handlePrevious}
|
|
77
|
+
/>
|
|
78
|
+
<Typography elementKey="pagination-text">
|
|
79
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
80
|
+
</Typography>
|
|
81
|
+
<Button
|
|
82
|
+
elementKey="pagination-right"
|
|
83
|
+
onClick={handleNext}
|
|
84
|
+
disabled={query?.page === meta?.pages}
|
|
85
|
+
/>
|
|
86
|
+
</Box>
|
|
87
|
+
)}
|
|
97
88
|
</Container>
|
|
98
89
|
</Section>
|
|
99
90
|
);
|
|
@@ -38,8 +38,7 @@ const MEDIA = {
|
|
|
38
38
|
filename: "icons copy 4.svg",
|
|
39
39
|
kind: "image",
|
|
40
40
|
path: "WLZ1TXTD/iconscopy4-rSC4lH4e0QFB.svg",
|
|
41
|
-
location:
|
|
42
|
-
"https://static.levostg.online/WLZ1TXTD/iconscopy4-rSC4lH4e0QFB.svg",
|
|
41
|
+
location: "https://static.levostg.online/WLZ1TXTD/iconscopy4-rSC4lH4e0QFB.svg",
|
|
43
42
|
metadata: {
|
|
44
43
|
etag: '"9d4baa51fb176f2edb5c89f785d7a018"',
|
|
45
44
|
mimetype: "image/svg+xml",
|
|
@@ -58,8 +57,7 @@ const MEDIA = {
|
|
|
58
57
|
filename: "icons copy 5.svg",
|
|
59
58
|
kind: "image",
|
|
60
59
|
path: "WLZ1TXTD/iconscopy5-R6exN52A9lz1.svg",
|
|
61
|
-
location:
|
|
62
|
-
"https://static.levostg.online/WLZ1TXTD/iconscopy5-R6exN52A9lz1.svg",
|
|
60
|
+
location: "https://static.levostg.online/WLZ1TXTD/iconscopy5-R6exN52A9lz1.svg",
|
|
63
61
|
metadata: {
|
|
64
62
|
etag: '"2e33826fc7828bb2be1e7d3117756eb1"',
|
|
65
63
|
mimetype: "image/svg+xml",
|
|
@@ -78,8 +76,7 @@ const MEDIA = {
|
|
|
78
76
|
filename: "pexels-2147499152-29632553.jpg",
|
|
79
77
|
kind: "image",
|
|
80
78
|
path: "WLZ1TXTD/pexels-2147499152-29632553-WT0prjeW1uuo.jpg",
|
|
81
|
-
location:
|
|
82
|
-
"https://static.levostg.online/WLZ1TXTD/pexels-2147499152-29632553-WT0prjeW1uuo.jpg",
|
|
79
|
+
location: "https://static.levostg.online/WLZ1TXTD/pexels-2147499152-29632553-WT0prjeW1uuo.jpg",
|
|
83
80
|
metadata: {
|
|
84
81
|
etag: '"d2ab426d617eec426c1e6ba5605ab5d6"',
|
|
85
82
|
mimetype: "image/jpeg",
|
|
@@ -228,8 +225,7 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
228
225
|
},
|
|
229
226
|
"blog-type": "Article / Lifestyle",
|
|
230
227
|
"blog-content": null,
|
|
231
|
-
title:
|
|
232
|
-
"Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
228
|
+
title: "Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
233
229
|
description: "<p>AI Changing the Way We Work</p>",
|
|
234
230
|
"blog-footer": null,
|
|
235
231
|
"author-image": {
|
|
@@ -319,8 +315,7 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
319
315
|
},
|
|
320
316
|
"blog-type": "Article / Lifestyle",
|
|
321
317
|
"blog-content": null,
|
|
322
|
-
title:
|
|
323
|
-
"Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
318
|
+
title: "Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
324
319
|
description: "<p>AI Changing the Way We Work</p>",
|
|
325
320
|
"blog-footer": null,
|
|
326
321
|
"author-image": {
|
|
@@ -410,8 +405,7 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
410
405
|
},
|
|
411
406
|
"blog-type": "Article / Lifestyle",
|
|
412
407
|
"blog-content": null,
|
|
413
|
-
title:
|
|
414
|
-
"Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
408
|
+
title: "Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
415
409
|
description: "<p>AI Changing the Way We Work</p>",
|
|
416
410
|
"blog-footer": null,
|
|
417
411
|
"author-image": {
|
|
@@ -501,8 +495,7 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
501
495
|
},
|
|
502
496
|
"blog-type": "Article / Lifestyle",
|
|
503
497
|
"blog-content": null,
|
|
504
|
-
title:
|
|
505
|
-
"Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
498
|
+
title: "Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
506
499
|
description: "<p>AI Changing the Way We Work</p>",
|
|
507
500
|
"blog-footer": null,
|
|
508
501
|
"author-image": {
|
|
@@ -592,8 +585,7 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
592
585
|
},
|
|
593
586
|
"blog-type": "Article / Lifestyle",
|
|
594
587
|
"blog-content": null,
|
|
595
|
-
title:
|
|
596
|
-
"Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
588
|
+
title: "Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
597
589
|
description: "<p>AI Changing the Way We Work</p>",
|
|
598
590
|
"blog-footer": null,
|
|
599
591
|
"author-image": {
|
|
@@ -683,8 +675,7 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
683
675
|
},
|
|
684
676
|
"blog-type": "Article / Lifestyle",
|
|
685
677
|
"blog-content": null,
|
|
686
|
-
title:
|
|
687
|
-
"Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
678
|
+
title: "Explore how artificial intelligence is transforming industries and everyday tasks.",
|
|
688
679
|
description: "<p>AI Changing the Way We Work</p>",
|
|
689
680
|
"blog-footer": null,
|
|
690
681
|
"author-image": {
|
|
@@ -729,23 +720,15 @@ const DEFAULT_CONTENT_VARIANT_2 = {
|
|
|
729
720
|
id: "1d7qWLgp5xDd1",
|
|
730
721
|
filename: "image.png",
|
|
731
722
|
kind: "image",
|
|
732
|
-
location:
|
|
733
|
-
"https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte.png",
|
|
723
|
+
location: "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte.png",
|
|
734
724
|
srcset: {
|
|
735
|
-
"1080w":
|
|
736
|
-
|
|
737
|
-
"
|
|
738
|
-
|
|
739
|
-
"
|
|
740
|
-
|
|
741
|
-
"
|
|
742
|
-
"https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-320w.webp",
|
|
743
|
-
"640w":
|
|
744
|
-
"https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-640w.webp",
|
|
745
|
-
"750w":
|
|
746
|
-
"https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-750w.webp",
|
|
747
|
-
"828w":
|
|
748
|
-
"https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-828w.webp",
|
|
725
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-1080w.webp",
|
|
726
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-1200w.webp",
|
|
727
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-1920w.webp",
|
|
728
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-320w.webp",
|
|
729
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-640w.webp",
|
|
730
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-750w.webp",
|
|
731
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-828w.webp",
|
|
749
732
|
path: "https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-640w.webp 640w, https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-9GF4Nq5FRMZte-320w.webp 320w",
|
|
750
733
|
},
|
|
751
734
|
mimetype: "image/png",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
type ILevoBlockBaseProps,
|
|
3
2
|
Box,
|
|
4
3
|
Button,
|
|
5
4
|
Container,
|
|
6
5
|
Heading,
|
|
7
6
|
Icon,
|
|
7
|
+
type ILevoBlockBaseProps,
|
|
8
8
|
Media,
|
|
9
9
|
Section,
|
|
10
10
|
Typography,
|
|
@@ -14,9 +14,7 @@ import dayjs from "dayjs";
|
|
|
14
14
|
|
|
15
15
|
import type { IBlogListing2Content } from "./blog-listing-2.schema";
|
|
16
16
|
|
|
17
|
-
const BlogListing2: React.FC<
|
|
18
|
-
ILevoBlockBaseProps<IBlogListing2Content>
|
|
19
|
-
> = () => {
|
|
17
|
+
const BlogListing2: React.FC<ILevoBlockBaseProps<IBlogListing2Content>> = () => {
|
|
20
18
|
const { data, query, setQuery, meta } = useContentEngine("blogs");
|
|
21
19
|
|
|
22
20
|
const handleNext = () => setQuery({ page: (query?.page || 0) + 1 });
|
|
@@ -34,11 +32,7 @@ const BlogListing2: React.FC<
|
|
|
34
32
|
</Box>
|
|
35
33
|
<Box elementKey="blogs_levoGroup" data-levo_group>
|
|
36
34
|
{(data || [])?.map((item: any, index: number) => (
|
|
37
|
-
<Box
|
|
38
|
-
key={`blogs.${index}`}
|
|
39
|
-
data-levo_group_item
|
|
40
|
-
elementKey={`blogs.${index}.blog`}
|
|
41
|
-
>
|
|
35
|
+
<Box key={`blogs.${index}`} data-levo_group_item elementKey={`blogs.${index}.blog`}>
|
|
42
36
|
<Media elementKey={`blogs.${index}.media`} alt="Blog Media" />
|
|
43
37
|
<Box elementKey={`blogs.${index}.blog-info-wrapper`}>
|
|
44
38
|
<Box elementKey={`blogs.${index}.blog-content`}>
|
|
@@ -59,9 +53,7 @@ const BlogListing2: React.FC<
|
|
|
59
53
|
<Icon elementKey={`blogs.${index}.author-image`} />
|
|
60
54
|
<Typography elementKey={`blogs.${index}.author-name`} />
|
|
61
55
|
</Box>
|
|
62
|
-
<Box
|
|
63
|
-
elementKey={`blogs.${index}.blog-reading-time-wrapper`}
|
|
64
|
-
>
|
|
56
|
+
<Box elementKey={`blogs.${index}.blog-reading-time-wrapper`}>
|
|
65
57
|
<Icon elementKey={`blogs.${index}.reading-time-icon`} />
|
|
66
58
|
<Typography elementKey={`blogs.${index}.reading-time`} />
|
|
67
59
|
</Box>
|
|
@@ -72,21 +64,23 @@ const BlogListing2: React.FC<
|
|
|
72
64
|
</Box>
|
|
73
65
|
))}
|
|
74
66
|
</Box>
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
67
|
+
{(meta?.pages || 0) > 1 && (
|
|
68
|
+
<Box elementKey="pagination-wrapper">
|
|
69
|
+
<Button
|
|
70
|
+
elementKey="pagination-left"
|
|
71
|
+
disabled={query?.page === 1}
|
|
72
|
+
onClick={handlePrevious}
|
|
73
|
+
/>
|
|
74
|
+
<Typography elementKey="pagination-text">
|
|
75
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
76
|
+
</Typography>
|
|
77
|
+
<Button
|
|
78
|
+
elementKey="pagination-right"
|
|
79
|
+
onClick={handleNext}
|
|
80
|
+
disabled={query?.page === meta?.pages}
|
|
81
|
+
/>
|
|
82
|
+
</Box>
|
|
83
|
+
)}
|
|
90
84
|
</Container>
|
|
91
85
|
</Section>
|
|
92
86
|
);
|
|
@@ -37,23 +37,15 @@ const DEFAULT_CONTENT = {
|
|
|
37
37
|
id: "pKkMlt5KY774",
|
|
38
38
|
filename: "image.png",
|
|
39
39
|
kind: "image",
|
|
40
|
-
location:
|
|
41
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
40
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
42
41
|
srcset: {
|
|
43
|
-
"1080w":
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
51
|
-
"640w":
|
|
52
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
53
|
-
"750w":
|
|
54
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
55
|
-
"828w":
|
|
56
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
42
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
43
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
44
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
45
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
46
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
47
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
48
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
57
49
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
58
50
|
},
|
|
59
51
|
mimetype: "image/png",
|
|
@@ -117,23 +109,15 @@ const DEFAULT_CONTENT = {
|
|
|
117
109
|
id: "pKkMlt5KY774",
|
|
118
110
|
filename: "image.png",
|
|
119
111
|
kind: "image",
|
|
120
|
-
location:
|
|
121
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
112
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
122
113
|
srcset: {
|
|
123
|
-
"1080w":
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
131
|
-
"640w":
|
|
132
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
133
|
-
"750w":
|
|
134
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
135
|
-
"828w":
|
|
136
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
114
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
115
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
116
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
117
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
118
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
119
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
120
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
137
121
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
138
122
|
},
|
|
139
123
|
mimetype: "image/png",
|
|
@@ -197,23 +181,15 @@ const DEFAULT_CONTENT = {
|
|
|
197
181
|
id: "pKkMlt5KY774",
|
|
198
182
|
filename: "image.png",
|
|
199
183
|
kind: "image",
|
|
200
|
-
location:
|
|
201
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
184
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
202
185
|
srcset: {
|
|
203
|
-
"1080w":
|
|
204
|
-
|
|
205
|
-
"
|
|
206
|
-
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
"
|
|
210
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
211
|
-
"640w":
|
|
212
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
213
|
-
"750w":
|
|
214
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
215
|
-
"828w":
|
|
216
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
186
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
187
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
188
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
189
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
190
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
191
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
192
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
217
193
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
218
194
|
},
|
|
219
195
|
mimetype: "image/png",
|
|
@@ -277,23 +253,15 @@ const DEFAULT_CONTENT = {
|
|
|
277
253
|
id: "pKkMlt5KY774",
|
|
278
254
|
filename: "image.png",
|
|
279
255
|
kind: "image",
|
|
280
|
-
location:
|
|
281
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
256
|
+
location: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo.png",
|
|
282
257
|
srcset: {
|
|
283
|
-
"1080w":
|
|
284
|
-
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
"
|
|
288
|
-
|
|
289
|
-
"
|
|
290
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
291
|
-
"640w":
|
|
292
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
293
|
-
"750w":
|
|
294
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
295
|
-
"828w":
|
|
296
|
-
"https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
258
|
+
"1080w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp",
|
|
259
|
+
"1200w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp",
|
|
260
|
+
"1920w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp",
|
|
261
|
+
"320w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp",
|
|
262
|
+
"640w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp",
|
|
263
|
+
"750w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp",
|
|
264
|
+
"828w": "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp",
|
|
297
265
|
path: "https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-828w.webp 828w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-750w.webp 750w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1080w.webp 1080w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1200w.webp 1200w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-1920w.webp 1920w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-320w.webp 320w, https://static.levostg.online/W6OEVMW8/image-T71RnwY8DsXo-640w.webp 640w",
|
|
298
266
|
},
|
|
299
267
|
mimetype: "image/png",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
type ILevoBlockBaseProps,
|
|
3
2
|
Box,
|
|
4
3
|
Button,
|
|
5
4
|
Container,
|
|
6
5
|
Heading,
|
|
7
6
|
Icon,
|
|
7
|
+
type ILevoBlockBaseProps,
|
|
8
8
|
Media,
|
|
9
9
|
Section,
|
|
10
10
|
Typography,
|
|
@@ -14,9 +14,7 @@ import dayjs from "dayjs";
|
|
|
14
14
|
|
|
15
15
|
import type { IBlogListing3Content } from "./blog-listing-3.schema";
|
|
16
16
|
|
|
17
|
-
const BlogListing3: React.FC<
|
|
18
|
-
ILevoBlockBaseProps<IBlogListing3Content>
|
|
19
|
-
> = ({}) => {
|
|
17
|
+
const BlogListing3: React.FC<ILevoBlockBaseProps<IBlogListing3Content>> = ({}) => {
|
|
20
18
|
const { data, query, setQuery, meta } = useContentEngine("blogs");
|
|
21
19
|
|
|
22
20
|
const handleNext = () => setQuery({ page: (query?.page || 0) + 1 });
|
|
@@ -34,11 +32,7 @@ const BlogListing3: React.FC<
|
|
|
34
32
|
</Box>
|
|
35
33
|
<Box elementKey="blogs_levoGroup" data-levo_group>
|
|
36
34
|
{(data || [])?.map((item: any, index: number) => (
|
|
37
|
-
<Box
|
|
38
|
-
key={`blogs.${index}`}
|
|
39
|
-
data-levo_group_item
|
|
40
|
-
elementKey={`blogs.${index}.blog`}
|
|
41
|
-
>
|
|
35
|
+
<Box key={`blogs.${index}`} data-levo_group_item elementKey={`blogs.${index}.blog`}>
|
|
42
36
|
<Media elementKey={`blogs.${index}.media`} alt="Blog Media" />
|
|
43
37
|
<Box elementKey={`blogs.${index}.blog-info-wrapper`}>
|
|
44
38
|
<Box elementKey={`blogs.${index}.blog-content`}>
|
|
@@ -47,9 +41,7 @@ const BlogListing3: React.FC<
|
|
|
47
41
|
<Typography elementKey={`blogs.${index}.blog-type`}>
|
|
48
42
|
{data?.[index]?.["publish-date"] &&
|
|
49
43
|
dayjs(data?.[index]?.["publish-date"]).isValid()
|
|
50
|
-
? dayjs(data?.[index]?.["publish-date"]).format(
|
|
51
|
-
"DD MMM, YYYY",
|
|
52
|
-
)
|
|
44
|
+
? dayjs(data?.[index]?.["publish-date"]).format("DD MMM, YYYY")
|
|
53
45
|
: " "}
|
|
54
46
|
</Typography>
|
|
55
47
|
</Box>
|
|
@@ -61,21 +53,23 @@ const BlogListing3: React.FC<
|
|
|
61
53
|
</Box>
|
|
62
54
|
))}
|
|
63
55
|
</Box>
|
|
64
|
-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
56
|
+
{(meta?.pages || 0) > 1 && (
|
|
57
|
+
<Box elementKey="pagination-wrapper">
|
|
58
|
+
<Button
|
|
59
|
+
elementKey="pagination-left"
|
|
60
|
+
disabled={query?.page === 1}
|
|
61
|
+
onClick={handlePrevious}
|
|
62
|
+
/>
|
|
63
|
+
<Typography elementKey="pagination-text">
|
|
64
|
+
{`${query?.page || 0}/${meta?.pages || 0}`}
|
|
65
|
+
</Typography>
|
|
66
|
+
<Button
|
|
67
|
+
elementKey="pagination-right"
|
|
68
|
+
onClick={handleNext}
|
|
69
|
+
disabled={query?.page === meta?.pages}
|
|
70
|
+
/>
|
|
71
|
+
</Box>
|
|
72
|
+
)}
|
|
79
73
|
</Container>
|
|
80
74
|
</Section>
|
|
81
75
|
);
|
|
@@ -7,20 +7,13 @@ const MEDIA = {
|
|
|
7
7
|
kind: "image",
|
|
8
8
|
mimetype: "image/png",
|
|
9
9
|
srcset: {
|
|
10
|
-
"1080w":
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
18
|
-
"640w":
|
|
19
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
20
|
-
"750w":
|
|
21
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
22
|
-
"828w":
|
|
23
|
-
"https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
10
|
+
"1080w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp",
|
|
11
|
+
"1200w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp",
|
|
12
|
+
"1920w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp",
|
|
13
|
+
"320w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp",
|
|
14
|
+
"640w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp",
|
|
15
|
+
"750w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp",
|
|
16
|
+
"828w": "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp",
|
|
24
17
|
path: "https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-640w.webp 640w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1080w.webp 1080w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1200w.webp 1200w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-1920w.webp 1920w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-320w.webp 320w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-750w.webp 750w, https://space.levo.so/WLZ1TXTD/defaultblue-tryFJ012mgyH-828w.webp 828w",
|
|
25
18
|
},
|
|
26
19
|
},
|
|
@@ -74,8 +67,7 @@ export const BlogPost1: IBlock = {
|
|
|
74
67
|
label: "Layout",
|
|
75
68
|
field_interface: "LayoutWidget",
|
|
76
69
|
hint: {
|
|
77
|
-
prompt_description:
|
|
78
|
-
"Defines the overall page structure and layout. No content needed.",
|
|
70
|
+
prompt_description: "Defines the overall page structure and layout. No content needed.",
|
|
79
71
|
},
|
|
80
72
|
},
|
|
81
73
|
{
|
|
@@ -131,8 +123,7 @@ export const BlogPost1: IBlock = {
|
|
|
131
123
|
label: "Title Section",
|
|
132
124
|
field_interface: "BoxWidget",
|
|
133
125
|
hint: {
|
|
134
|
-
prompt_description:
|
|
135
|
-
"Container for the main blog post headline. No content needed here.",
|
|
126
|
+
prompt_description: "Container for the main blog post headline. No content needed here.",
|
|
136
127
|
},
|
|
137
128
|
},
|
|
138
129
|
{
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import type { ILevoBlockBaseProps } from "@levo-so/studio";
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Container,
|
|
5
|
-
Heading,
|
|
6
|
-
Icon,
|
|
7
|
-
Media,
|
|
8
|
-
Section,
|
|
9
|
-
Typography,
|
|
10
|
-
} from "@levo-so/studio";
|
|
2
|
+
import { Box, Container, Heading, Icon, Media, Section, Typography } from "@levo-so/studio";
|
|
11
3
|
import dayjs from "dayjs";
|
|
12
4
|
import type React from "react";
|
|
13
5
|
|
|
14
6
|
import type { IBlogPost1Content } from "./blog-post-1.schema";
|
|
15
7
|
|
|
16
|
-
const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = ({
|
|
17
|
-
content,
|
|
18
|
-
}) => (
|
|
8
|
+
const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = ({ content }) => (
|
|
19
9
|
<Section elementKey="layout">
|
|
20
10
|
<Container elementKey="container">
|
|
21
11
|
<Box elementKey="header-section">
|
|
@@ -31,8 +21,7 @@ const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = ({
|
|
|
31
21
|
<Heading elementKey="author-name" />
|
|
32
22
|
</Box>
|
|
33
23
|
<Typography elementKey="publish-date">
|
|
34
|
-
{content?.["publish-date"] &&
|
|
35
|
-
dayjs(content?.["publish-date"]).isValid()
|
|
24
|
+
{content?.["publish-date"] && dayjs(content?.["publish-date"]).isValid()
|
|
36
25
|
? dayjs(content?.["publish-date"]).format("DD MMM, YYYY")
|
|
37
26
|
: " "}
|
|
38
27
|
</Typography>
|