@npm_leadtech/legal-lib-components 7.5.6 → 7.5.8
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/src/components/organisms/GuidelinesContent/GuidelinesContent.js +1 -1
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.js +11 -12
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.styled.ts +11 -12
- package/dist/src/components/organisms/GuidelinesContent/GuidelinesContent.tsx +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button, RichTextInner, RichTextStrapi } from '../../atoms';
|
|
3
3
|
import { GuideslinesContentStyled } from './GuidelinesContent.styled';
|
|
4
4
|
const GuidelinesContent = ({ title, detail, children, tryNowText, tryNowButtonText, tryNowButtonLink, tryNowButtonDataQa, tryNowImage }) => {
|
|
5
|
-
return (_jsxs(GuideslinesContentStyled, { children: [_jsx("div", { className: 'guidelines-section-main wrapper', children: _jsxs("div", { className: 'guidelines-section__texts', children: [_jsx("h2", { className: 'guidelines-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: children })] }) }), Array.isArray(detail) && (_jsx("div", { className: 'guidelines-section-detail wrapper', children: detail.map((item, index) => (_jsxs("div", { className: 'guidelines-section-detail__item', children: [_jsx("div", { className: 'guidelines-section-detail__item__image', children: item.image }), _jsx("
|
|
5
|
+
return (_jsxs(GuideslinesContentStyled, { children: [_jsx("div", { className: 'guidelines-section-main wrapper', children: _jsxs("div", { className: 'guidelines-section__texts', children: [_jsx("h2", { className: 'guidelines-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: children })] }) }), Array.isArray(detail) && (_jsx("div", { className: 'guidelines-section-detail wrapper', children: detail.map((item, index) => (_jsxs("div", { className: 'guidelines-section-detail__item', children: [_jsx("div", { className: 'guidelines-section-detail__item__image', children: item.image }), _jsx("h3", { className: 'guidelines-section-detail__item__title', children: item.title }), _jsx(RichTextStrapi, { html: item.body?.data?.childMarkdownRemark?.html })] }, index))) })), _jsx("div", { className: 'guidelines-section-trial wrapper', children: _jsxs("div", { className: 'guidelines-section-trial__item', children: [_jsx("div", { className: 'guidelines-section__image is-mobile', children: tryNowImage }), _jsxs("div", { className: 'guidelines-section-trial__texts', children: [_jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: tryNowText }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: tryNowButtonDataQa, link: tryNowButtonLink, color: 'primary', label: tryNowButtonText })] }), _jsx("div", { className: 'guidelines-section__image big-devices', children: tryNowImage })] }) })] }));
|
|
6
6
|
};
|
|
7
7
|
export default GuidelinesContent;
|
|
@@ -25,17 +25,18 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
25
25
|
letter-spacing: -0.3px;
|
|
26
26
|
|
|
27
27
|
@media ${device['landscape-tablets']} {
|
|
28
|
-
margin-left:
|
|
28
|
+
margin-left: 2rem;
|
|
29
29
|
margin-bottom: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&__title {
|
|
33
|
-
font-family: var(--font-
|
|
33
|
+
font-family: var(--font-sans);
|
|
34
34
|
margin-bottom: 2rem;
|
|
35
35
|
text-align: center;
|
|
36
|
-
font-size: 28px;
|
|
37
|
-
font-style: normal;
|
|
38
36
|
font-weight: 700;
|
|
37
|
+
font-size: 1.8rem;
|
|
38
|
+
color: var(--neutral-neutral-1);
|
|
39
|
+
font-style: normal;
|
|
39
40
|
line-height: 32px;
|
|
40
41
|
letter-spacing: -0.3px;
|
|
41
42
|
|
|
@@ -80,7 +81,7 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
&__title {
|
|
83
|
-
font-family: var(--font-
|
|
84
|
+
font-family: var(--font-sans);
|
|
84
85
|
font-style: normal;
|
|
85
86
|
font-weight: 700;
|
|
86
87
|
font-size: 18px;
|
|
@@ -159,8 +160,6 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
159
160
|
padding: 1.5rem;
|
|
160
161
|
flex-direction: row;
|
|
161
162
|
}
|
|
162
|
-
}
|
|
163
|
-
padding: 1.5rem;
|
|
164
163
|
}
|
|
165
164
|
}
|
|
166
165
|
|
|
@@ -169,11 +168,11 @@ export const GuideslinesContentStyled = styled.div `
|
|
|
169
168
|
margin-bottom: 2rem;
|
|
170
169
|
|
|
171
170
|
&.big-devices {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
&.is-mobile {
|
|
174
|
+
display: flex;
|
|
175
|
+
}
|
|
177
176
|
|
|
178
177
|
@media ${device.laptop} {
|
|
179
178
|
&.big-devices {
|
|
@@ -26,17 +26,18 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
26
26
|
letter-spacing: -0.3px;
|
|
27
27
|
|
|
28
28
|
@media ${device['landscape-tablets']} {
|
|
29
|
-
margin-left:
|
|
29
|
+
margin-left: 2rem;
|
|
30
30
|
margin-bottom: 0;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&__title {
|
|
34
|
-
font-family: var(--font-
|
|
34
|
+
font-family: var(--font-sans);
|
|
35
35
|
margin-bottom: 2rem;
|
|
36
36
|
text-align: center;
|
|
37
|
-
font-size: 28px;
|
|
38
|
-
font-style: normal;
|
|
39
37
|
font-weight: 700;
|
|
38
|
+
font-size: 1.8rem;
|
|
39
|
+
color: var(--neutral-neutral-1);
|
|
40
|
+
font-style: normal;
|
|
40
41
|
line-height: 32px;
|
|
41
42
|
letter-spacing: -0.3px;
|
|
42
43
|
|
|
@@ -81,7 +82,7 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
&__title {
|
|
84
|
-
font-family: var(--font-
|
|
85
|
+
font-family: var(--font-sans);
|
|
85
86
|
font-style: normal;
|
|
86
87
|
font-weight: 700;
|
|
87
88
|
font-size: 18px;
|
|
@@ -160,8 +161,6 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
160
161
|
padding: 1.5rem;
|
|
161
162
|
flex-direction: row;
|
|
162
163
|
}
|
|
163
|
-
}
|
|
164
|
-
padding: 1.5rem;
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
166
|
|
|
@@ -170,11 +169,11 @@ export const GuideslinesContentStyled = styled.div`
|
|
|
170
169
|
margin-bottom: 2rem;
|
|
171
170
|
|
|
172
171
|
&.big-devices {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
&.is-mobile {
|
|
175
|
+
display: flex;
|
|
176
|
+
}
|
|
178
177
|
|
|
179
178
|
@media ${device.laptop} {
|
|
180
179
|
&.big-devices {
|
|
@@ -27,7 +27,7 @@ const GuidelinesContent: FC<GuidelinesContentProps> = ({
|
|
|
27
27
|
{detail.map((item, index) => (
|
|
28
28
|
<div className='guidelines-section-detail__item' key={index}>
|
|
29
29
|
<div className='guidelines-section-detail__item__image'>{item.image}</div>
|
|
30
|
-
<
|
|
30
|
+
<h3 className='guidelines-section-detail__item__title'>{item.title}</h3>
|
|
31
31
|
<RichTextStrapi html={item.body?.data?.childMarkdownRemark?.html as string} />
|
|
32
32
|
</div>
|
|
33
33
|
))}
|