@npm_leadtech/legal-lib-components 5.71.0 → 5.72.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.
@@ -9,11 +9,15 @@ export const ContactCardStyled = styled.div `
9
9
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
10
10
  border-radius: var(--s-border-radius);
11
11
  min-width: 12.5rem;
12
- height: 7.875rem;
13
12
  flex-shrink: 0;
14
13
  padding: 1rem;
15
14
  text-decoration: none;
16
15
  color: var(--neutral-neutral-1);
16
+
17
+ @media ${device['landscape-tablets']} {
18
+ height: 100%;
19
+ }
20
+
17
21
  &__image {
18
22
  width: 2rem;
19
23
  }
@@ -10,11 +10,15 @@ export const ContactCardStyled = styled.div`
10
10
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
11
11
  border-radius: var(--s-border-radius);
12
12
  min-width: 12.5rem;
13
- height: 7.875rem;
14
13
  flex-shrink: 0;
15
14
  padding: 1rem;
16
15
  text-decoration: none;
17
16
  color: var(--neutral-neutral-1);
17
+
18
+ @media ${device['landscape-tablets']} {
19
+ height: 100%;
20
+ }
21
+
18
22
  &__image {
19
23
  width: 2rem;
20
24
  }
@@ -6,7 +6,7 @@ export const ContactCardListStyled = styled.div `
6
6
  flex-direction: column;
7
7
  gap: var(--global-gap);
8
8
 
9
- @media ${device.laptop} {
9
+ @media ${device['landscape-tablets']} {
10
10
  flex-direction: row;
11
11
  gap: 2.5rem;
12
12
  }
@@ -7,7 +7,7 @@ export const ContactCardListStyled = styled.div`
7
7
  flex-direction: column;
8
8
  gap: var(--global-gap);
9
9
 
10
- @media ${device.laptop} {
10
+ @media ${device['landscape-tablets']} {
11
11
  flex-direction: row;
12
12
  gap: 2.5rem;
13
13
  }
@@ -4,6 +4,6 @@ import { ContactContentStyled } from './ContactContent.styled';
4
4
  const ContactContent = ({ title, text, contactCards = [] }) => {
5
5
  if (contactCards.length === 0)
6
6
  return null;
7
- return (_jsxs(ContactContentStyled, { className: 'contact-content', children: [_jsx("h2", { className: 'contact-content__title', children: title }), _jsx("p", { className: 'contact-content__text', children: text }), _jsx(ContactCardList, { contactCards: contactCards })] }));
7
+ return (_jsx(ContactContentStyled, { className: 'contact-content', children: _jsx("div", { className: 'wrapper', children: _jsxs("div", { className: 'contact-content__body', children: [_jsx("h2", { className: 'contact-content__title', children: title }), _jsx("p", { className: 'contact-content__text', children: text }), _jsx(ContactCardList, { contactCards: contactCards })] }) }) }));
8
8
  };
9
9
  export default ContactContent;
@@ -1,21 +1,34 @@
1
+ import { device } from '../../../globalStyles/breakpoints';
1
2
  import styled from 'styled-components';
2
3
  export const ContactContentStyled = styled.div `
3
- display: flex;
4
- flex-direction: column;
5
- transform: translateY(-5rem);
6
- color: var(--neutral-neutral-1);
7
- margin-top: 1rem;
4
+ background: var(--neutral-neutral-6);
5
+ padding: 0 1.5rem;
6
+
7
+ @media ${device.laptop} {
8
+ padding: 0;
9
+ }
8
10
 
9
11
  .contact-content {
12
+ &__body {
13
+ display: flex;
14
+ flex-direction: column;
15
+ color: var(--neutral-neutral-1);
16
+ padding-top: 2rem;
17
+ padding-bottom: 5rem;
18
+
19
+ @media ${device['landscape-tablets']} {
20
+ padding-top: 3rem;
21
+ }
22
+ }
10
23
  &__title {
11
24
  text-align: center;
12
- font-size: 32px;
13
- font-family: var(--font-serif);
25
+ font-size: 1.75rem;
26
+ font-family: var(--font-sans);
14
27
  font-style: normal;
15
- font-weight: 400;
16
- line-height: 42px;
28
+ font-weight: 700;
29
+ line-height: 1.2;
17
30
  letter-spacing: -0.3px;
18
- margin: 1rem 0;
31
+ padding-bottom: 1.5rem;
19
32
  }
20
33
 
21
34
  &__text {
@@ -23,6 +36,10 @@ export const ContactContentStyled = styled.div `
23
36
  font-style: normal;
24
37
  font-weight: 400;
25
38
  margin: 0 0 2rem 0;
39
+
40
+ @media ${device['landscape-tablets']} {
41
+ letter-spacing: -0.2px;
42
+ }
26
43
  }
27
44
  }
28
45
  `;
@@ -1,22 +1,35 @@
1
+ import { device } from '../../../globalStyles/breakpoints'
1
2
  import styled from 'styled-components'
2
3
 
3
4
  export const ContactContentStyled = styled.div`
4
- display: flex;
5
- flex-direction: column;
6
- transform: translateY(-5rem);
7
- color: var(--neutral-neutral-1);
8
- margin-top: 1rem;
5
+ background: var(--neutral-neutral-6);
6
+ padding: 0 1.5rem;
7
+
8
+ @media ${device.laptop} {
9
+ padding: 0;
10
+ }
9
11
 
10
12
  .contact-content {
13
+ &__body {
14
+ display: flex;
15
+ flex-direction: column;
16
+ color: var(--neutral-neutral-1);
17
+ padding-top: 2rem;
18
+ padding-bottom: 5rem;
19
+
20
+ @media ${device['landscape-tablets']} {
21
+ padding-top: 3rem;
22
+ }
23
+ }
11
24
  &__title {
12
25
  text-align: center;
13
- font-size: 32px;
14
- font-family: var(--font-serif);
26
+ font-size: 1.75rem;
27
+ font-family: var(--font-sans);
15
28
  font-style: normal;
16
- font-weight: 400;
17
- line-height: 42px;
29
+ font-weight: 700;
30
+ line-height: 1.2;
18
31
  letter-spacing: -0.3px;
19
- margin: 1rem 0;
32
+ padding-bottom: 1.5rem;
20
33
  }
21
34
 
22
35
  &__text {
@@ -24,6 +37,10 @@ export const ContactContentStyled = styled.div`
24
37
  font-style: normal;
25
38
  font-weight: 400;
26
39
  margin: 0 0 2rem 0;
40
+
41
+ @media ${device['landscape-tablets']} {
42
+ letter-spacing: -0.2px;
43
+ }
27
44
  }
28
45
  }
29
46
  `
@@ -11,9 +11,13 @@ const ContactContent: FC<ContactContentProps> = ({ title, text, contactCards = [
11
11
 
12
12
  return (
13
13
  <ContactContentStyled className='contact-content'>
14
- <h2 className='contact-content__title'>{title}</h2>
15
- <p className='contact-content__text'>{text}</p>
16
- <ContactCardList contactCards={contactCards} />
14
+ <div className='wrapper'>
15
+ <div className='contact-content__body'>
16
+ <h2 className='contact-content__title'>{title}</h2>
17
+ <p className='contact-content__text'>{text}</p>
18
+ <ContactCardList contactCards={contactCards} />
19
+ </div>
20
+ </div>
17
21
  </ContactContentStyled>
18
22
  )
19
23
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AboutUsSection, AsSeeInSection, CardStorySection, ExpertsSection, GuidelinesSection, PeopleSayAboutUsSection, TryOurFreeLegalBlogsSection } from '../../sections';
3
- import { HowWeHelp } from '../../organisms';
4
- export const AboutUsPage = ({ aboutUsSectionProps, ourMissionBlogsSectionProps, ourCoreValuesBlogsSectionProps, cardStorySection, howWeHelp, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, isJonSnow = false }) => {
5
- return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(AboutUsSection, { ...aboutUsSectionProps }), ourMissionBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourMissionBlogsSectionProps }), ourCoreValuesBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourCoreValuesBlogsSectionProps }), cardStorySection != null && _jsx(CardStorySection, { ...cardStorySection }), howWeHelp != null && _jsx(HowWeHelp, { ...howWeHelp }), 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 })] }));
3
+ import { ContactContent, HowWeHelp } from '../../organisms';
4
+ export const AboutUsPage = ({ aboutUsSectionProps, ourMissionBlogsSectionProps, ourCoreValuesBlogsSectionProps, cardStorySection, howWeHelp, peopleSayAboutUsSectionProps, guidelinesSectionProps, expertsSectionProps, asSeeInSectionProps, contactContentProps, isJonSnow = false }) => {
5
+ return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(AboutUsSection, { ...aboutUsSectionProps }), ourMissionBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourMissionBlogsSectionProps }), ourCoreValuesBlogsSectionProps != null && _jsx(TryOurFreeLegalBlogsSection, { ...ourCoreValuesBlogsSectionProps }), cardStorySection != null && _jsx(CardStorySection, { ...cardStorySection }), howWeHelp != null && _jsx(HowWeHelp, { ...howWeHelp }), 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 }), !isJonSnow && contactContentProps != null && _jsx(ContactContent, { ...contactContentProps })] }));
6
6
  };
@@ -9,8 +9,8 @@ import {
9
9
  PeopleSayAboutUsSection,
10
10
  TryOurFreeLegalBlogsSection
11
11
  } from '../../sections'
12
+ import { ContactContent, HowWeHelp } from '../../organisms'
12
13
  import { type AboutUsPageProps } from './AboutUsPageProps'
13
- import { HowWeHelp } from '../../organisms'
14
14
 
15
15
  export const AboutUsPage: React.FC<AboutUsPageProps> = ({
16
16
  aboutUsSectionProps,
@@ -22,6 +22,7 @@ export const AboutUsPage: React.FC<AboutUsPageProps> = ({
22
22
  guidelinesSectionProps,
23
23
  expertsSectionProps,
24
24
  asSeeInSectionProps,
25
+ contactContentProps,
25
26
  isJonSnow = false
26
27
  }) => {
27
28
  return (
@@ -41,6 +42,7 @@ export const AboutUsPage: React.FC<AboutUsPageProps> = ({
41
42
  <PeopleSayAboutUsSection {...peopleSayAboutUsSectionProps} />
42
43
  )}
43
44
  {!isJonSnow && asSeeInSectionProps != null && <AsSeeInSection {...asSeeInSectionProps} />}
45
+ {!isJonSnow && contactContentProps != null && <ContactContent {...contactContentProps} />}
44
46
  </>
45
47
  )
46
48
  }
@@ -1,5 +1,5 @@
1
1
  import type { AboutUsSectionProps, AsSeeInSectionProps, CardStorySectionProps, ExpertsSectionProps, GuidelinesSectionProps, PeopleSayAboutUsSectionProps, TryOurFreeLegalBlogsSectionProps, TryUsSectionProps } from '../../sections';
2
- import { HowWeHelpProps } from '../../organisms';
2
+ import { ContactContentProps, HowWeHelpProps } from '../../organisms';
3
3
  export interface AboutUsPageProps {
4
4
  aboutUsSectionProps?: AboutUsSectionProps;
5
5
  ourMissionBlogsSectionProps?: TryOurFreeLegalBlogsSectionProps;
@@ -11,5 +11,6 @@ export interface AboutUsPageProps {
11
11
  tryUsSectionProps?: TryUsSectionProps;
12
12
  expertsSectionProps?: ExpertsSectionProps;
13
13
  asSeeInSectionProps?: AsSeeInSectionProps;
14
+ contactContentProps?: ContactContentProps;
14
15
  isJonSnow?: boolean;
15
16
  }
@@ -8,7 +8,7 @@ import type {
8
8
  TryOurFreeLegalBlogsSectionProps,
9
9
  TryUsSectionProps
10
10
  } from '../../sections'
11
- import { HowWeHelpProps } from '../../organisms'
11
+ import { ContactContentProps, HowWeHelpProps } from '../../organisms'
12
12
 
13
13
  export interface AboutUsPageProps {
14
14
  aboutUsSectionProps?: AboutUsSectionProps
@@ -21,5 +21,6 @@ export interface AboutUsPageProps {
21
21
  tryUsSectionProps?: TryUsSectionProps
22
22
  expertsSectionProps?: ExpertsSectionProps
23
23
  asSeeInSectionProps?: AsSeeInSectionProps
24
+ contactContentProps?: ContactContentProps
24
25
  isJonSnow?: boolean
25
26
  }
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { AsSeeInContent, ContactContent } from '../../organisms';
2
+ import { AsSeeInContent } from '../../organisms';
3
3
  import { AsSeeInSectionStyled } from './AsSeeInSection.styled';
4
- const AsSeeInSection = ({ title, contentAsSeeIn, contactSectionTitle, contactSectionText, contactSectionBlocks }) => {
4
+ const AsSeeInSection = ({ title, contentAsSeeIn }) => {
5
5
  if (contentAsSeeIn.trustWorthyImages.images.length === 0) {
6
6
  return null;
7
7
  }
8
- return (_jsxs(AsSeeInSectionStyled, { 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 })] }), _jsx(ContactContent, { title: contactSectionTitle, text: contactSectionText, contactCards: contactSectionBlocks })] }));
8
+ return (_jsx(AsSeeInSectionStyled, { 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;
@@ -3,10 +3,10 @@ import styled from 'styled-components';
3
3
  export const AsSeeInSectionStyled = styled.section `
4
4
  flex-shrink: 0;
5
5
  background-color: get-color(secondary, main-light-5);
6
- padding: 0 1.5rem;
6
+ padding: 0 1.5rem 2rem 1.5rem;
7
7
 
8
- @media ${device.laptop} {
9
- margin-top: 12rem;
8
+ @media ${device['landscape-tablets']} {
9
+ padding: 0 1.5rem 3rem 1.5rem;
10
10
  }
11
11
 
12
12
  .as-seen-in-section {
@@ -14,13 +14,8 @@ export const AsSeeInSectionStyled = styled.section `
14
14
  flex-direction: column;
15
15
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
16
16
  background: get-color(others, white);
17
- transform: translateY(-5rem);
18
17
  padding: 1.5rem 0;
19
18
 
20
- @media ${device.laptop} {
21
- transform: translateY(-50%);
22
- }
23
-
24
19
  &__title {
25
20
  color: var(--neutral-neutral-2);
26
21
  text-align: center;
@@ -4,10 +4,10 @@ import styled from 'styled-components'
4
4
  export const AsSeeInSectionStyled = styled.section`
5
5
  flex-shrink: 0;
6
6
  background-color: get-color(secondary, main-light-5);
7
- padding: 0 1.5rem;
7
+ padding: 0 1.5rem 2rem 1.5rem;
8
8
 
9
- @media ${device.laptop} {
10
- margin-top: 12rem;
9
+ @media ${device['landscape-tablets']} {
10
+ padding: 0 1.5rem 3rem 1.5rem;
11
11
  }
12
12
 
13
13
  .as-seen-in-section {
@@ -15,13 +15,8 @@ export const AsSeeInSectionStyled = styled.section`
15
15
  flex-direction: column;
16
16
  box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
17
17
  background: get-color(others, white);
18
- transform: translateY(-5rem);
19
18
  padding: 1.5rem 0;
20
19
 
21
- @media ${device.laptop} {
22
- transform: translateY(-50%);
23
- }
24
-
25
20
  &__title {
26
21
  color: var(--neutral-neutral-2);
27
22
  text-align: center;
@@ -1,16 +1,10 @@
1
1
  import React, { type FC } from 'react'
2
2
 
3
- import { AsSeeInContent, ContactContent } from '../../organisms'
3
+ import { AsSeeInContent } from '../../organisms'
4
4
  import { type AsSeeInSectionProps } from './AsSeeInSectionProps.types'
5
5
  import { AsSeeInSectionStyled } from './AsSeeInSection.styled'
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,7 +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
- <ContactContent title={contactSectionTitle} text={contactSectionText} contactCards={contactSectionBlocks} />
25
18
  </AsSeeInSectionStyled>
26
19
  )
27
20
  }
@@ -1,9 +1,5 @@
1
1
  import { type AsSeeInContentProps } from '../../organisms';
2
- import { ContactCardProps } from '../../atoms';
3
2
  export interface AsSeeInSectionProps {
4
3
  title: string;
5
4
  contentAsSeeIn: AsSeeInContentProps;
6
- contactSectionTitle: string;
7
- contactSectionText: string;
8
- contactSectionBlocks?: ContactCardProps[];
9
5
  }
@@ -1,10 +1,6 @@
1
1
  import { type AsSeeInContentProps } from '../../organisms'
2
- import { ContactCardProps } from '../../atoms'
3
2
 
4
3
  export interface AsSeeInSectionProps {
5
4
  title: string
6
5
  contentAsSeeIn: AsSeeInContentProps
7
- contactSectionTitle: string
8
- contactSectionText: string
9
- contactSectionBlocks?: ContactCardProps[]
10
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.71.0",
3
+ "version": "5.72.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",