@npm_leadtech/legal-lib-components 7.32.3 → 7.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/atoms/Logo/svg/lawdistrict-logo.svg +12 -11
- package/dist/src/components/atoms/Logo/svg/lawdistrict-white-logo.svg +12 -11
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +1 -1
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +1 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +1 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +2 -4
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +2 -4
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +1 -4
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +1 -3
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +0 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +1 -3
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -9
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +0 -30
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +0 -30
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +1 -10
- package/dist/src/components/sections/index.d.ts +0 -3
- package/dist/src/components/sections/index.js +0 -3
- package/dist/src/components/sections/index.ts +0 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.d.ts +0 -3
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.js +0 -5
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.d.ts +0 -1
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.js +0 -46
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.ts +0 -47
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.tsx +0 -20
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.d.ts +0 -5
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.js +0 -1
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.ts +0 -5
- package/dist/src/components/molecules/LawGeniusInfoCard/index.d.ts +0 -2
- package/dist/src/components/molecules/LawGeniusInfoCard/index.js +0 -2
- package/dist/src/components/molecules/LawGeniusInfoCard/index.ts +0 -2
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.d.ts +0 -3
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.js +0 -5
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.tsx +0 -26
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.d.ts +0 -10
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.js +0 -1
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.ts +0 -16
- package/dist/src/components/pages/HowItWorksPage/index.d.ts +0 -2
- package/dist/src/components/pages/HowItWorksPage/index.js +0 -2
- package/dist/src/components/pages/HowItWorksPage/index.ts +0 -2
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.d.ts +0 -4
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.js +0 -12
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.js +0 -98
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.ts +0 -99
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.tsx +0 -69
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts +0 -15
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js +0 -1
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts +0 -16
- package/dist/src/components/sections/LawGeniusCardsSection/index.d.ts +0 -2
- package/dist/src/components/sections/LawGeniusCardsSection/index.js +0 -1
- package/dist/src/components/sections/LawGeniusCardsSection/index.ts +0 -2
- package/dist/src/components/sections/TryNowSection/TryNowSection.d.ts +0 -3
- package/dist/src/components/sections/TryNowSection/TryNowSection.js +0 -6
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.d.ts +0 -1
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.js +0 -186
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.ts +0 -187
- package/dist/src/components/sections/TryNowSection/TryNowSection.tsx +0 -28
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.d.ts +0 -8
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.js +0 -1
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.ts +0 -9
- package/dist/src/components/sections/TryNowSection/index.d.ts +0 -2
- package/dist/src/components/sections/TryNowSection/index.js +0 -1
- package/dist/src/components/sections/TryNowSection/index.ts +0 -2
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { HeroSection, LawGeniusCardsSection, TryNowSection, TryOurFreeLegalBlogsSection } from '../../sections';
|
|
3
|
-
export const HowItWorksPage = ({ aboutUsSectionProps, howItWorksStep1Props, howItWorksStep2Props, howItWorksStep3Props, howItWorksStep4Props, lawGeniusCardsSectionProps, tryNowSectionProps }) => {
|
|
4
|
-
return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(HeroSection, { ...aboutUsSectionProps }), howItWorksStep1Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep1Props }), howItWorksStep2Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep2Props }), howItWorksStep3Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep3Props }), howItWorksStep4Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep4Props }), lawGeniusCardsSectionProps != null && _jsx(LawGeniusCardsSection, { ...lawGeniusCardsSectionProps }), tryNowSectionProps != null && _jsx(TryNowSection, { ...tryNowSectionProps })] }));
|
|
5
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import { HeroSection, LawGeniusCardsSection, TryNowSection, TryOurFreeLegalBlogsSection } from '../../sections'
|
|
4
|
-
import { type HowItWorksPageProps } from './HowItWorksPageProps'
|
|
5
|
-
|
|
6
|
-
export const HowItWorksPage: React.FC<HowItWorksPageProps> = ({
|
|
7
|
-
aboutUsSectionProps,
|
|
8
|
-
howItWorksStep1Props,
|
|
9
|
-
howItWorksStep2Props,
|
|
10
|
-
howItWorksStep3Props,
|
|
11
|
-
howItWorksStep4Props,
|
|
12
|
-
lawGeniusCardsSectionProps,
|
|
13
|
-
tryNowSectionProps
|
|
14
|
-
}) => {
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
{aboutUsSectionProps != null && <HeroSection {...aboutUsSectionProps} />}
|
|
18
|
-
{howItWorksStep1Props != null && <TryOurFreeLegalBlogsSection {...howItWorksStep1Props} />}
|
|
19
|
-
{howItWorksStep2Props != null && <TryOurFreeLegalBlogsSection {...howItWorksStep2Props} />}
|
|
20
|
-
{howItWorksStep3Props != null && <TryOurFreeLegalBlogsSection {...howItWorksStep3Props} />}
|
|
21
|
-
{howItWorksStep4Props != null && <TryOurFreeLegalBlogsSection {...howItWorksStep4Props} />}
|
|
22
|
-
{lawGeniusCardsSectionProps != null && <LawGeniusCardsSection {...lawGeniusCardsSectionProps} />}
|
|
23
|
-
{tryNowSectionProps != null && <TryNowSection {...tryNowSectionProps} />}
|
|
24
|
-
</>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { HeroSectionProps, LawGeniusCardsSectionProps, TryNowSectionProps, TryOurFreeLegalBlogsSectionProps } from '../../sections';
|
|
2
|
-
export interface HowItWorksPageProps {
|
|
3
|
-
aboutUsSectionProps?: HeroSectionProps;
|
|
4
|
-
howItWorksStep1Props?: TryOurFreeLegalBlogsSectionProps;
|
|
5
|
-
howItWorksStep2Props?: TryOurFreeLegalBlogsSectionProps;
|
|
6
|
-
howItWorksStep3Props?: TryOurFreeLegalBlogsSectionProps;
|
|
7
|
-
howItWorksStep4Props?: TryOurFreeLegalBlogsSectionProps;
|
|
8
|
-
lawGeniusCardsSectionProps?: LawGeniusCardsSectionProps;
|
|
9
|
-
tryNowSectionProps?: TryNowSectionProps;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
HeroSectionProps,
|
|
3
|
-
LawGeniusCardsSectionProps,
|
|
4
|
-
TryNowSectionProps,
|
|
5
|
-
TryOurFreeLegalBlogsSectionProps
|
|
6
|
-
} from '../../sections'
|
|
7
|
-
|
|
8
|
-
export interface HowItWorksPageProps {
|
|
9
|
-
aboutUsSectionProps?: HeroSectionProps
|
|
10
|
-
howItWorksStep1Props?: TryOurFreeLegalBlogsSectionProps
|
|
11
|
-
howItWorksStep2Props?: TryOurFreeLegalBlogsSectionProps
|
|
12
|
-
howItWorksStep3Props?: TryOurFreeLegalBlogsSectionProps
|
|
13
|
-
howItWorksStep4Props?: TryOurFreeLegalBlogsSectionProps
|
|
14
|
-
lawGeniusCardsSectionProps?: LawGeniusCardsSectionProps
|
|
15
|
-
tryNowSectionProps?: TryNowSectionProps
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '../../atoms';
|
|
3
|
-
import { LawGeniusCardsSectionStyled } from './LawGeniusCardsSection.styled';
|
|
4
|
-
import { LawGeniusInfoCard } from '../../molecules/LawGeniusInfoCard';
|
|
5
|
-
import { useIsMobileOrTable } from '../../../hooks';
|
|
6
|
-
const LawGeniusCardsSection = ({ title, contentTop, contentBottom, card1, card2, card3, ctaLabel, ctaLink = '#', handleOnClick, ctaDataQa = 'ai-section-cta', image }) => {
|
|
7
|
-
const { isMobile } = useIsMobileOrTable();
|
|
8
|
-
if (contentTop == undefined)
|
|
9
|
-
return null;
|
|
10
|
-
return (_jsx(LawGeniusCardsSectionStyled, { className: 'layout-ratafia-section', children: _jsxs("div", { className: 'layout-ratafia-section__wrapper background-ratafia-animation', children: [_jsxs("div", { className: 'layout-ratafia-section__topContent', children: [title && (_jsx("h2", { className: 'layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight', children: title })), _jsx("div", { className: 'layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium', children: contentTop })] }), _jsxs("div", { className: 'layout-ratafia-section__wrapperContent', children: [_jsxs("div", { className: 'layout-ratafia-section__wrapper__info', children: [_jsxs("div", { className: 'layout-ratafia-section__wrapper__info cards', children: [_jsx(LawGeniusInfoCard, { title: card1?.title ?? '', text: card1?.text ?? '', icon: card1?.icon }), _jsx(LawGeniusInfoCard, { title: card2?.title ?? '', text: card2?.text ?? '', icon: card2?.icon }), _jsx(LawGeniusInfoCard, { title: card3?.title ?? '', text: card3?.text ?? '', icon: card3?.icon })] }), _jsx("div", { className: 'layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium bottomContent', children: contentBottom }), ctaLabel && (_jsx("div", { className: 'layout-ratafia-section__wrapper__info__button', children: _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: ctaDataQa, link: ctaLink, onClick: handleOnClick, color: 'primary', label: ctaLabel, fluid: isMobile }) }))] }), image !== null && _jsx("div", { className: 'layout-ratafia-section__wrapper__image', children: image })] })] }) }));
|
|
11
|
-
};
|
|
12
|
-
export default LawGeniusCardsSection;
|
package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LawGeniusCardsSectionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
export const LawGeniusCardsSectionStyled = styled.section `
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-content: center;
|
|
7
|
-
width: 100%;
|
|
8
|
-
background-color: var(--neutral-neutral-6);
|
|
9
|
-
padding: 2rem 1.5rem;
|
|
10
|
-
|
|
11
|
-
@media ${device.laptop} {
|
|
12
|
-
padding: 3rem 2rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media ${device['desktop-xl']} {
|
|
16
|
-
padding: 3rem 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.layout-ratafia-section {
|
|
20
|
-
&__topContent {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
color: var(--others-white);
|
|
24
|
-
}
|
|
25
|
-
&__wrapper {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
align-items: center;
|
|
30
|
-
align-self: stretch;
|
|
31
|
-
padding: 1.5rem;
|
|
32
|
-
gap: 2rem;
|
|
33
|
-
border-radius: var(--l-border-radius);
|
|
34
|
-
max-width: 1200px;
|
|
35
|
-
|
|
36
|
-
@media ${device['landscape-tablets']} {
|
|
37
|
-
padding: 2.5rem;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media ${device.laptop} {
|
|
41
|
-
gap: 2rem;
|
|
42
|
-
padding: 4rem;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&__info {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: flex-start;
|
|
50
|
-
align-self: stretch;
|
|
51
|
-
gap: 1.5rem;
|
|
52
|
-
|
|
53
|
-
.bottomContent {
|
|
54
|
-
p {
|
|
55
|
-
color: var(--others-white);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&__paragraph {
|
|
60
|
-
display: flex;
|
|
61
|
-
flex-direction: column;
|
|
62
|
-
gap: var(--global-gap);
|
|
63
|
-
color: var(--others-white);
|
|
64
|
-
|
|
65
|
-
p:not(:last-child) {
|
|
66
|
-
margin-bottom: 1.5rem;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&__button {
|
|
71
|
-
display: flex;
|
|
72
|
-
width: 100%;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.cards {
|
|
76
|
-
gap: 1rem;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&__image {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex: 450px 0 0;
|
|
83
|
-
img {
|
|
84
|
-
object-fit: cover;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
&__wrapperContent {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
gap: 2rem;
|
|
92
|
-
|
|
93
|
-
@media ${device.laptop} {
|
|
94
|
-
flex-flow: row nowrap;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
|
|
4
|
-
export const LawGeniusCardsSectionStyled = styled.section`
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-content: center;
|
|
8
|
-
width: 100%;
|
|
9
|
-
background-color: var(--neutral-neutral-6);
|
|
10
|
-
padding: 2rem 1.5rem;
|
|
11
|
-
|
|
12
|
-
@media ${device.laptop} {
|
|
13
|
-
padding: 3rem 2rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@media ${device['desktop-xl']} {
|
|
17
|
-
padding: 3rem 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.layout-ratafia-section {
|
|
21
|
-
&__topContent {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
color: var(--others-white);
|
|
25
|
-
}
|
|
26
|
-
&__wrapper {
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
align-items: center;
|
|
31
|
-
align-self: stretch;
|
|
32
|
-
padding: 1.5rem;
|
|
33
|
-
gap: 2rem;
|
|
34
|
-
border-radius: var(--l-border-radius);
|
|
35
|
-
max-width: 1200px;
|
|
36
|
-
|
|
37
|
-
@media ${device['landscape-tablets']} {
|
|
38
|
-
padding: 2.5rem;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@media ${device.laptop} {
|
|
42
|
-
gap: 2rem;
|
|
43
|
-
padding: 4rem;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&__info {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: column;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
align-items: flex-start;
|
|
51
|
-
align-self: stretch;
|
|
52
|
-
gap: 1.5rem;
|
|
53
|
-
|
|
54
|
-
.bottomContent {
|
|
55
|
-
p {
|
|
56
|
-
color: var(--others-white);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__paragraph {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
gap: var(--global-gap);
|
|
64
|
-
color: var(--others-white);
|
|
65
|
-
|
|
66
|
-
p:not(:last-child) {
|
|
67
|
-
margin-bottom: 1.5rem;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__button {
|
|
72
|
-
display: flex;
|
|
73
|
-
width: 100%;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&.cards {
|
|
77
|
-
gap: 1rem;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&__image {
|
|
82
|
-
display: flex;
|
|
83
|
-
flex: 450px 0 0;
|
|
84
|
-
img {
|
|
85
|
-
object-fit: cover;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
&__wrapperContent {
|
|
90
|
-
display: flex;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
gap: 2rem;
|
|
93
|
-
|
|
94
|
-
@media ${device.laptop} {
|
|
95
|
-
flex-flow: row nowrap;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
`
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React, { type FC } from 'react'
|
|
2
|
-
|
|
3
|
-
import { Button } from '../../atoms'
|
|
4
|
-
import { type LawGeniusCardsSectionProps } from './LawGeniusCardsSectionProps.types'
|
|
5
|
-
import { LawGeniusCardsSectionStyled } from './LawGeniusCardsSection.styled'
|
|
6
|
-
import { LawGeniusInfoCard } from '../../molecules/LawGeniusInfoCard'
|
|
7
|
-
import { useIsMobileOrTable } from '../../../hooks'
|
|
8
|
-
|
|
9
|
-
const LawGeniusCardsSection: FC<LawGeniusCardsSectionProps> = ({
|
|
10
|
-
title,
|
|
11
|
-
contentTop,
|
|
12
|
-
contentBottom,
|
|
13
|
-
card1,
|
|
14
|
-
card2,
|
|
15
|
-
card3,
|
|
16
|
-
ctaLabel,
|
|
17
|
-
ctaLink = '#',
|
|
18
|
-
handleOnClick,
|
|
19
|
-
ctaDataQa = 'ai-section-cta',
|
|
20
|
-
image
|
|
21
|
-
}) => {
|
|
22
|
-
const { isMobile } = useIsMobileOrTable()
|
|
23
|
-
if (contentTop == undefined) return null
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<LawGeniusCardsSectionStyled className='layout-ratafia-section'>
|
|
27
|
-
<div className='layout-ratafia-section__wrapper background-ratafia-animation'>
|
|
28
|
-
<div className='layout-ratafia-section__topContent'>
|
|
29
|
-
{title && (
|
|
30
|
-
<h2 className='layout-ratafia-section__wrapper__info__paragraph__title sans-serif --super-large --bold-weight'>
|
|
31
|
-
{title}
|
|
32
|
-
</h2>
|
|
33
|
-
)}
|
|
34
|
-
<div className='layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium'>
|
|
35
|
-
{contentTop}
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div className='layout-ratafia-section__wrapperContent'>
|
|
39
|
-
<div className='layout-ratafia-section__wrapper__info'>
|
|
40
|
-
<div className='layout-ratafia-section__wrapper__info cards'>
|
|
41
|
-
<LawGeniusInfoCard title={card1?.title ?? ''} text={card1?.text ?? ''} icon={card1?.icon} />
|
|
42
|
-
<LawGeniusInfoCard title={card2?.title ?? ''} text={card2?.text ?? ''} icon={card2?.icon} />
|
|
43
|
-
<LawGeniusInfoCard title={card3?.title ?? ''} text={card3?.text ?? ''} icon={card3?.icon} />
|
|
44
|
-
</div>
|
|
45
|
-
<div className='layout-ratafia-section__wrapper__info__paragraph__content sans-serif --super-medium bottomContent'>
|
|
46
|
-
{contentBottom}
|
|
47
|
-
</div>
|
|
48
|
-
{ctaLabel && (
|
|
49
|
-
<div className='layout-ratafia-section__wrapper__info__button'>
|
|
50
|
-
<Button
|
|
51
|
-
givenClass='mid-banner-ratafia-content__cta'
|
|
52
|
-
dataQa={ctaDataQa}
|
|
53
|
-
link={ctaLink}
|
|
54
|
-
onClick={handleOnClick}
|
|
55
|
-
color='primary'
|
|
56
|
-
label={ctaLabel}
|
|
57
|
-
fluid={isMobile}
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
)}
|
|
61
|
-
</div>
|
|
62
|
-
{image !== null && <div className='layout-ratafia-section__wrapper__image'>{image}</div>}
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</LawGeniusCardsSectionStyled>
|
|
66
|
-
)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export default LawGeniusCardsSection
|
package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LawGeniusInfoCardProps } from 'src/components/molecules/LawGeniusInfoCard';
|
|
2
|
-
import { MouseEventHandler } from 'react';
|
|
3
|
-
export interface LawGeniusCardsSectionProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
contentTop: React.ReactNode;
|
|
6
|
-
contentBottom: React.ReactNode;
|
|
7
|
-
card1?: LawGeniusInfoCardProps;
|
|
8
|
-
card2?: LawGeniusInfoCardProps;
|
|
9
|
-
card3?: LawGeniusInfoCardProps;
|
|
10
|
-
ctaLabel?: string;
|
|
11
|
-
ctaLink?: string;
|
|
12
|
-
handleOnClick?: MouseEventHandler;
|
|
13
|
-
ctaDataQa?: string;
|
|
14
|
-
image?: React.ReactNode;
|
|
15
|
-
}
|
package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LawGeniusInfoCardProps } from 'src/components/molecules/LawGeniusInfoCard'
|
|
2
|
-
import { MouseEventHandler } from 'react'
|
|
3
|
-
|
|
4
|
-
export interface LawGeniusCardsSectionProps {
|
|
5
|
-
title?: string
|
|
6
|
-
contentTop: React.ReactNode
|
|
7
|
-
contentBottom: React.ReactNode
|
|
8
|
-
card1?: LawGeniusInfoCardProps
|
|
9
|
-
card2?: LawGeniusInfoCardProps
|
|
10
|
-
card3?: LawGeniusInfoCardProps
|
|
11
|
-
ctaLabel?: string
|
|
12
|
-
ctaLink?: string
|
|
13
|
-
handleOnClick?: MouseEventHandler
|
|
14
|
-
ctaDataQa?: string
|
|
15
|
-
image?: React.ReactNode
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LawGeniusCardsSection } from './LawGeniusCardsSection';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, RichTextInner } from '../../atoms';
|
|
3
|
-
import { TryNowSectionStyled } from './TryNowSection.styled';
|
|
4
|
-
export const TryNowSection = ({ text, buttonText, buttonLink, buttonDataQa, image }) => {
|
|
5
|
-
return (_jsx(TryNowSectionStyled, { className: 'try-our-free-legal-blogs-section wrapper wrapper--responsive try-us-section', children: _jsx("div", { className: 'guidelines-section-trial wrapper', children: _jsxs("div", { className: 'guidelines-section-trial__item', children: [_jsx("div", { className: 'guidelines-section__image big-devices', children: image }), _jsxs("div", { className: 'guidelines-section-trial__texts', children: [_jsx(RichTextInner, { customClass: 'guidelines-section__texts__body', children: text }), _jsx(Button, { givenClass: 'mid-banner-ratafia-content__cta', dataQa: buttonDataQa, link: buttonLink, color: 'primary', label: buttonText })] }), _jsx("div", { className: 'guidelines-section__image is-mobile', children: image })] }) }) }));
|
|
6
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TryNowSectionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
export const TryNowSectionStyled = styled.section `
|
|
4
|
-
.guidelines-section-main {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
flex-wrap: nowrap;
|
|
8
|
-
padding: 1.5rem;
|
|
9
|
-
|
|
10
|
-
@media ${device.laptop} {
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
padding: 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.guidelines-section__texts {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: column;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
margin-bottom: 1rem;
|
|
21
|
-
margin-right: 0;
|
|
22
|
-
color: var(--neutral-neutral-1);
|
|
23
|
-
font-style: normal;
|
|
24
|
-
font-weight: 400;
|
|
25
|
-
letter-spacing: -0.3px;
|
|
26
|
-
|
|
27
|
-
@media ${device['landscape-tablets']} {
|
|
28
|
-
margin-left: 2rem;
|
|
29
|
-
margin-bottom: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&__title {
|
|
33
|
-
font-family: var(--font-sans);
|
|
34
|
-
margin-bottom: 2rem;
|
|
35
|
-
text-align: center;
|
|
36
|
-
font-weight: 700;
|
|
37
|
-
font-size: 1.75rem;
|
|
38
|
-
color: var(--neutral-neutral-1);
|
|
39
|
-
font-style: normal;
|
|
40
|
-
line-height: 32px;
|
|
41
|
-
letter-spacing: -0.3px;
|
|
42
|
-
|
|
43
|
-
@media ${device['landscape-tablets']} {
|
|
44
|
-
text-align: left;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&__body {
|
|
49
|
-
font-family: var(--font-sans);
|
|
50
|
-
font-size: 16px;
|
|
51
|
-
line-height: 22px;
|
|
52
|
-
|
|
53
|
-
a {
|
|
54
|
-
color: var(--primary-main-light-1);
|
|
55
|
-
font-weight: 400 !important;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.guidelines-section-detail {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
gap: 1.5rem;
|
|
64
|
-
margin: 2rem 0 1rem 0;
|
|
65
|
-
|
|
66
|
-
@media ${device.laptop} {
|
|
67
|
-
flex-direction: row;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&__item {
|
|
71
|
-
display: flex;
|
|
72
|
-
flex: 1;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
background: var(--others-white);
|
|
75
|
-
border-radius: var(--m-border-radius);
|
|
76
|
-
padding: 1.5rem;
|
|
77
|
-
|
|
78
|
-
&__image {
|
|
79
|
-
width: 100%;
|
|
80
|
-
border-radius: var(--m-border-radius);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&__title {
|
|
84
|
-
font-family: var(--font-sans);
|
|
85
|
-
font-style: normal;
|
|
86
|
-
font-weight: 700;
|
|
87
|
-
font-size: 18px;
|
|
88
|
-
line-height: 24px;
|
|
89
|
-
letter-spacing: -0.3px;
|
|
90
|
-
color: var(--neutral-neutral-1);
|
|
91
|
-
margin: 1.5rem 0 1rem 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
ul {
|
|
95
|
-
list-style-type: disc;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
ol {
|
|
99
|
-
list-style-type: decimal;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
ul,
|
|
103
|
-
ol {
|
|
104
|
-
margin-left: 1rem;
|
|
105
|
-
margin-bottom: 1rem;
|
|
106
|
-
|
|
107
|
-
li {
|
|
108
|
-
margin-bottom: 0;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.guidelines-section-trial {
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-direction: column;
|
|
117
|
-
gap: 1.5rem;
|
|
118
|
-
margin: 2rem 0 1rem 0;
|
|
119
|
-
|
|
120
|
-
@media ${device.laptop} {
|
|
121
|
-
flex-direction: row;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__texts {
|
|
125
|
-
flex-basis: 50%;
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
justify-content: flex-start;
|
|
129
|
-
color: var(--neutral-neutral-1);
|
|
130
|
-
font-style: normal;
|
|
131
|
-
font-weight: 400;
|
|
132
|
-
letter-spacing: -0.3px;
|
|
133
|
-
margin-left: 3rem;
|
|
134
|
-
|
|
135
|
-
&__body {
|
|
136
|
-
font-family: var(--font-sans);
|
|
137
|
-
font-size: 16px;
|
|
138
|
-
line-height: 22px;
|
|
139
|
-
margin-bottom: 1.5rem;
|
|
140
|
-
a {
|
|
141
|
-
color: var(--primary-main-light-1);
|
|
142
|
-
font-weight: 400 !important;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
.e-button {
|
|
146
|
-
height: auto;
|
|
147
|
-
align-self: flex-start;
|
|
148
|
-
margin-top: 2.5rem;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&__item {
|
|
153
|
-
display: flex;
|
|
154
|
-
flex-direction: column;
|
|
155
|
-
justify-content: space-between;
|
|
156
|
-
background: var(--others-white);
|
|
157
|
-
border-radius: var(--m-border-radius);
|
|
158
|
-
|
|
159
|
-
@media ${device.laptop} {
|
|
160
|
-
padding: 1.5rem;
|
|
161
|
-
flex-direction: row;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.guidelines-section__image {
|
|
167
|
-
flex-basis: 50%;
|
|
168
|
-
margin-bottom: 2rem;
|
|
169
|
-
|
|
170
|
-
&.big-devices {
|
|
171
|
-
display: none;
|
|
172
|
-
}
|
|
173
|
-
&.is-mobile {
|
|
174
|
-
display: flex;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@media ${device.laptop} {
|
|
178
|
-
&.big-devices {
|
|
179
|
-
display: flex;
|
|
180
|
-
}
|
|
181
|
-
&.is-mobile {
|
|
182
|
-
display: none;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
`;
|