@npm_leadtech/legal-lib-components 5.64.7 → 5.64.9

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.
Files changed (68) hide show
  1. package/dist/images/jpg/aboutus-img-core-values.jpg +0 -0
  2. package/dist/images/jpg/aboutus-img-our-mission.jpg +0 -0
  3. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.d.ts +4 -0
  4. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.js +6 -0
  5. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.d.ts +1 -0
  6. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.js +88 -0
  7. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.ts +89 -0
  8. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.tsx +21 -0
  9. package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.d.ts +5 -0
  10. package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.js +1 -0
  11. package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.ts +5 -0
  12. package/dist/src/components/atoms/CardStoryItem/index.d.ts +2 -0
  13. package/dist/src/components/atoms/CardStoryItem/index.js +1 -0
  14. package/dist/src/components/atoms/CardStoryItem/index.ts +2 -0
  15. package/dist/src/components/molecules/CardStory/CardStory.d.ts +4 -0
  16. package/dist/src/components/molecules/CardStory/CardStory.js +7 -0
  17. package/dist/src/components/molecules/CardStory/CardStory.styled.d.ts +1 -0
  18. package/dist/src/components/molecules/CardStory/CardStory.styled.js +24 -0
  19. package/dist/src/components/molecules/CardStory/CardStory.styled.ts +25 -0
  20. package/dist/src/components/molecules/CardStory/CardStory.tsx +17 -0
  21. package/dist/src/components/molecules/CardStory/CardStoryProps.types.d.ts +4 -0
  22. package/dist/src/components/molecules/CardStory/CardStoryProps.types.js +1 -0
  23. package/dist/src/components/molecules/CardStory/CardStoryProps.types.ts +5 -0
  24. package/dist/src/components/molecules/CardStory/index.d.ts +2 -0
  25. package/dist/src/components/molecules/CardStory/index.js +1 -0
  26. package/dist/src/components/molecules/CardStory/index.ts +2 -0
  27. package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.js +2 -4
  28. package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.ts +2 -4
  29. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +24 -6
  30. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.ts +24 -6
  31. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +9 -2
  32. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +50 -0
  33. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +50 -0
  34. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +18 -3
  35. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +6 -0
  36. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +6 -1
  37. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +7 -0
  38. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.d.ts +1 -1
  39. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.js +1 -0
  40. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.ts +4 -1
  41. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +3 -3
  42. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +7 -4
  43. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +4 -2
  44. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +4 -1
  45. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.js +9 -13
  46. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.ts +9 -13
  47. package/dist/src/components/sections/CardStorySection/CardStorySection.d.ts +4 -0
  48. package/dist/src/components/sections/CardStorySection/CardStorySection.js +7 -0
  49. package/dist/src/components/sections/CardStorySection/CardStorySection.styled.d.ts +1 -0
  50. package/dist/src/components/sections/CardStorySection/CardStorySection.styled.js +42 -0
  51. package/dist/src/components/sections/CardStorySection/CardStorySection.styled.ts +43 -0
  52. package/dist/src/components/sections/CardStorySection/CardStorySection.tsx +19 -0
  53. package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.d.ts +7 -0
  54. package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.js +1 -0
  55. package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.ts +8 -0
  56. package/dist/src/components/sections/CardStorySection/index.d.ts +2 -0
  57. package/dist/src/components/sections/CardStorySection/index.js +1 -0
  58. package/dist/src/components/sections/CardStorySection/index.ts +2 -0
  59. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.js +0 -1
  60. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.ts +0 -1
  61. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -1
  62. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +5 -1
  63. package/dist/src/components/sections/index.d.ts +1 -0
  64. package/dist/src/components/sections/index.js +1 -0
  65. package/dist/src/components/sections/index.ts +1 -0
  66. package/dist/tsconfig.build.tsbuildinfo +1 -1
  67. package/package.json +4 -2
  68. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.scss +0 -50
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { type CardStoryItemProps } from './CardStoryItemProps.types';
3
+ declare const CardStoryItem: FC<CardStoryItemProps>;
4
+ export default CardStoryItem;
@@ -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("img", { className: 'card-story-item__image__item', src: image, alt: '', role: 'img' }) }), _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,88 @@
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
+ &__item {
47
+ border-radius: var(--m-border-radius);
48
+ background: var(--neutral-neutral-4);
49
+ padding: 8px;
50
+ display: block;
51
+ }
52
+ }
53
+ &__content {
54
+ &__title {
55
+ margin-top: 1rem;
56
+ font-family: var(--font-sans);
57
+ font-size: 1.15rem;
58
+ font-weight: 700;
59
+ color: var(--neutral-neutral-1);
60
+ }
61
+ &__text {
62
+ font-family: var(--font-sans);
63
+ margin-top: 0.5rem;
64
+ font-weight: 400;
65
+ font-size: 1rem;
66
+ color: var(--neutral-neutral-1);
67
+
68
+ .m-richText p:last-child {
69
+ margin-bottom: 0;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ @media ${device['landscape-tablets']} {
76
+ display: flex;
77
+ .card-story-item {
78
+ &__content {
79
+ flex: 1;
80
+ padding-left: 1rem;
81
+
82
+ &__title {
83
+ margin-top: 0;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ `;
@@ -0,0 +1,89 @@
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
+ &__item {
48
+ border-radius: var(--m-border-radius);
49
+ background: var(--neutral-neutral-4);
50
+ padding: 8px;
51
+ display: block;
52
+ }
53
+ }
54
+ &__content {
55
+ &__title {
56
+ margin-top: 1rem;
57
+ font-family: var(--font-sans);
58
+ font-size: 1.15rem;
59
+ font-weight: 700;
60
+ color: var(--neutral-neutral-1);
61
+ }
62
+ &__text {
63
+ font-family: var(--font-sans);
64
+ margin-top: 0.5rem;
65
+ font-weight: 400;
66
+ font-size: 1rem;
67
+ color: var(--neutral-neutral-1);
68
+
69
+ .m-richText p:last-child {
70
+ margin-bottom: 0;
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ @media ${device['landscape-tablets']} {
77
+ display: flex;
78
+ .card-story-item {
79
+ &__content {
80
+ flex: 1;
81
+ padding-left: 1rem;
82
+
83
+ &__title {
84
+ margin-top: 0;
85
+ }
86
+ }
87
+ }
88
+ }
89
+ `
@@ -0,0 +1,21 @@
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
+ <img className='card-story-item__image__item' src={image} alt='' role='img'></img>
12
+ </div>
13
+ <div className='card-story-item__content'>
14
+ <p className='card-story-item__content__title'>{title}</p>
15
+ <div className='card-story-item__content__text'>{text}</div>
16
+ </div>
17
+ </CardStoryItemStyled>
18
+ )
19
+ }
20
+
21
+ export default CardStoryItem
@@ -0,0 +1,5 @@
1
+ export interface CardStoryItemProps {
2
+ image: string;
3
+ title: string;
4
+ text: React.JSX.Element;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface CardStoryItemProps {
2
+ image: string
3
+ title: string
4
+ text: React.JSX.Element
5
+ }
@@ -0,0 +1,2 @@
1
+ export { default as CardStoryItem } from './CardStoryItem';
2
+ export { type CardStoryItemProps } from './CardStoryItemProps.types';
@@ -0,0 +1 @@
1
+ export { default as CardStoryItem } from './CardStoryItem';
@@ -0,0 +1,2 @@
1
+ export { default as CardStoryItem } from './CardStoryItem'
2
+ export { type CardStoryItemProps } from './CardStoryItemProps.types'
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { CardStoryProps } from './CardStoryProps.types';
3
+ declare const CardStory: FC<CardStoryProps>;
4
+ export default CardStory;
@@ -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,4 @@
1
+ import { CardStoryItemProps } from 'src/components/atoms/CardStoryItem';
2
+ export interface CardStoryProps {
3
+ cardStoryItems: CardStoryItemProps[];
4
+ }
@@ -0,0 +1,5 @@
1
+ import { CardStoryItemProps } from 'src/components/atoms/CardStoryItem'
2
+
3
+ export interface CardStoryProps {
4
+ cardStoryItems: CardStoryItemProps[]
5
+ }
@@ -0,0 +1,2 @@
1
+ export { default as CardStory } from './CardStory';
2
+ export { type CardStoryProps } from './CardStoryProps.types';
@@ -0,0 +1 @@
1
+ export { default as CardStory } from './CardStory';
@@ -0,0 +1,2 @@
1
+ export { default as CardStory } from './CardStory'
2
+ export { type CardStoryProps } from './CardStoryProps.types'
@@ -16,11 +16,9 @@ export const KeyFactCardListRatafiaStyled = styled.div `
16
16
  border-bottom: 8px solid var(--neutral-neutral-6);
17
17
  background: var(--neutral-neutral-6);
18
18
 
19
- height: max(calc(100vh - 24.5rem), 240px);
20
-
19
+ height: calc(100vh - 24.5rem);
21
20
  @media ${device['portrait-tablets']} {
22
- height: max(calc(100vh - 33.5rem), 240px);
21
+ height: calc(100vh - 33.5rem);
23
22
  }
24
-
25
23
  overflow-y: auto;
26
24
  `;
@@ -17,11 +17,9 @@ export const KeyFactCardListRatafiaStyled = styled.div`
17
17
  border-bottom: 8px solid var(--neutral-neutral-6);
18
18
  background: var(--neutral-neutral-6);
19
19
 
20
- height: max(calc(100vh - 24.5rem), 240px);
21
-
20
+ height: calc(100vh - 24.5rem);
22
21
  @media ${device['portrait-tablets']} {
23
- height: max(calc(100vh - 33.5rem), 240px);
22
+ height: calc(100vh - 33.5rem);
24
23
  }
25
-
26
24
  overflow-y: auto;
27
25
  `
@@ -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: 50%;
17
+ flex-basis: 56%;
19
18
  margin-top: 0;
20
- margin-bottom: 3rem;
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: 1rem;
48
- flex-basis: 50%;
53
+ margin-right: 1.5rem;
54
+ flex-basis: 42%;
49
55
  }
50
56
 
51
57
  @media ${device.laptop} {
52
- margin-bottom: -3rem;
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: 50%;
18
+ flex-basis: 56%;
20
19
  margin-top: 0;
21
- margin-bottom: 3rem;
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: 1rem;
49
- flex-basis: 50%;
54
+ margin-right: 1.5rem;
55
+ flex-basis: 42%;
50
56
  }
51
57
 
52
58
  @media ${device.laptop} {
53
- margin-bottom: -3rem;
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
  `
@@ -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
- const TryOurFreeLegalBlogsContent = ({ title, image, children }) => {
5
- return (_jsxs(TryOurFreeLegalBlogsContentStyled, { 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 })] }));
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;
@@ -7,6 +7,56 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
7
7
  @media ${device['landscape-tablets']} {
8
8
  flex-direction: row;
9
9
  }
10
+
11
+ &.try-our-free-legal-blogs-section-content--our-mission {
12
+ margin-top: 1.5rem;
13
+ margin-bottom: 1.5rem;
14
+ align-items: center;
15
+ @media ${device['landscape-tablets']} {
16
+ margin-top: 3rem;
17
+ }
18
+
19
+ .try-our-free-legal-blogs-section__texts {
20
+ margin-bottom: 2rem;
21
+ @media ${device['landscape-tablets']} {
22
+ margin-bottom: 1rem;
23
+ }
24
+
25
+ &__title {
26
+ font-family: var(--font-sans);
27
+ font-size: 28px;
28
+ font-weight: 700;
29
+ text-align: left;
30
+ }
31
+ }
32
+ }
33
+
34
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
35
+ margin-top: 1.5rem;
36
+ margin-bottom: 1.5rem;
37
+ align-items: center;
38
+ @media ${device['landscape-tablets']} {
39
+ margin-bottom: 3rem;
40
+ flex-direction: row-reverse;
41
+ }
42
+
43
+ .try-our-free-legal-blogs-section__texts {
44
+ margin-bottom: 2rem;
45
+ @media ${device['landscape-tablets']} {
46
+ margin-bottom: 1rem;
47
+ margin-right: 0rem;
48
+ margin-left: 3rem;
49
+ }
50
+
51
+ &__title {
52
+ font-family: var(--font-sans);
53
+ font-size: 28px;
54
+ font-weight: 700;
55
+ text-align: left;
56
+ }
57
+ }
58
+ }
59
+
10
60
  .try-our-free-legal-blogs-section__texts {
11
61
  flex-basis: 50%;
12
62
  display: flex;
@@ -1,12 +1,27 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
+ import {
4
+ type TryOurFreeLegalBlogsContentProps,
5
+ TryOurFreeLegalBlogsContentType
6
+ } from './TryOurFreeLegalBlogsContentProps.types'
3
7
  import { RichTextInner } from '../../atoms'
4
- import { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
5
8
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled'
9
+ import classNames from 'classnames'
6
10
 
7
- const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({ title, image, children }) => {
11
+ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({
12
+ title,
13
+ image,
14
+ children,
15
+ type = TryOurFreeLegalBlogsContentType.default
16
+ }) => {
17
+ const classTry = classNames({
18
+ 'try-our-free-legal-blogs-section-content': true,
19
+ 'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
20
+ 'try-our-free-legal-blogs-section-content--our-mission-first-image':
21
+ TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
22
+ })
8
23
  return (
9
- <TryOurFreeLegalBlogsContentStyled>
24
+ <TryOurFreeLegalBlogsContentStyled className={classTry}>
10
25
  <div className='try-our-free-legal-blogs-section__texts'>
11
26
  <h2 className='try-our-free-legal-blogs-section__texts__title'>{title}</h2>
12
27
  <RichTextInner customClass='try-our-free-legal-blogs-section__texts__body'>{children}</RichTextInner>