@npm_leadtech/legal-lib-components 5.65.2 → 5.66.0
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/images/jpg/aboutus-img-core-values.jpg +0 -0
- package/dist/images/jpg/aboutus-img-our-mission.jpg +0 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItem.d.ts +4 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItem.js +6 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.d.ts +1 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.js +91 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.ts +92 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItem.tsx +23 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.d.ts +5 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.js +1 -0
- package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.ts +5 -0
- package/dist/src/components/atoms/CardStoryItem/index.d.ts +2 -0
- package/dist/src/components/atoms/CardStoryItem/index.js +1 -0
- package/dist/src/components/atoms/CardStoryItem/index.ts +2 -0
- package/dist/src/components/atoms/Video/Video.d.ts +1 -1
- package/dist/src/components/atoms/Video/Video.js +2 -2
- package/dist/src/components/atoms/Video/Video.tsx +2 -13
- package/dist/src/components/atoms/Video/VideoProps.types.d.ts +0 -2
- package/dist/src/components/atoms/Video/VideoProps.types.ts +0 -2
- package/dist/src/components/molecules/CardStory/CardStory.d.ts +4 -0
- package/dist/src/components/molecules/CardStory/CardStory.js +7 -0
- package/dist/src/components/molecules/CardStory/CardStory.styled.d.ts +1 -0
- package/dist/src/components/molecules/CardStory/CardStory.styled.js +24 -0
- package/dist/src/components/molecules/CardStory/CardStory.styled.ts +25 -0
- package/dist/src/components/molecules/CardStory/CardStory.tsx +17 -0
- package/dist/src/components/molecules/CardStory/CardStoryProps.types.d.ts +4 -0
- package/dist/src/components/molecules/CardStory/CardStoryProps.types.js +1 -0
- package/dist/src/components/molecules/CardStory/CardStoryProps.types.ts +5 -0
- package/dist/src/components/molecules/CardStory/index.d.ts +2 -0
- package/dist/src/components/molecules/CardStory/index.js +1 -0
- package/dist/src/components/molecules/CardStory/index.ts +2 -0
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +24 -6
- package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.ts +24 -6
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +9 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +50 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +50 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +18 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +6 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +6 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +7 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.d.ts +1 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.js +1 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.ts +4 -1
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +3 -3
- package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +7 -4
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +4 -2
- package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +4 -1
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.js +9 -13
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.ts +9 -13
- package/dist/src/components/sections/CardStorySection/CardStorySection.d.ts +4 -0
- package/dist/src/components/sections/CardStorySection/CardStorySection.js +7 -0
- package/dist/src/components/sections/CardStorySection/CardStorySection.styled.d.ts +1 -0
- package/dist/src/components/sections/CardStorySection/CardStorySection.styled.js +42 -0
- package/dist/src/components/sections/CardStorySection/CardStorySection.styled.ts +43 -0
- package/dist/src/components/sections/CardStorySection/CardStorySection.tsx +19 -0
- package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.d.ts +7 -0
- package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.js +1 -0
- package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.ts +8 -0
- package/dist/src/components/sections/CardStorySection/index.d.ts +2 -0
- package/dist/src/components/sections/CardStorySection/index.js +1 -0
- package/dist/src/components/sections/CardStorySection/index.ts +2 -0
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.js +0 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.ts +0 -1
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +2 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +2 -9
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts +0 -1
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.ts +0 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +5 -1
- package/dist/src/components/sections/index.d.ts +1 -0
- package/dist/src/components/sections/index.js +1 -0
- package/dist/src/components/sections/index.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.scss +0 -50
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CardStoryItemStyled } from './CardStoryItem.styled';
|
|
3
|
+
const CardStoryItem = ({ image, title, text }) => {
|
|
4
|
+
return (_jsxs(CardStoryItemStyled, { className: 'card-story-item', children: [_jsx("span", { className: 'card-story-item__bullet' }), _jsx("div", { className: 'card-story-item__image', children: _jsx("div", { className: 'card-story-item__image__content', children: _jsx("img", { className: 'card-story-item__image__item', src: image, alt: '', role: 'img', width: '24', height: '24' }) }) }), _jsxs("div", { className: 'card-story-item__content', children: [_jsx("p", { className: 'card-story-item__content__title', children: title }), _jsx("div", { className: 'card-story-item__content__text', children: text })] })] }));
|
|
5
|
+
};
|
|
6
|
+
export default CardStoryItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CardStoryItemStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const CardStoryItemStyled = styled.li `
|
|
4
|
+
position: relative;
|
|
5
|
+
background: var(--neutral-neutral-6);
|
|
6
|
+
padding: 1.5rem;
|
|
7
|
+
border-radius: var(--l-border-radius);
|
|
8
|
+
margin-top: 16px;
|
|
9
|
+
list-style-type: none;
|
|
10
|
+
|
|
11
|
+
&:first-child {
|
|
12
|
+
margin-top: 0;
|
|
13
|
+
|
|
14
|
+
&:after {
|
|
15
|
+
content: '';
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
bottom: calc(50% + 5px);
|
|
19
|
+
left: -26px;
|
|
20
|
+
width: 10px;
|
|
21
|
+
background: var(--others-white);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:last-child:before {
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: calc(50% + 5px);
|
|
29
|
+
bottom: 0;
|
|
30
|
+
left: -26px;
|
|
31
|
+
width: 10px;
|
|
32
|
+
background: var(--others-white);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.card-story-item {
|
|
36
|
+
&__bullet {
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: calc(50% - 5px);
|
|
39
|
+
left: -26px;
|
|
40
|
+
width: 10px;
|
|
41
|
+
height: 10px;
|
|
42
|
+
background-color: #333;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
}
|
|
45
|
+
&__image {
|
|
46
|
+
&__content {
|
|
47
|
+
border-radius: var(--m-border-radius);
|
|
48
|
+
background: var(--neutral-neutral-4);
|
|
49
|
+
padding: 8px;
|
|
50
|
+
width: 40px;
|
|
51
|
+
}
|
|
52
|
+
&__item {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&__content {
|
|
57
|
+
&__title {
|
|
58
|
+
margin-top: 1rem;
|
|
59
|
+
font-family: var(--font-sans);
|
|
60
|
+
font-size: 1.15rem;
|
|
61
|
+
font-weight: 700;
|
|
62
|
+
color: var(--neutral-neutral-1);
|
|
63
|
+
}
|
|
64
|
+
&__text {
|
|
65
|
+
font-family: var(--font-sans);
|
|
66
|
+
margin-top: 0.5rem;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
font-size: 1rem;
|
|
69
|
+
color: var(--neutral-neutral-1);
|
|
70
|
+
|
|
71
|
+
.m-richText p:last-child {
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media ${device['landscape-tablets']} {
|
|
79
|
+
display: flex;
|
|
80
|
+
.card-story-item {
|
|
81
|
+
&__content {
|
|
82
|
+
flex: 1;
|
|
83
|
+
padding-left: 1rem;
|
|
84
|
+
|
|
85
|
+
&__title {
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const CardStoryItemStyled = styled.li`
|
|
5
|
+
position: relative;
|
|
6
|
+
background: var(--neutral-neutral-6);
|
|
7
|
+
padding: 1.5rem;
|
|
8
|
+
border-radius: var(--l-border-radius);
|
|
9
|
+
margin-top: 16px;
|
|
10
|
+
list-style-type: none;
|
|
11
|
+
|
|
12
|
+
&:first-child {
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
|
|
15
|
+
&:after {
|
|
16
|
+
content: '';
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
bottom: calc(50% + 5px);
|
|
20
|
+
left: -26px;
|
|
21
|
+
width: 10px;
|
|
22
|
+
background: var(--others-white);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:last-child:before {
|
|
27
|
+
content: '';
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: calc(50% + 5px);
|
|
30
|
+
bottom: 0;
|
|
31
|
+
left: -26px;
|
|
32
|
+
width: 10px;
|
|
33
|
+
background: var(--others-white);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.card-story-item {
|
|
37
|
+
&__bullet {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: calc(50% - 5px);
|
|
40
|
+
left: -26px;
|
|
41
|
+
width: 10px;
|
|
42
|
+
height: 10px;
|
|
43
|
+
background-color: #333;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
}
|
|
46
|
+
&__image {
|
|
47
|
+
&__content {
|
|
48
|
+
border-radius: var(--m-border-radius);
|
|
49
|
+
background: var(--neutral-neutral-4);
|
|
50
|
+
padding: 8px;
|
|
51
|
+
width: 40px;
|
|
52
|
+
}
|
|
53
|
+
&__item {
|
|
54
|
+
display: block;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&__content {
|
|
58
|
+
&__title {
|
|
59
|
+
margin-top: 1rem;
|
|
60
|
+
font-family: var(--font-sans);
|
|
61
|
+
font-size: 1.15rem;
|
|
62
|
+
font-weight: 700;
|
|
63
|
+
color: var(--neutral-neutral-1);
|
|
64
|
+
}
|
|
65
|
+
&__text {
|
|
66
|
+
font-family: var(--font-sans);
|
|
67
|
+
margin-top: 0.5rem;
|
|
68
|
+
font-weight: 400;
|
|
69
|
+
font-size: 1rem;
|
|
70
|
+
color: var(--neutral-neutral-1);
|
|
71
|
+
|
|
72
|
+
.m-richText p:last-child {
|
|
73
|
+
margin-bottom: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media ${device['landscape-tablets']} {
|
|
80
|
+
display: flex;
|
|
81
|
+
.card-story-item {
|
|
82
|
+
&__content {
|
|
83
|
+
flex: 1;
|
|
84
|
+
padding-left: 1rem;
|
|
85
|
+
|
|
86
|
+
&__title {
|
|
87
|
+
margin-top: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { type CardStoryItemProps } from './CardStoryItemProps.types'
|
|
4
|
+
import { CardStoryItemStyled } from './CardStoryItem.styled'
|
|
5
|
+
|
|
6
|
+
const CardStoryItem: FC<CardStoryItemProps> = ({ image, title, text }) => {
|
|
7
|
+
return (
|
|
8
|
+
<CardStoryItemStyled className='card-story-item'>
|
|
9
|
+
<span className='card-story-item__bullet'></span>
|
|
10
|
+
<div className='card-story-item__image'>
|
|
11
|
+
<div className='card-story-item__image__content'>
|
|
12
|
+
<img className='card-story-item__image__item' src={image} alt='' role='img' width='24' height='24'></img>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div className='card-story-item__content'>
|
|
16
|
+
<p className='card-story-item__content__title'>{title}</p>
|
|
17
|
+
<div className='card-story-item__content__text'>{text}</div>
|
|
18
|
+
</div>
|
|
19
|
+
</CardStoryItemStyled>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default CardStoryItem
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CardStoryItem } from './CardStoryItem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VideoProps } from './VideoProps.types';
|
|
3
|
-
declare const Video: ({ videoSrcURL, videoMimeType, title, controls, autoPlay, loop, muted, track
|
|
3
|
+
declare const Video: ({ videoSrcURL, videoMimeType, title, controls, autoPlay, loop, muted, track }: VideoProps) => React.JSX.Element | null;
|
|
4
4
|
export default Video;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const Video = ({ videoSrcURL, videoMimeType = 'video/webm', title = '', controls = true, autoPlay = false, loop = false, muted = false, track
|
|
2
|
+
const Video = ({ videoSrcURL, videoMimeType = 'video/webm', title = '', controls = true, autoPlay = false, loop = false, muted = false, track }) => {
|
|
3
3
|
if (!videoSrcURL)
|
|
4
4
|
return null;
|
|
5
5
|
return (
|
|
6
6
|
// eslint-disable-next-line jsx-a11y/media-has-caption
|
|
7
|
-
_jsxs("video", { "data-testid": 'video', title: title, controls: controls, autoPlay: autoPlay, loop: loop, muted: muted,
|
|
7
|
+
_jsxs("video", { "data-testid": 'video', title: title, controls: controls, autoPlay: autoPlay, loop: loop, muted: muted, children: [_jsx("source", { src: videoSrcURL, type: videoMimeType }), track && _jsx("track", { src: track.src, kind: track.kind, srcLang: track.srclang, label: track.label }), "Your browser does not support the video tag."] }));
|
|
8
8
|
};
|
|
9
9
|
export default Video;
|
|
@@ -10,23 +10,12 @@ const Video = ({
|
|
|
10
10
|
autoPlay = false,
|
|
11
11
|
loop = false,
|
|
12
12
|
muted = false,
|
|
13
|
-
track
|
|
14
|
-
preload = 'auto',
|
|
15
|
-
poster = ''
|
|
13
|
+
track
|
|
16
14
|
}: VideoProps): React.JSX.Element | null => {
|
|
17
15
|
if (!videoSrcURL) return null
|
|
18
16
|
return (
|
|
19
17
|
// eslint-disable-next-line jsx-a11y/media-has-caption
|
|
20
|
-
<video
|
|
21
|
-
data-testid='video'
|
|
22
|
-
title={title}
|
|
23
|
-
controls={controls}
|
|
24
|
-
autoPlay={autoPlay}
|
|
25
|
-
loop={loop}
|
|
26
|
-
muted={muted}
|
|
27
|
-
preload={preload}
|
|
28
|
-
poster={poster}
|
|
29
|
-
>
|
|
18
|
+
<video data-testid='video' title={title} controls={controls} autoPlay={autoPlay} loop={loop} muted={muted}>
|
|
30
19
|
<source src={videoSrcURL} type={videoMimeType} />
|
|
31
20
|
{track && <track src={track.src} kind={track.kind} srcLang={track.srclang} label={track.label} />}
|
|
32
21
|
Your browser does not support the video tag.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CardStoryItem } from '../../atoms/CardStoryItem';
|
|
3
|
+
import { CardStoryStyled } from './CardStory.styled';
|
|
4
|
+
const CardStory = ({ cardStoryItems }) => {
|
|
5
|
+
return (_jsx(CardStoryStyled, { className: 'card-story', children: cardStoryItems.map((item) => (_jsx(CardStoryItem, { ...item }, item.title))) }));
|
|
6
|
+
};
|
|
7
|
+
export default CardStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CardStoryStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const CardStoryStyled = styled.ul `
|
|
3
|
+
position: relative;
|
|
4
|
+
padding-left: 26px;
|
|
5
|
+
|
|
6
|
+
&:before {
|
|
7
|
+
content: '';
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 4px;
|
|
10
|
+
top: 0px;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
background-image: repeating-linear-gradient(
|
|
13
|
+
180deg,
|
|
14
|
+
var(--neutral-neutral-3),
|
|
15
|
+
var(--neutral-neutral-3) 11px,
|
|
16
|
+
transparent 11px,
|
|
17
|
+
transparent 18px
|
|
18
|
+
);
|
|
19
|
+
background-position: left -4px;
|
|
20
|
+
background-repeat: repeat-y;
|
|
21
|
+
background-size: 2px 100%;
|
|
22
|
+
width: 2px;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const CardStoryStyled = styled.ul`
|
|
4
|
+
position: relative;
|
|
5
|
+
padding-left: 26px;
|
|
6
|
+
|
|
7
|
+
&:before {
|
|
8
|
+
content: '';
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 4px;
|
|
11
|
+
top: 0px;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
background-image: repeating-linear-gradient(
|
|
14
|
+
180deg,
|
|
15
|
+
var(--neutral-neutral-3),
|
|
16
|
+
var(--neutral-neutral-3) 11px,
|
|
17
|
+
transparent 11px,
|
|
18
|
+
transparent 18px
|
|
19
|
+
);
|
|
20
|
+
background-position: left -4px;
|
|
21
|
+
background-repeat: repeat-y;
|
|
22
|
+
background-size: 2px 100%;
|
|
23
|
+
width: 2px;
|
|
24
|
+
}
|
|
25
|
+
`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { CardStoryItem } from '../../atoms/CardStoryItem'
|
|
4
|
+
import { CardStoryProps } from './CardStoryProps.types'
|
|
5
|
+
import { CardStoryStyled } from './CardStory.styled'
|
|
6
|
+
|
|
7
|
+
const CardStory: FC<CardStoryProps> = ({ cardStoryItems }) => {
|
|
8
|
+
return (
|
|
9
|
+
<CardStoryStyled className='card-story'>
|
|
10
|
+
{cardStoryItems.map((item) => (
|
|
11
|
+
<CardStoryItem key={item.title} {...item} />
|
|
12
|
+
))}
|
|
13
|
+
</CardStoryStyled>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default CardStory
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CardStory } from './CardStory';
|
|
@@ -11,13 +11,19 @@ export const AboutUsContentStyled = styled.div `
|
|
|
11
11
|
|
|
12
12
|
.about-us-content__body {
|
|
13
13
|
margin-top: 1rem;
|
|
14
|
-
margin-bottom: 2rem;
|
|
15
14
|
font-family: var(--font-sans);
|
|
16
15
|
|
|
17
16
|
@media ${device['landscape-tablets']} {
|
|
18
|
-
flex-basis:
|
|
17
|
+
flex-basis: 56%;
|
|
19
18
|
margin-top: 0;
|
|
20
|
-
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media ${device.laptop} {
|
|
22
|
+
flex-basis: 59%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media ${device.desktop} {
|
|
26
|
+
flex-basis: 60%;
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
.m-richText {
|
|
@@ -44,16 +50,28 @@ export const AboutUsContentStyled = styled.div `
|
|
|
44
50
|
|
|
45
51
|
@media ${device['landscape-tablets']} {
|
|
46
52
|
margin-bottom: 0;
|
|
47
|
-
margin-right:
|
|
48
|
-
flex-basis:
|
|
53
|
+
margin-right: 1.5rem;
|
|
54
|
+
flex-basis: 42%;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
@media ${device.laptop} {
|
|
52
|
-
|
|
58
|
+
flex-basis: 39%;
|
|
59
|
+
margin-right: 2.5rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media ${device.desktop} {
|
|
63
|
+
flex-basis: 36.3%;
|
|
53
64
|
}
|
|
54
65
|
|
|
55
66
|
img {
|
|
56
67
|
width: 100%;
|
|
68
|
+
border-radius: 16px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.gatsby-image-wrapper-constrained {
|
|
72
|
+
@media ${device['landscape-tablets']} {
|
|
73
|
+
height: 100%;
|
|
74
|
+
}
|
|
57
75
|
}
|
|
58
76
|
}
|
|
59
77
|
`;
|
|
@@ -12,13 +12,19 @@ export const AboutUsContentStyled = styled.div`
|
|
|
12
12
|
|
|
13
13
|
.about-us-content__body {
|
|
14
14
|
margin-top: 1rem;
|
|
15
|
-
margin-bottom: 2rem;
|
|
16
15
|
font-family: var(--font-sans);
|
|
17
16
|
|
|
18
17
|
@media ${device['landscape-tablets']} {
|
|
19
|
-
flex-basis:
|
|
18
|
+
flex-basis: 56%;
|
|
20
19
|
margin-top: 0;
|
|
21
|
-
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media ${device.laptop} {
|
|
23
|
+
flex-basis: 59%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media ${device.desktop} {
|
|
27
|
+
flex-basis: 60%;
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
.m-richText {
|
|
@@ -45,16 +51,28 @@ export const AboutUsContentStyled = styled.div`
|
|
|
45
51
|
|
|
46
52
|
@media ${device['landscape-tablets']} {
|
|
47
53
|
margin-bottom: 0;
|
|
48
|
-
margin-right:
|
|
49
|
-
flex-basis:
|
|
54
|
+
margin-right: 1.5rem;
|
|
55
|
+
flex-basis: 42%;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
@media ${device.laptop} {
|
|
53
|
-
|
|
59
|
+
flex-basis: 39%;
|
|
60
|
+
margin-right: 2.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media ${device.desktop} {
|
|
64
|
+
flex-basis: 36.3%;
|
|
54
65
|
}
|
|
55
66
|
|
|
56
67
|
img {
|
|
57
68
|
width: 100%;
|
|
69
|
+
border-radius: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.gatsby-image-wrapper-constrained {
|
|
73
|
+
@media ${device['landscape-tablets']} {
|
|
74
|
+
height: 100%;
|
|
75
|
+
}
|
|
58
76
|
}
|
|
59
77
|
}
|
|
60
78
|
`
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentProps.types';
|
|
2
3
|
import { RichTextInner } from '../../atoms';
|
|
3
4
|
import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFreeLegalBlogsContentType.default }) => {
|
|
7
|
+
const classTry = classNames({
|
|
8
|
+
'try-our-free-legal-blogs-section-content': true,
|
|
9
|
+
'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
|
|
10
|
+
'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
|
|
11
|
+
});
|
|
12
|
+
return (_jsxs(TryOurFreeLegalBlogsContentStyled, { className: classTry, children: [_jsxs("div", { className: 'try-our-free-legal-blogs-section__texts', children: [_jsx("h2", { className: 'try-our-free-legal-blogs-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'try-our-free-legal-blogs-section__texts__body', children: children })] }), _jsx("div", { className: 'try-our-free-legal-blogs-section__image', children: image })] }));
|
|
6
13
|
};
|
|
7
14
|
export default TryOurFreeLegalBlogsContent;
|
|
@@ -6,6 +6,56 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
6
6
|
@media ${device['landscape-tablets']} {
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
&.try-our-free-legal-blogs-section-content--our-mission {
|
|
11
|
+
margin-top: 1.5rem;
|
|
12
|
+
margin-bottom: 1.5rem;
|
|
13
|
+
align-items: center;
|
|
14
|
+
@media ${device['landscape-tablets']} {
|
|
15
|
+
margin-top: 3rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.try-our-free-legal-blogs-section__texts {
|
|
19
|
+
margin-bottom: 2rem;
|
|
20
|
+
@media ${device['landscape-tablets']} {
|
|
21
|
+
margin-bottom: 1rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__title {
|
|
25
|
+
font-family: var(--font-sans);
|
|
26
|
+
font-size: 28px;
|
|
27
|
+
font-weight: 700;
|
|
28
|
+
text-align: left;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.try-our-free-legal-blogs-section-content--our-mission-first-image {
|
|
34
|
+
margin-top: 1.5rem;
|
|
35
|
+
margin-bottom: 1.5rem;
|
|
36
|
+
align-items: center;
|
|
37
|
+
@media ${device['landscape-tablets']} {
|
|
38
|
+
margin-bottom: 3rem;
|
|
39
|
+
flex-direction: row-reverse;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.try-our-free-legal-blogs-section__texts {
|
|
43
|
+
margin-bottom: 2rem;
|
|
44
|
+
@media ${device['landscape-tablets']} {
|
|
45
|
+
margin-bottom: 1rem;
|
|
46
|
+
margin-right: 0rem;
|
|
47
|
+
margin-left: 3rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__title {
|
|
51
|
+
font-family: var(--font-sans);
|
|
52
|
+
font-size: 28px;
|
|
53
|
+
font-weight: 700;
|
|
54
|
+
text-align: left;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
9
59
|
.try-our-free-legal-blogs-section__texts {
|
|
10
60
|
flex-basis: 50%;
|
|
11
61
|
display: flex;
|