@npm_leadtech/legal-lib-components 5.64.16 → 5.65.2

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 (77) hide show
  1. package/dist/src/components/atoms/Video/Video.d.ts +1 -1
  2. package/dist/src/components/atoms/Video/Video.js +2 -2
  3. package/dist/src/components/atoms/Video/Video.tsx +13 -2
  4. package/dist/src/components/atoms/Video/VideoProps.types.d.ts +2 -0
  5. package/dist/src/components/atoms/Video/VideoProps.types.ts +2 -0
  6. package/dist/src/components/molecules/TextInput/Input.js +1 -1
  7. package/dist/src/components/molecules/TextInput/Input.tsx +1 -0
  8. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.js +6 -24
  9. package/dist/src/components/organisms/AboutUsContent/AboutUsContent.styled.ts +6 -24
  10. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +2 -9
  11. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.scss +50 -0
  12. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +0 -50
  13. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +0 -50
  14. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +3 -18
  15. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +0 -6
  16. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +1 -6
  17. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +0 -7
  18. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.d.ts +1 -1
  19. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.js +0 -1
  20. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/index.ts +1 -4
  21. package/dist/src/components/pages/AboutUsPage/AboutUsPage.js +3 -3
  22. package/dist/src/components/pages/AboutUsPage/AboutUsPage.tsx +4 -7
  23. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.d.ts +2 -4
  24. package/dist/src/components/pages/AboutUsPage/AboutUsPageProps.ts +1 -4
  25. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.js +13 -9
  26. package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.ts +13 -9
  27. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.js +1 -0
  28. package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.ts +1 -0
  29. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +2 -2
  30. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +9 -2
  31. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.d.ts +1 -0
  32. package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSectionProps.types.ts +1 -0
  33. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -1
  34. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +1 -5
  35. package/dist/src/components/sections/index.d.ts +0 -1
  36. package/dist/src/components/sections/index.js +0 -1
  37. package/dist/src/components/sections/index.ts +0 -1
  38. package/dist/tsconfig.build.tsbuildinfo +1 -1
  39. package/package.json +1 -3
  40. package/dist/images/jpg/aboutus-img-core-values.jpg +0 -0
  41. package/dist/images/jpg/aboutus-img-our-mission.jpg +0 -0
  42. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.d.ts +0 -4
  43. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.js +0 -6
  44. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.d.ts +0 -1
  45. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.js +0 -91
  46. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.styled.ts +0 -92
  47. package/dist/src/components/atoms/CardStoryItem/CardStoryItem.tsx +0 -23
  48. package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.d.ts +0 -5
  49. package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.js +0 -1
  50. package/dist/src/components/atoms/CardStoryItem/CardStoryItemProps.types.ts +0 -5
  51. package/dist/src/components/atoms/CardStoryItem/index.d.ts +0 -2
  52. package/dist/src/components/atoms/CardStoryItem/index.js +0 -1
  53. package/dist/src/components/atoms/CardStoryItem/index.ts +0 -2
  54. package/dist/src/components/molecules/CardStory/CardStory.d.ts +0 -4
  55. package/dist/src/components/molecules/CardStory/CardStory.js +0 -7
  56. package/dist/src/components/molecules/CardStory/CardStory.styled.d.ts +0 -1
  57. package/dist/src/components/molecules/CardStory/CardStory.styled.js +0 -24
  58. package/dist/src/components/molecules/CardStory/CardStory.styled.ts +0 -25
  59. package/dist/src/components/molecules/CardStory/CardStory.tsx +0 -17
  60. package/dist/src/components/molecules/CardStory/CardStoryProps.types.d.ts +0 -4
  61. package/dist/src/components/molecules/CardStory/CardStoryProps.types.js +0 -1
  62. package/dist/src/components/molecules/CardStory/CardStoryProps.types.ts +0 -5
  63. package/dist/src/components/molecules/CardStory/index.d.ts +0 -2
  64. package/dist/src/components/molecules/CardStory/index.js +0 -1
  65. package/dist/src/components/molecules/CardStory/index.ts +0 -2
  66. package/dist/src/components/sections/CardStorySection/CardStorySection.d.ts +0 -4
  67. package/dist/src/components/sections/CardStorySection/CardStorySection.js +0 -7
  68. package/dist/src/components/sections/CardStorySection/CardStorySection.styled.d.ts +0 -1
  69. package/dist/src/components/sections/CardStorySection/CardStorySection.styled.js +0 -42
  70. package/dist/src/components/sections/CardStorySection/CardStorySection.styled.ts +0 -43
  71. package/dist/src/components/sections/CardStorySection/CardStorySection.tsx +0 -19
  72. package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.d.ts +0 -7
  73. package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.js +0 -1
  74. package/dist/src/components/sections/CardStorySection/CardStorySectionProps.types.ts +0 -8
  75. package/dist/src/components/sections/CardStorySection/index.d.ts +0 -2
  76. package/dist/src/components/sections/CardStorySection/index.js +0 -1
  77. package/dist/src/components/sections/CardStorySection/index.ts +0 -2
@@ -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 }: VideoProps) => React.JSX.Element | null;
3
+ declare const Video: ({ videoSrcURL, videoMimeType, title, controls, autoPlay, loop, muted, track, preload, poster }: 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, preload = 'auto', poster = '' }) => {
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, 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."] }));
7
+ _jsxs("video", { "data-testid": 'video', title: title, controls: controls, autoPlay: autoPlay, loop: loop, muted: muted, preload: preload, poster: poster, 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,12 +10,23 @@ const Video = ({
10
10
  autoPlay = false,
11
11
  loop = false,
12
12
  muted = false,
13
- track
13
+ track,
14
+ preload = 'auto',
15
+ poster = ''
14
16
  }: VideoProps): React.JSX.Element | null => {
15
17
  if (!videoSrcURL) return null
16
18
  return (
17
19
  // eslint-disable-next-line jsx-a11y/media-has-caption
18
- <video data-testid='video' title={title} controls={controls} autoPlay={autoPlay} loop={loop} muted={muted}>
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
+ >
19
30
  <source src={videoSrcURL} type={videoMimeType} />
20
31
  {track && <track src={track.src} kind={track.kind} srcLang={track.srclang} label={track.label} />}
21
32
  Your browser does not support the video tag.
@@ -14,4 +14,6 @@ export interface VideoProps {
14
14
  srclang: string;
15
15
  label: string;
16
16
  };
17
+ preload?: 'auto' | 'metadata' | 'none';
18
+ poster?: string;
17
19
  }
@@ -14,4 +14,6 @@ export interface VideoProps {
14
14
  srclang: string
15
15
  label: string
16
16
  }
17
+ preload?: 'auto' | 'metadata' | 'none'
18
+ poster?: string
17
19
  }
@@ -8,7 +8,7 @@ export const Input = React.forwardRef(({ value, name, placeholder, className, on
8
8
  if (value !== null)
9
9
  setHidden(!hidden);
10
10
  };
11
- return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
11
+ return (_jsxs(_Fragment, { children: [_jsx("input", { type: !hidden && type === 'password' ? 'text' : type, name: name, id: name, className: className, maxLength: maxLength, placeholder: placeholder, onChange: onChange, onClick: onClick, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onBlur: onBlur, value: value, "data-qa": name, disabled: disabled, ref: ref }), type === 'password' && (_jsx("button", { type: 'button', className: 'input-icon-password-button', onClick: showPassword, onKeyDown: (e) => {
12
12
  if (e.key === 'Enter')
13
13
  showPassword();
14
14
  }, children: _jsx("img", { src: hidden ? eyeIcon : eyeCloseIcon, alt: '' }) }))] }));
@@ -63,6 +63,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
63
63
  />
64
64
  {type === 'password' && (
65
65
  <button
66
+ type='button'
66
67
  className='input-icon-password-button'
67
68
  onClick={showPassword}
68
69
  onKeyDown={(e) => {
@@ -11,19 +11,13 @@ export const AboutUsContentStyled = styled.div `
11
11
 
12
12
  .about-us-content__body {
13
13
  margin-top: 1rem;
14
+ margin-bottom: 2rem;
14
15
  font-family: var(--font-sans);
15
16
 
16
17
  @media ${device['landscape-tablets']} {
17
- flex-basis: 56%;
18
+ flex-basis: 50%;
18
19
  margin-top: 0;
19
- }
20
-
21
- @media ${device.laptop} {
22
- flex-basis: 59%;
23
- }
24
-
25
- @media ${device.desktop} {
26
- flex-basis: 60%;
20
+ margin-bottom: 3rem;
27
21
  }
28
22
 
29
23
  .m-richText {
@@ -50,28 +44,16 @@ export const AboutUsContentStyled = styled.div `
50
44
 
51
45
  @media ${device['landscape-tablets']} {
52
46
  margin-bottom: 0;
53
- margin-right: 1.5rem;
54
- flex-basis: 42%;
47
+ margin-right: 1rem;
48
+ flex-basis: 50%;
55
49
  }
56
50
 
57
51
  @media ${device.laptop} {
58
- flex-basis: 39%;
59
- margin-right: 2.5rem;
60
- }
61
-
62
- @media ${device.desktop} {
63
- flex-basis: 36.3%;
52
+ margin-bottom: -3rem;
64
53
  }
65
54
 
66
55
  img {
67
56
  width: 100%;
68
- border-radius: 16px;
69
- }
70
-
71
- .gatsby-image-wrapper-constrained {
72
- @media ${device['landscape-tablets']} {
73
- height: 100%;
74
- }
75
57
  }
76
58
  }
77
59
  `;
@@ -12,19 +12,13 @@ export const AboutUsContentStyled = styled.div`
12
12
 
13
13
  .about-us-content__body {
14
14
  margin-top: 1rem;
15
+ margin-bottom: 2rem;
15
16
  font-family: var(--font-sans);
16
17
 
17
18
  @media ${device['landscape-tablets']} {
18
- flex-basis: 56%;
19
+ flex-basis: 50%;
19
20
  margin-top: 0;
20
- }
21
-
22
- @media ${device.laptop} {
23
- flex-basis: 59%;
24
- }
25
-
26
- @media ${device.desktop} {
27
- flex-basis: 60%;
21
+ margin-bottom: 3rem;
28
22
  }
29
23
 
30
24
  .m-richText {
@@ -51,28 +45,16 @@ export const AboutUsContentStyled = styled.div`
51
45
 
52
46
  @media ${device['landscape-tablets']} {
53
47
  margin-bottom: 0;
54
- margin-right: 1.5rem;
55
- flex-basis: 42%;
48
+ margin-right: 1rem;
49
+ flex-basis: 50%;
56
50
  }
57
51
 
58
52
  @media ${device.laptop} {
59
- flex-basis: 39%;
60
- margin-right: 2.5rem;
61
- }
62
-
63
- @media ${device.desktop} {
64
- flex-basis: 36.3%;
53
+ margin-bottom: -3rem;
65
54
  }
66
55
 
67
56
  img {
68
57
  width: 100%;
69
- border-radius: 16px;
70
- }
71
-
72
- .gatsby-image-wrapper-constrained {
73
- @media ${device['landscape-tablets']} {
74
- height: 100%;
75
- }
76
58
  }
77
59
  }
78
60
  `
@@ -1,14 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentProps.types';
3
2
  import { RichTextInner } from '../../atoms';
4
3
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled';
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 })] }));
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 })] }));
13
6
  };
14
7
  export default TryOurFreeLegalBlogsContent;
@@ -0,0 +1,50 @@
1
+ @import '../../../globalStyles/variables.scss';
2
+ @import '../../../globalStyles/mediaqueries.scss';
3
+
4
+ .try-our-free-legal-blogs-section {
5
+ &__texts {
6
+ flex-basis: 50%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ justify-content: center;
10
+ margin-bottom: 1rem;
11
+ margin-right: 0;
12
+ color: var(--neutral-neutral-1);
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ letter-spacing: -0.3px;
16
+
17
+ @include landscape-tablets {
18
+ margin-right: 3rem;
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ &__title {
23
+ font-family: var(--font-serif);
24
+ font-size: 32px;
25
+ line-height: 42px;
26
+ margin-bottom: 2rem;
27
+ text-align: center;
28
+ font-weight: 400;
29
+
30
+ @include landscape-tablets {
31
+ text-align: left;
32
+ }
33
+ }
34
+
35
+ &__body {
36
+ font-family: var(--font-sans);
37
+ font-size: 16px;
38
+ line-height: 22px;
39
+
40
+ a {
41
+ color: var(--primary-main-light-1);
42
+ font-weight: 400 !important;
43
+ }
44
+ }
45
+ }
46
+
47
+ &__image {
48
+ flex-basis: 50%;
49
+ }
50
+ }
@@ -6,56 +6,6 @@ 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
-
59
9
  .try-our-free-legal-blogs-section__texts {
60
10
  flex-basis: 50%;
61
11
  display: flex;
@@ -7,56 +7,6 @@ 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
-
60
10
  .try-our-free-legal-blogs-section__texts {
61
11
  flex-basis: 50%;
62
12
  display: flex;
@@ -1,27 +1,12 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
- import {
4
- type TryOurFreeLegalBlogsContentProps,
5
- TryOurFreeLegalBlogsContentType
6
- } from './TryOurFreeLegalBlogsContentProps.types'
7
3
  import { RichTextInner } from '../../atoms'
4
+ import { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
8
5
  import { TryOurFreeLegalBlogsContentStyled } from './TryOurFreeLegalBlogsContent.styled'
9
- import classNames from 'classnames'
10
6
 
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
- })
7
+ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({ title, image, children }) => {
23
8
  return (
24
- <TryOurFreeLegalBlogsContentStyled className={classTry}>
9
+ <TryOurFreeLegalBlogsContentStyled>
25
10
  <div className='try-our-free-legal-blogs-section__texts'>
26
11
  <h2 className='try-our-free-legal-blogs-section__texts__title'>{title}</h2>
27
12
  <RichTextInner customClass='try-our-free-legal-blogs-section__texts__body'>{children}</RichTextInner>
@@ -1,11 +1,5 @@
1
- export declare enum TryOurFreeLegalBlogsContentType {
2
- default = "Default",
3
- ourMission = "Our Mission",
4
- ourMissionFirstImage = "Our Mission First Image"
5
- }
6
1
  export interface TryOurFreeLegalBlogsContentProps {
7
2
  title: string;
8
3
  image: React.ReactNode;
9
4
  children: React.ReactNode;
10
- type?: TryOurFreeLegalBlogsContentType;
11
5
  }
@@ -1,6 +1 @@
1
- export var TryOurFreeLegalBlogsContentType;
2
- (function (TryOurFreeLegalBlogsContentType) {
3
- TryOurFreeLegalBlogsContentType["default"] = "Default";
4
- TryOurFreeLegalBlogsContentType["ourMission"] = "Our Mission";
5
- TryOurFreeLegalBlogsContentType["ourMissionFirstImage"] = "Our Mission First Image";
6
- })(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
1
+ export {};
@@ -1,12 +1,5 @@
1
- export enum TryOurFreeLegalBlogsContentType {
2
- default = 'Default',
3
- ourMission = 'Our Mission',
4
- ourMissionFirstImage = 'Our Mission First Image'
5
- }
6
-
7
1
  export interface TryOurFreeLegalBlogsContentProps {
8
2
  title: string
9
3
  image: React.ReactNode
10
4
  children: React.ReactNode
11
- type?: TryOurFreeLegalBlogsContentType
12
5
  }
@@ -1,2 +1,2 @@
1
1
  export { default as TryOurFreeLegalBlogsContent } from './TryOurFreeLegalBlogsContent';
2
- export { TryOurFreeLegalBlogsContentType, type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types';
2
+ export { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types';
@@ -1,2 +1 @@
1
1
  export { default as TryOurFreeLegalBlogsContent } from './TryOurFreeLegalBlogsContent';
2
- export { TryOurFreeLegalBlogsContentType } from './TryOurFreeLegalBlogsContentProps.types';
@@ -1,5 +1,2 @@
1
1
  export { default as TryOurFreeLegalBlogsContent } from './TryOurFreeLegalBlogsContent'
2
- export {
3
- TryOurFreeLegalBlogsContentType,
4
- type TryOurFreeLegalBlogsContentProps
5
- } from './TryOurFreeLegalBlogsContentProps.types'
2
+ export { type TryOurFreeLegalBlogsContentProps } from './TryOurFreeLegalBlogsContentProps.types'
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { AboutUsSection, AsSeeInSection, CardStorySection, ExpertsSection, GuidelinesSection, PeopleSayAboutUsSection, TryOurFreeLegalBlogsSection } from '../../sections';
3
- export const AboutUsPage = ({ aboutUsSectionProps, ourMissionBlogsSectionProps, ourCoreValuesBlogsSectionProps, cardStorySection, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, isJonSnow = false }) => {
4
- return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(AboutUsSection, { ...aboutUsSectionProps }), ourMissionBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourMissionBlogsSectionProps }), ourCoreValuesBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourCoreValuesBlogsSectionProps }), cardStorySection != null && _jsx(CardStorySection, { ...cardStorySection }), guidelinesSectionProps != null && (_jsx(GuidelinesSection, { ...guidelinesSectionProps, children: guidelinesSectionProps.contentGuidelines?.children })), expertsSectionProps != null && _jsx(ExpertsSection, { ...expertsSectionProps }), !isJonSnow && peopleSayAboutUsSectionProps != null && (_jsx(PeopleSayAboutUsSection, { ...peopleSayAboutUsSectionProps })), !isJonSnow && asSeeInSectionProps != null && _jsx(AsSeeInSection, { ...asSeeInSectionProps })] }));
2
+ import { AboutUsSection, AsSeeInSection, ExpertsSection, GuidelinesSection, PeopleSayAboutUsSection, TryOurFreeLegalBlogsSection } from '../../sections';
3
+ export const AboutUsPage = ({ aboutUsSectionProps, tryOurFreeLegalBlogsSectionProps, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, isJonSnow = false }) => {
4
+ return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(AboutUsSection, { ...aboutUsSectionProps }), tryOurFreeLegalBlogsSectionProps != null && (_jsx(TryOurFreeLegalBlogsSection, { ...tryOurFreeLegalBlogsSectionProps })), guidelinesSectionProps != null && (_jsx(GuidelinesSection, { ...guidelinesSectionProps, children: guidelinesSectionProps.contentGuidelines?.children })), expertsSectionProps != null && _jsx(ExpertsSection, { ...expertsSectionProps }), !isJonSnow && peopleSayAboutUsSectionProps != null && (_jsx(PeopleSayAboutUsSection, { ...peopleSayAboutUsSectionProps })), !isJonSnow && asSeeInSectionProps != null && _jsx(AsSeeInSection, { ...asSeeInSectionProps })] }));
5
5
  };
@@ -3,7 +3,6 @@ import React from 'react'
3
3
  import {
4
4
  AboutUsSection,
5
5
  AsSeeInSection,
6
- CardStorySection,
7
6
  ExpertsSection,
8
7
  GuidelinesSection,
9
8
  PeopleSayAboutUsSection,
@@ -13,9 +12,7 @@ import { type AboutUsPageProps } from './AboutUsPageProps'
13
12
 
14
13
  export const AboutUsPage: React.FC<AboutUsPageProps> = ({
15
14
  aboutUsSectionProps,
16
- ourMissionBlogsSectionProps,
17
- ourCoreValuesBlogsSectionProps,
18
- cardStorySection,
15
+ tryOurFreeLegalBlogsSectionProps,
19
16
  peopleSayAboutUsSectionProps,
20
17
  guidelinesSectionProps,
21
18
  expertsSectionProps,
@@ -25,9 +22,9 @@ export const AboutUsPage: React.FC<AboutUsPageProps> = ({
25
22
  return (
26
23
  <>
27
24
  {aboutUsSectionProps != null && <AboutUsSection {...aboutUsSectionProps} />}
28
- {ourMissionBlogsSectionProps != null && <TryOurFreeLegalBlogsSection {...ourMissionBlogsSectionProps} />}
29
- {ourCoreValuesBlogsSectionProps != null && <TryOurFreeLegalBlogsSection {...ourCoreValuesBlogsSectionProps} />}
30
- {cardStorySection != null && <CardStorySection {...cardStorySection} />}
25
+ {tryOurFreeLegalBlogsSectionProps != null && (
26
+ <TryOurFreeLegalBlogsSection {...tryOurFreeLegalBlogsSectionProps} />
27
+ )}
31
28
  {guidelinesSectionProps != null && (
32
29
  <GuidelinesSection {...guidelinesSectionProps}>
33
30
  {guidelinesSectionProps.contentGuidelines?.children}
@@ -1,9 +1,7 @@
1
- import type { AboutUsSectionProps, AsSeeInSectionProps, CardStorySectionProps, ExpertsSectionProps, GuidelinesSectionProps, PeopleSayAboutUsSectionProps, TryOurFreeLegalBlogsSectionProps, TryUsSectionProps } from '../../sections';
1
+ import type { AboutUsSectionProps, AsSeeInSectionProps, ExpertsSectionProps, GuidelinesSectionProps, PeopleSayAboutUsSectionProps, TryOurFreeLegalBlogsSectionProps, TryUsSectionProps } from '../../sections';
2
2
  export interface AboutUsPageProps {
3
3
  aboutUsSectionProps?: AboutUsSectionProps;
4
- ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
5
- ourCoreValuesBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
6
- cardStorySection?: CardStorySectionProps;
4
+ tryOurFreeLegalBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
7
5
  peopleSayAboutUsSectionProps?: PeopleSayAboutUsSectionProps;
8
6
  guidelinesSectionProps?: GuidelinesSectionProps;
9
7
  tryUsSectionProps?: TryUsSectionProps;
@@ -1,7 +1,6 @@
1
1
  import type {
2
2
  AboutUsSectionProps,
3
3
  AsSeeInSectionProps,
4
- CardStorySectionProps,
5
4
  ExpertsSectionProps,
6
5
  GuidelinesSectionProps,
7
6
  PeopleSayAboutUsSectionProps,
@@ -11,9 +10,7 @@ import type {
11
10
 
12
11
  export interface AboutUsPageProps {
13
12
  aboutUsSectionProps?: AboutUsSectionProps
14
- ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
15
- ourCoreValuesBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
16
- cardStorySection?: CardStorySectionProps
13
+ tryOurFreeLegalBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps
17
14
  peopleSayAboutUsSectionProps?: PeopleSayAboutUsSectionProps
18
15
  guidelinesSectionProps?: GuidelinesSectionProps
19
16
  tryUsSectionProps?: TryUsSectionProps
@@ -3,10 +3,10 @@ import styled from 'styled-components';
3
3
  export const AboutUsSectionStyled = styled.div `
4
4
  padding-top: 1.125rem;
5
5
  background: var(--primary-main-light-6);
6
- padding-bottom: 2rem;
6
+ margin-bottom: 3rem;
7
7
 
8
- @media ${device['landscape-tablets']} {
9
- padding-bottom: 4rem;
8
+ @media ${device.laptop} {
9
+ margin-bottom: 5rem;
10
10
  }
11
11
 
12
12
  .about-us-section {
@@ -26,10 +26,9 @@ export const AboutUsSectionStyled = styled.div `
26
26
  }
27
27
 
28
28
  &__sub-title {
29
- margin-bottom: 2rem;
30
- margin-top: 2rem;
29
+ margin-bottom: 1.5rem;
31
30
  text-align: center;
32
- font-size: 1.75rem;
31
+ font-size: 2rem;
33
32
  line-height: 1.2;
34
33
  letter-spacing: -0.4px;
35
34
  font-weight: 400;
@@ -37,12 +36,17 @@ export const AboutUsSectionStyled = styled.div `
37
36
  color: var(--neutral-neutral-1);
38
37
 
39
38
  @media ${device['landscape-tablets']} {
40
- font-size: 2rem;
41
- margin: 3rem auto 3rem auto;
39
+ font-size: 2.3rem;
40
+ max-width: $sm;
41
+ margin: 0 auto 2rem auto;
42
+ }
43
+
44
+ @media ${device.desktop} {
45
+ max-width: 792px;
42
46
  }
43
47
 
44
48
  @media ${device.laptop} {
45
- font-size: 2.25rem;
49
+ font-size: 3rem;
46
50
  }
47
51
  }
48
52
  }
@@ -4,10 +4,10 @@ import styled from 'styled-components'
4
4
  export const AboutUsSectionStyled = styled.div`
5
5
  padding-top: 1.125rem;
6
6
  background: var(--primary-main-light-6);
7
- padding-bottom: 2rem;
7
+ margin-bottom: 3rem;
8
8
 
9
- @media ${device['landscape-tablets']} {
10
- padding-bottom: 4rem;
9
+ @media ${device.laptop} {
10
+ margin-bottom: 5rem;
11
11
  }
12
12
 
13
13
  .about-us-section {
@@ -27,10 +27,9 @@ export const AboutUsSectionStyled = styled.div`
27
27
  }
28
28
 
29
29
  &__sub-title {
30
- margin-bottom: 2rem;
31
- margin-top: 2rem;
30
+ margin-bottom: 1.5rem;
32
31
  text-align: center;
33
- font-size: 1.75rem;
32
+ font-size: 2rem;
34
33
  line-height: 1.2;
35
34
  letter-spacing: -0.4px;
36
35
  font-weight: 400;
@@ -38,12 +37,17 @@ export const AboutUsSectionStyled = styled.div`
38
37
  color: var(--neutral-neutral-1);
39
38
 
40
39
  @media ${device['landscape-tablets']} {
41
- font-size: 2rem;
42
- margin: 3rem auto 3rem auto;
40
+ font-size: 2.3rem;
41
+ max-width: $sm;
42
+ margin: 0 auto 2rem auto;
43
+ }
44
+
45
+ @media ${device.desktop} {
46
+ max-width: 792px;
43
47
  }
44
48
 
45
49
  @media ${device.laptop} {
46
- font-size: 2.25rem;
50
+ font-size: 3rem;
47
51
  }
48
52
  }
49
53
  }
@@ -6,4 +6,5 @@ export const GuidelinesSectionStyled = styled.section `
6
6
  background: var(--neutral-neutral-6);
7
7
  padding-top: 2rem;
8
8
  padding-bottom: 2rem;
9
+ margin-top: 3rem;
9
10
  `;
@@ -7,4 +7,5 @@ export const GuidelinesSectionStyled = styled.section`
7
7
  background: var(--neutral-neutral-6);
8
8
  padding-top: 2rem;
9
9
  padding-bottom: 2rem;
10
+ margin-top: 3rem;
10
11
  `