@npm_leadtech/legal-lib-components 5.2.14 → 5.2.15
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/css/styles.css +23 -98
- package/dist/src/components/atoms/CardPane/CardPane.scss +19 -2
- package/dist/src/components/atoms/CardPane/CardPaneInfo.js +5 -4
- package/dist/src/components/atoms/CardPane/CardPaneInfo.tsx +14 -3
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.d.ts +1 -0
- package/dist/src/components/atoms/CardPane/CardPaneProps.types.ts +1 -0
- package/dist/src/components/molecules/TrustworthyWebsites/TrustworthyWebsites.scss +1 -1
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.scss +2 -8
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.js +2 -2
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.scss +1 -67
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.tsx +1 -24
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSectionProps.types.d.ts +0 -7
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSectionProps.types.ts +0 -7
- package/dist/src/components/sections/BlogSection/BlogSection.js +3 -4
- package/dist/src/components/sections/BlogSection/BlogSection.scss +0 -21
- package/dist/src/components/sections/BlogSection/BlogSection.tsx +4 -8
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +1 -2
- package/dist/src/components/sections/BlogSection/BlogSectionProps.types.ts +1 -2
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.scss +0 -5
- package/package.json +1 -1
package/dist/css/styles.css
CHANGED
|
@@ -1291,10 +1291,22 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
.pane-wrapper:nth-child(3) {
|
|
1293
1293
|
margin-top: 30px;
|
|
1294
|
-
}
|
|
1295
|
-
.pane-wrapper:last-child {
|
|
1296
1294
|
padding-right: 0;
|
|
1297
1295
|
}
|
|
1296
|
+
.pane-wrapper:nth-child(4) {
|
|
1297
|
+
margin-top: 45px;
|
|
1298
|
+
text-align: right;
|
|
1299
|
+
padding: 0;
|
|
1300
|
+
}
|
|
1301
|
+
@media (min-width: 328px) and (max-width: 720px) {
|
|
1302
|
+
.pane-wrapper:nth-child(4) {
|
|
1303
|
+
text-align: left;
|
|
1304
|
+
margin-top: 16px;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
.pane-wrapper:nth-child(4) .pane--title {
|
|
1308
|
+
font-size: 0.75rem;
|
|
1309
|
+
}
|
|
1298
1310
|
.pane-wrapper span {
|
|
1299
1311
|
display: block;
|
|
1300
1312
|
}
|
|
@@ -1303,6 +1315,8 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
|
|
|
1303
1315
|
text-indent: -0.625rem;
|
|
1304
1316
|
}
|
|
1305
1317
|
.pane--title {
|
|
1318
|
+
border: none;
|
|
1319
|
+
background: none;
|
|
1306
1320
|
color: var(--neutral-neutral-2);
|
|
1307
1321
|
font-size: 0.875rem;
|
|
1308
1322
|
line-height: 1.29;
|
|
@@ -1322,6 +1336,9 @@ html[data-theme=lawdistrict] .e-button.--primary-3 {
|
|
|
1322
1336
|
font-size: 0.875rem;
|
|
1323
1337
|
}
|
|
1324
1338
|
}
|
|
1339
|
+
.pane--title.pane--title--button {
|
|
1340
|
+
cursor: pointer;
|
|
1341
|
+
}
|
|
1325
1342
|
.pane--description {
|
|
1326
1343
|
color: var(--neutral-main);
|
|
1327
1344
|
font-size: 1rem;
|
|
@@ -6410,7 +6427,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
6410
6427
|
}
|
|
6411
6428
|
.trustworthy-websites__image {
|
|
6412
6429
|
margin: 1.5rem;
|
|
6413
|
-
max-width:
|
|
6430
|
+
max-width: 8rem;
|
|
6414
6431
|
}
|
|
6415
6432
|
.type-modules-list {
|
|
6416
6433
|
display: flex;
|
|
@@ -6851,15 +6868,8 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
6851
6868
|
}
|
|
6852
6869
|
.guidelines-section-main {
|
|
6853
6870
|
display: flex;
|
|
6854
|
-
flex-direction:
|
|
6871
|
+
flex-direction: row;
|
|
6855
6872
|
flex-wrap: nowrap;
|
|
6856
|
-
padding: 1.5rem;
|
|
6857
|
-
}
|
|
6858
|
-
@media (min-width: 960px) {
|
|
6859
|
-
.guidelines-section-main {
|
|
6860
|
-
flex-direction: row;
|
|
6861
|
-
padding: 0;
|
|
6862
|
-
}
|
|
6863
6873
|
}
|
|
6864
6874
|
.guidelines-section__texts {
|
|
6865
6875
|
flex-basis: 50%;
|
|
@@ -6916,7 +6926,7 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
6916
6926
|
}
|
|
6917
6927
|
}
|
|
6918
6928
|
.guidelines-section__image.is-mobile {
|
|
6919
|
-
display:
|
|
6929
|
+
display: flex;
|
|
6920
6930
|
}
|
|
6921
6931
|
@media (min-width: 720px) {
|
|
6922
6932
|
.guidelines-section__image.is-mobile {
|
|
@@ -7518,14 +7528,9 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
7518
7528
|
flex-direction: column;
|
|
7519
7529
|
box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
|
|
7520
7530
|
background: var(--others-white);
|
|
7521
|
-
transform: translateY(-
|
|
7531
|
+
transform: translateY(-50%);
|
|
7522
7532
|
padding: 1.5rem 0;
|
|
7523
7533
|
}
|
|
7524
|
-
@media (min-width: 960px) {
|
|
7525
|
-
.as-seen-in-section-box .as-seen-in-section {
|
|
7526
|
-
transform: translateY(-50%);
|
|
7527
|
-
}
|
|
7528
|
-
}
|
|
7529
7534
|
.as-seen-in-section-box .as-seen-in-section__title {
|
|
7530
7535
|
text-align: center;
|
|
7531
7536
|
font-size: 32px;
|
|
@@ -7536,61 +7541,6 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
7536
7541
|
letter-spacing: -0.3px;
|
|
7537
7542
|
margin: 1rem 0;
|
|
7538
7543
|
}
|
|
7539
|
-
.contact-us-section {
|
|
7540
|
-
display: flex;
|
|
7541
|
-
flex-direction: column;
|
|
7542
|
-
transform: translateY(-5rem);
|
|
7543
|
-
color: var(--neutral-neutral-1);
|
|
7544
|
-
margin-top: 1rem;
|
|
7545
|
-
}
|
|
7546
|
-
.contact-us-section__title {
|
|
7547
|
-
text-align: center;
|
|
7548
|
-
font-size: 32px;
|
|
7549
|
-
font-family: "Lora", serif;
|
|
7550
|
-
font-style: normal;
|
|
7551
|
-
font-weight: 400;
|
|
7552
|
-
line-height: 42px;
|
|
7553
|
-
letter-spacing: -0.3px;
|
|
7554
|
-
margin: 1rem 0;
|
|
7555
|
-
}
|
|
7556
|
-
.contact-us-section__text {
|
|
7557
|
-
text-align: center;
|
|
7558
|
-
font-style: normal;
|
|
7559
|
-
font-weight: 400;
|
|
7560
|
-
margin: 0 0 2rem 0;
|
|
7561
|
-
}
|
|
7562
|
-
.contact-us-section-blocks {
|
|
7563
|
-
display: flex;
|
|
7564
|
-
justify-content: center;
|
|
7565
|
-
flex-direction: column;
|
|
7566
|
-
gap: 1rem;
|
|
7567
|
-
}
|
|
7568
|
-
@media (min-width: 960px) {
|
|
7569
|
-
.contact-us-section-blocks {
|
|
7570
|
-
flex-direction: row;
|
|
7571
|
-
gap: 2.5rem;
|
|
7572
|
-
}
|
|
7573
|
-
}
|
|
7574
|
-
.contact-us-section-blocks__item {
|
|
7575
|
-
display: flex;
|
|
7576
|
-
flex-direction: column;
|
|
7577
|
-
align-items: center;
|
|
7578
|
-
background-color: white;
|
|
7579
|
-
box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
|
|
7580
|
-
border-radius: 0.25rem;
|
|
7581
|
-
min-width: 200px;
|
|
7582
|
-
padding: 1rem;
|
|
7583
|
-
}
|
|
7584
|
-
.contact-us-section-blocks__item__image {
|
|
7585
|
-
width: 2rem;
|
|
7586
|
-
}
|
|
7587
|
-
.contact-us-section-blocks__item__title {
|
|
7588
|
-
margin-top: 1rem;
|
|
7589
|
-
line-height: 1rem;
|
|
7590
|
-
}
|
|
7591
|
-
.contact-us-section-blocks__item__text {
|
|
7592
|
-
font-size: 14px;
|
|
7593
|
-
}
|
|
7594
7544
|
.benefit-ratafia-section {
|
|
7595
7545
|
display: flex;
|
|
7596
7546
|
justify-content: center;
|
|
@@ -7659,16 +7609,6 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
7659
7609
|
max-width: 1200px;
|
|
7660
7610
|
}
|
|
7661
7611
|
}
|
|
7662
|
-
.blog .blog__description {
|
|
7663
|
-
font-family: Inter;
|
|
7664
|
-
font-size: 16px;
|
|
7665
|
-
font-weight: 400;
|
|
7666
|
-
line-height: 22px;
|
|
7667
|
-
letter-spacing: -0.3px;
|
|
7668
|
-
text-align: left;
|
|
7669
|
-
color: #6d7275;
|
|
7670
|
-
margin: 1rem 0 1.5rem 0;
|
|
7671
|
-
}
|
|
7672
7612
|
.blog .blog__title {
|
|
7673
7613
|
color: var(--primary-main-dark-1);
|
|
7674
7614
|
}
|
|
@@ -7677,15 +7617,6 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
7677
7617
|
margin-bottom: 3rem;
|
|
7678
7618
|
}
|
|
7679
7619
|
}
|
|
7680
|
-
.blog .blog__title.category-product-title {
|
|
7681
|
-
margin-bottom: 0;
|
|
7682
|
-
font-family: Inter;
|
|
7683
|
-
font-size: 28px;
|
|
7684
|
-
font-weight: 700;
|
|
7685
|
-
line-height: 32px;
|
|
7686
|
-
letter-spacing: -0.3px;
|
|
7687
|
-
text-align: left;
|
|
7688
|
-
}
|
|
7689
7620
|
.blog .cta-button {
|
|
7690
7621
|
width: 100%;
|
|
7691
7622
|
margin-top: 3rem;
|
|
@@ -8261,12 +8192,6 @@ html[data-theme=lawdistrict] .document-status.--is-new .icon {
|
|
|
8261
8192
|
width: 100%;
|
|
8262
8193
|
margin: 0 auto;
|
|
8263
8194
|
text-align: center;
|
|
8264
|
-
padding: 1.5rem;
|
|
8265
|
-
}
|
|
8266
|
-
@media (min-width: 960px) {
|
|
8267
|
-
.people-say {
|
|
8268
|
-
padding: 0;
|
|
8269
|
-
}
|
|
8270
8195
|
}
|
|
8271
8196
|
@media (min-width: 1200px) {
|
|
8272
8197
|
.people-say {
|
|
@@ -57,10 +57,21 @@
|
|
|
57
57
|
}
|
|
58
58
|
&:nth-child(3) {
|
|
59
59
|
margin-top: 30px;
|
|
60
|
-
}
|
|
61
|
-
&:last-child {
|
|
62
60
|
padding-right: 0;
|
|
63
61
|
}
|
|
62
|
+
&:nth-child(4) {
|
|
63
|
+
margin-top: 45px;
|
|
64
|
+
text-align: right;
|
|
65
|
+
padding: 0;
|
|
66
|
+
@media (min-width: #{$xxs}) and (max-width: #{$sm}) {
|
|
67
|
+
text-align: left;
|
|
68
|
+
margin-top: 16px;
|
|
69
|
+
}
|
|
70
|
+
.pane--title {
|
|
71
|
+
font-size: 0.75rem;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
64
75
|
span {
|
|
65
76
|
display: block;
|
|
66
77
|
&.marker {
|
|
@@ -70,6 +81,8 @@
|
|
|
70
81
|
}
|
|
71
82
|
}
|
|
72
83
|
&--title {
|
|
84
|
+
border: none;
|
|
85
|
+
background: none;
|
|
73
86
|
color: get-color(neutral, neutral-2);
|
|
74
87
|
font-size: 0.875rem;
|
|
75
88
|
line-height: 1.29;
|
|
@@ -82,6 +95,10 @@
|
|
|
82
95
|
@include laptop {
|
|
83
96
|
font-size: 0.875rem;
|
|
84
97
|
}
|
|
98
|
+
|
|
99
|
+
&.pane--title--button {
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
85
102
|
}
|
|
86
103
|
&--description {
|
|
87
104
|
color: get-color(neutral);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const CardPaneInfo = ({ description, subdescription, id, title }) => {
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const CardPaneInfo = ({ description, subdescription, id, title, handleClick }) => {
|
|
3
|
+
const paneTitle = (_jsx(_Fragment, { children: handleClick ? (_jsx("button", { onClick: handleClick, className: 'pane--title pane--title--button', children: title })) : (_jsx("div", { className: 'pane--title', children: title })) }));
|
|
3
4
|
if (description === 'Active' || description === 'Inactive') {
|
|
4
5
|
let descriptionClass;
|
|
5
6
|
if (description === 'Active') {
|
|
@@ -8,8 +9,8 @@ const CardPaneInfo = ({ description, subdescription, id, title }) => {
|
|
|
8
9
|
else if (description === 'Inactive') {
|
|
9
10
|
descriptionClass = 'pane--description--inactive';
|
|
10
11
|
}
|
|
11
|
-
return (_jsxs("div", { className: 'pane-wrapper', children: [
|
|
12
|
+
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("li", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
|
|
12
13
|
}
|
|
13
|
-
return (_jsxs("div", { className: 'pane-wrapper', children: [
|
|
14
|
+
return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsxs("div", { className: 'pane--description', children: [description, subdescription !== undefined && _jsx("span", { className: 'pane--description--subdescription', children: subdescription })] })] }, id));
|
|
14
15
|
};
|
|
15
16
|
export default CardPaneInfo;
|
|
@@ -4,7 +4,18 @@ import React, { type FC } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { type CardPaneInfoProps } from './CardPaneProps.types'
|
|
6
6
|
|
|
7
|
-
const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title }) => {
|
|
7
|
+
const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id, title, handleClick }) => {
|
|
8
|
+
const paneTitle = (
|
|
9
|
+
<>
|
|
10
|
+
{handleClick ? (
|
|
11
|
+
<button onClick={handleClick} className='pane--title pane--title--button'>
|
|
12
|
+
{title}
|
|
13
|
+
</button>
|
|
14
|
+
) : (
|
|
15
|
+
<div className='pane--title'>{title}</div>
|
|
16
|
+
)}
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
8
19
|
if (description === 'Active' || description === 'Inactive') {
|
|
9
20
|
let descriptionClass
|
|
10
21
|
if (description === 'Active') {
|
|
@@ -14,7 +25,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
|
|
|
14
25
|
}
|
|
15
26
|
return (
|
|
16
27
|
<div key={id} className='pane-wrapper'>
|
|
17
|
-
|
|
28
|
+
{paneTitle}
|
|
18
29
|
<div data-testid='description-div' className={descriptionClass}>
|
|
19
30
|
<li className='position'>
|
|
20
31
|
<div className='marker'>{description}</div>
|
|
@@ -26,7 +37,7 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ description, subdescription, id,
|
|
|
26
37
|
|
|
27
38
|
return (
|
|
28
39
|
<div key={id} className='pane-wrapper'>
|
|
29
|
-
|
|
40
|
+
{paneTitle}
|
|
30
41
|
<div className='pane--description'>
|
|
31
42
|
{description}
|
|
32
43
|
{subdescription !== undefined && <span className='pane--description--subdescription'>{subdescription}</span>}
|
|
@@ -4,14 +4,8 @@
|
|
|
4
4
|
.guidelines-section {
|
|
5
5
|
&-main {
|
|
6
6
|
display: flex;
|
|
7
|
-
flex-direction:
|
|
7
|
+
flex-direction: row;
|
|
8
8
|
flex-wrap: nowrap;
|
|
9
|
-
padding: 1.5rem;
|
|
10
|
-
|
|
11
|
-
@include laptop {
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
9
|
}
|
|
16
10
|
|
|
17
11
|
&__texts {
|
|
@@ -71,7 +65,7 @@
|
|
|
71
65
|
}
|
|
72
66
|
|
|
73
67
|
&.is-mobile {
|
|
74
|
-
display:
|
|
68
|
+
display: flex;
|
|
75
69
|
|
|
76
70
|
@include landscape-tablets {
|
|
77
71
|
display: none;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AsSeeInContent } from '../../organisms';
|
|
3
3
|
// import './AsSeeInSection.scss'
|
|
4
|
-
const AsSeeInSection = ({ title, contentAsSeeIn
|
|
4
|
+
const AsSeeInSection = ({ title, contentAsSeeIn }) => {
|
|
5
5
|
if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
|
|
6
6
|
return null;
|
|
7
7
|
}
|
|
8
|
-
return (
|
|
8
|
+
return (_jsx("section", { className: 'as-seen-in-section-box', children: _jsxs("div", { className: 'as-seen-in-section wrapper', children: [_jsx("h2", { className: 'as-seen-in-section__title', children: title }), _jsx(AsSeeInContent, { trustWorthyImages: contentAsSeeIn.trustWorthyImages, children: contentAsSeeIn.children })] }) }));
|
|
9
9
|
};
|
|
10
10
|
export default AsSeeInSection;
|
|
@@ -14,13 +14,9 @@
|
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
|
|
16
16
|
background: get-color(others, white);
|
|
17
|
-
transform: translateY(-
|
|
17
|
+
transform: translateY(-50%);
|
|
18
18
|
padding: 1.5rem 0;
|
|
19
19
|
|
|
20
|
-
@include laptop {
|
|
21
|
-
transform: translateY(-50%);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
20
|
&__title {
|
|
25
21
|
text-align: center;
|
|
26
22
|
font-size: 32px;
|
|
@@ -33,65 +29,3 @@
|
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
|
-
|
|
37
|
-
.contact-us-section {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
transform: translateY(-5rem);
|
|
41
|
-
color: var(--neutral-neutral-1);
|
|
42
|
-
margin-top: 1rem;
|
|
43
|
-
|
|
44
|
-
&__title {
|
|
45
|
-
text-align: center;
|
|
46
|
-
font-size: 32px;
|
|
47
|
-
font-family: $font-serif;
|
|
48
|
-
font-style: normal;
|
|
49
|
-
font-weight: 400;
|
|
50
|
-
line-height: 42px;
|
|
51
|
-
letter-spacing: -0.3px;
|
|
52
|
-
margin: 1rem 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&__text {
|
|
56
|
-
text-align: center;
|
|
57
|
-
font-style: normal;
|
|
58
|
-
font-weight: 400;
|
|
59
|
-
margin: 0 0 2rem 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&-blocks {
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
flex-direction: column;
|
|
66
|
-
gap: 1rem;
|
|
67
|
-
|
|
68
|
-
@include laptop {
|
|
69
|
-
flex-direction: row;
|
|
70
|
-
gap: 2.5rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&__item {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
align-items: center;
|
|
77
|
-
background-color: white;
|
|
78
|
-
box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25);
|
|
79
|
-
border-radius: 0.25rem;
|
|
80
|
-
min-width: 200px;
|
|
81
|
-
padding: 1rem;
|
|
82
|
-
|
|
83
|
-
&__image {
|
|
84
|
-
width: 2rem;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&__title {
|
|
88
|
-
margin-top: 1rem;
|
|
89
|
-
line-height: 1rem;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&__text {
|
|
93
|
-
font-size: 14px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -4,13 +4,7 @@ import { AsSeeInContent } from '../../organisms'
|
|
|
4
4
|
import { type AsSeeInSectionProps } from './AsSeeInSectionProps.types'
|
|
5
5
|
// import './AsSeeInSection.scss'
|
|
6
6
|
|
|
7
|
-
const AsSeeInSection: FC<AsSeeInSectionProps> = ({
|
|
8
|
-
title,
|
|
9
|
-
contentAsSeeIn,
|
|
10
|
-
contactSectionTitle,
|
|
11
|
-
contactSectionText,
|
|
12
|
-
contactSectionBlocks
|
|
13
|
-
}) => {
|
|
7
|
+
const AsSeeInSection: FC<AsSeeInSectionProps> = ({ title, contentAsSeeIn }) => {
|
|
14
8
|
if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
|
|
15
9
|
return null
|
|
16
10
|
}
|
|
@@ -21,23 +15,6 @@ const AsSeeInSection: FC<AsSeeInSectionProps> = ({
|
|
|
21
15
|
<h2 className='as-seen-in-section__title'>{title}</h2>
|
|
22
16
|
<AsSeeInContent trustWorthyImages={contentAsSeeIn.trustWorthyImages}>{contentAsSeeIn.children}</AsSeeInContent>
|
|
23
17
|
</div>
|
|
24
|
-
{Array.isArray(contactSectionBlocks) && contactSectionBlocks.length > 0 && (
|
|
25
|
-
<div className='contact-us-section'>
|
|
26
|
-
<h2 className='contact-us-section__title'>{contactSectionTitle}</h2>
|
|
27
|
-
<p className='contact-us-section__text'>{contactSectionText}</p>
|
|
28
|
-
{Array.isArray(contactSectionBlocks) && (
|
|
29
|
-
<div className='contact-us-section-blocks'>
|
|
30
|
-
{contactSectionBlocks.map((item, index) => (
|
|
31
|
-
<div className='contact-us-section-blocks__item' key={index}>
|
|
32
|
-
<div className='contact-us-section-blocks__item__image'>{item.image}</div>
|
|
33
|
-
<div className='contact-us-section-blocks__item__title'>{item.title}</div>
|
|
34
|
-
<p className='contact-us-section-blocks__item__text'>{item.body}</p>
|
|
35
|
-
</div>
|
|
36
|
-
))}
|
|
37
|
-
</div>
|
|
38
|
-
)}
|
|
39
|
-
</div>
|
|
40
|
-
)}
|
|
41
18
|
</section>
|
|
42
19
|
)
|
|
43
20
|
}
|
|
@@ -2,11 +2,4 @@ import { type AsSeeInContentProps } from '../../organisms/AsSeeInContent';
|
|
|
2
2
|
export interface AsSeeInSectionProps {
|
|
3
3
|
title: string;
|
|
4
4
|
contentAsSeeIn: AsSeeInContentProps;
|
|
5
|
-
contactSectionTitle: string;
|
|
6
|
-
contactSectionText: string;
|
|
7
|
-
contactSectionBlocks?: {
|
|
8
|
-
image: React.ReactNode;
|
|
9
|
-
title: string;
|
|
10
|
-
body: string;
|
|
11
|
-
}[];
|
|
12
5
|
}
|
|
@@ -3,11 +3,4 @@ import { type AsSeeInContentProps } from '../../organisms/AsSeeInContent'
|
|
|
3
3
|
export interface AsSeeInSectionProps {
|
|
4
4
|
title: string
|
|
5
5
|
contentAsSeeIn: AsSeeInContentProps
|
|
6
|
-
contactSectionTitle: string
|
|
7
|
-
contactSectionText: string
|
|
8
|
-
contactSectionBlocks?: {
|
|
9
|
-
image: React.ReactNode
|
|
10
|
-
title: string
|
|
11
|
-
body: string
|
|
12
|
-
}[]
|
|
13
6
|
}
|
|
@@ -2,10 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { ArticlesList } from '../../organisms';
|
|
3
3
|
import { Button } from '../../atoms';
|
|
4
4
|
// import './BlogSection.scss'
|
|
5
|
-
const BlogSection = ({ blogTitle, blogCta
|
|
5
|
+
const BlogSection = ({ blogTitle, blogCta, articles }) => {
|
|
6
6
|
if (articles.articles?.length === 0)
|
|
7
|
-
return;
|
|
8
|
-
|
|
9
|
-
return (_jsxs("div", { className: 'blog', children: [_jsx("h2", { className: `serif --super-large blog__title ${categoryProductTitle ? 'category-product-title' : ''}`, children: blogTitle }), blogDescription && _jsx("p", { className: 'blog__description', children: blogDescription }), _jsx(ArticlesList, { articles: articles.articles }), blogCta && _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
|
|
7
|
+
return null;
|
|
8
|
+
return (_jsxs("div", { className: 'blog', children: [_jsx("h2", { className: 'serif --super-large blog__title', children: blogTitle }), _jsx(ArticlesList, { articles: articles.articles }), _jsx(Button, { dataQa: '', color: 'secondary', label: blogCta, givenClass: 'cta-button', link: '/articles' })] }));
|
|
10
9
|
};
|
|
11
10
|
export default BlogSection;
|
|
@@ -14,33 +14,12 @@
|
|
|
14
14
|
max-width: $lg;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.blog__description {
|
|
18
|
-
font-family: Inter;
|
|
19
|
-
font-size: 16px;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
line-height: 22px;
|
|
22
|
-
letter-spacing: -0.3px;
|
|
23
|
-
text-align: left;
|
|
24
|
-
color: #6d7275;
|
|
25
|
-
margin: 1rem 0 1.5rem 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
17
|
.blog__title {
|
|
29
18
|
color: get-color(primary, main-dark-1);
|
|
30
19
|
|
|
31
20
|
@include laptop {
|
|
32
21
|
margin-bottom: 3rem;
|
|
33
22
|
}
|
|
34
|
-
|
|
35
|
-
&.category-product-title {
|
|
36
|
-
margin-bottom: 0;
|
|
37
|
-
font-family: Inter;
|
|
38
|
-
font-size: 28px;
|
|
39
|
-
font-weight: 700;
|
|
40
|
-
line-height: 32px;
|
|
41
|
-
letter-spacing: -0.3px;
|
|
42
|
-
text-align: left;
|
|
43
|
-
}
|
|
44
23
|
}
|
|
45
24
|
|
|
46
25
|
.cta-button {
|
|
@@ -6,18 +6,14 @@ import { type BlogSectionProps } from './BlogSectionProps.types'
|
|
|
6
6
|
import { Button } from '../../atoms'
|
|
7
7
|
// import './BlogSection.scss'
|
|
8
8
|
|
|
9
|
-
const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta
|
|
10
|
-
if (articles.articles?.length === 0) return
|
|
11
|
-
const categoryProductTitle = !!blogDescription
|
|
9
|
+
const BlogSection: FC<BlogSectionProps> = ({ blogTitle, blogCta, articles }) => {
|
|
10
|
+
if (articles.articles?.length === 0) return null
|
|
12
11
|
|
|
13
12
|
return (
|
|
14
13
|
<div className={'blog'}>
|
|
15
|
-
<h2 className={
|
|
16
|
-
{blogTitle}
|
|
17
|
-
</h2>
|
|
18
|
-
{blogDescription && <p className='blog__description'>{blogDescription}</p>}
|
|
14
|
+
<h2 className={'serif --super-large blog__title'}>{blogTitle}</h2>
|
|
19
15
|
<ArticlesList articles={articles.articles} />
|
|
20
|
-
|
|
16
|
+
<Button dataQa='' color='secondary' label={blogCta} givenClass='cta-button' link={'/articles'} />
|
|
21
17
|
</div>
|
|
22
18
|
)
|
|
23
19
|
}
|