@npm_leadtech/legal-lib-components 7.30.6 → 7.30.7
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/molecules/ContactInfo/ContactInfo.js +1 -1
- package/dist/src/components/molecules/ContactInfo/ContactInfo.tsx +4 -6
- package/dist/src/components/molecules/InfoBarFooter/InfoBarFooter.js +1 -1
- package/dist/src/components/molecules/InfoBarFooter/InfoBarFooter.tsx +3 -9
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.d.ts +3 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.js +5 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.d.ts +1 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.js +46 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.ts +47 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.tsx +20 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.d.ts +5 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.js +1 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.ts +5 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/index.d.ts +2 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/index.js +2 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/index.ts +2 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.js +1 -1
- package/dist/src/components/organisms/NavMenu/NavMenu.tsx +1 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +3 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +4 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +4 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +4 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +3 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +2 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +3 -1
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.d.ts +3 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.js +5 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.tsx +26 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.d.ts +10 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.js +1 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.ts +16 -0
- package/dist/src/components/pages/HowItWorksPage/index.d.ts +2 -0
- package/dist/src/components/pages/HowItWorksPage/index.js +2 -0
- package/dist/src/components/pages/HowItWorksPage/index.ts +2 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.d.ts +4 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.js +12 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.js +98 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.ts +99 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.tsx +69 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts +15 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js +1 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts +16 -0
- package/dist/src/components/sections/LawGeniusCardsSection/index.d.ts +2 -0
- package/dist/src/components/sections/LawGeniusCardsSection/index.js +1 -0
- package/dist/src/components/sections/LawGeniusCardsSection/index.ts +2 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.d.ts +3 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.js +6 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.d.ts +1 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.js +186 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.ts +187 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.tsx +28 -0
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.d.ts +8 -0
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.js +1 -0
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.ts +9 -0
- package/dist/src/components/sections/TryNowSection/index.d.ts +2 -0
- package/dist/src/components/sections/TryNowSection/index.js +1 -0
- package/dist/src/components/sections/TryNowSection/index.ts +2 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +9 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +30 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +30 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +10 -1
- package/dist/src/components/sections/index.d.ts +3 -0
- package/dist/src/components/sections/index.js +3 -0
- package/dist/src/components/sections/index.ts +3 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ContactInformation, PhoneButton } from './ContactInfo.styled';
|
|
3
3
|
import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon';
|
|
4
|
-
export const ContactInfo = ({ phoneNumber, schedule, languageSelector }) => (_jsxs(ContactInformation, { children: [Boolean(languageSelector) && _jsx("div", { className: 'language-selector-mobile-container', children: languageSelector }), _jsx("b", { className: 'sans-serif --extra-small --bold-weight site-phone', children: phoneNumber }),
|
|
4
|
+
export const ContactInfo = ({ phoneNumber, schedule, languageSelector }) => (_jsxs(ContactInformation, { children: [Boolean(languageSelector) && _jsx("div", { className: 'language-selector-mobile-container', children: languageSelector }), _jsx("b", { className: 'sans-serif --extra-small --bold-weight site-phone', children: phoneNumber }), _jsxs(PhoneButton, { children: [_jsx(PhoneIcon, { fill: 'white', width: 20, height: 20 }), _jsx("span", { children: phoneNumber })] }), _jsx("span", { className: 'sans-serif --extra-small site-schedule', children: schedule })] }));
|
|
@@ -7,12 +7,10 @@ export const ContactInfo: React.FC<ContactInfoProps> = ({ phoneNumber, schedule,
|
|
|
7
7
|
<ContactInformation>
|
|
8
8
|
{Boolean(languageSelector) && <div className='language-selector-mobile-container'>{languageSelector}</div>}
|
|
9
9
|
<b className='sans-serif --extra-small --bold-weight site-phone'>{phoneNumber}</b>
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</PhoneButton>
|
|
15
|
-
)}
|
|
10
|
+
<PhoneButton>
|
|
11
|
+
<PhoneIcon fill='white' width={20} height={20} />
|
|
12
|
+
<span>{phoneNumber}</span>
|
|
13
|
+
</PhoneButton>
|
|
16
14
|
<span className='sans-serif --extra-small site-schedule'>{schedule}</span>
|
|
17
15
|
</ContactInformation>
|
|
18
16
|
)
|
|
@@ -3,6 +3,6 @@ import { ContactBarWrapperStyled, ContactBarWrapperText, ScheduleWrapper } from
|
|
|
3
3
|
import { IconWeb } from '../../../../images/componentsSvg/IconWeb';
|
|
4
4
|
import { WideInfoBar } from '../../atoms/WideInfoBar';
|
|
5
5
|
export const InfoBarFooter = ({ sitePhone, siteSchedule, securityText, guaranteeText, securityIconBlack, guaranteeIconGrey, isJonSnow = false, isAnonymousPayment = false }) => {
|
|
6
|
-
return (_jsx(WideInfoBar, { children: _jsxs(_Fragment, { children: [_jsxs(ContactBarWrapperStyled, { className: `${(isJonSnow || isAnonymousPayment) && 'hidden'}`, children: [
|
|
6
|
+
return (_jsx(WideInfoBar, { children: _jsxs(_Fragment, { children: [_jsxs(ContactBarWrapperStyled, { className: `${(isJonSnow || isAnonymousPayment) && 'hidden'}`, children: [_jsx(IconWeb, {}), _jsxs(ScheduleWrapper, { children: [_jsxs("div", { className: 'is-mobile', children: [_jsx("a", { className: 'phone', href: `tel:${sitePhone}`, children: _jsx("strong", { children: sitePhone }) }), ` - ${siteSchedule}`] }), _jsxs("div", { className: 'no-mobile', children: [_jsx("strong", { children: sitePhone }), " - ", siteSchedule] })] })] }), _jsxs(ContactBarWrapperStyled, { children: [_jsx("img", { src: securityIconBlack, alt: 'security-icon' }), _jsx(ContactBarWrapperText, { children: securityText })] }), _jsxs(ContactBarWrapperStyled, { children: [_jsx("img", { src: guaranteeIconGrey, alt: 'guarantee-icon' }), _jsx(ContactBarWrapperText, { children: guaranteeText })] })] }) }));
|
|
7
7
|
};
|
|
8
8
|
export default InfoBarFooter;
|
|
@@ -18,22 +18,16 @@ export const InfoBarFooter: React.FC<InfoBarFooterProps> = ({
|
|
|
18
18
|
<WideInfoBar>
|
|
19
19
|
<>
|
|
20
20
|
<ContactBarWrapperStyled className={`${(isJonSnow || isAnonymousPayment) && 'hidden'}`}>
|
|
21
|
-
|
|
21
|
+
<IconWeb />
|
|
22
22
|
<ScheduleWrapper>
|
|
23
23
|
<div className='is-mobile'>
|
|
24
24
|
<a className='phone' href={`tel:${sitePhone}`}>
|
|
25
25
|
<strong>{sitePhone}</strong>
|
|
26
26
|
</a>
|
|
27
|
-
{
|
|
27
|
+
{` - ${siteSchedule}`}
|
|
28
28
|
</div>
|
|
29
29
|
<div className='no-mobile'>
|
|
30
|
-
{sitePhone
|
|
31
|
-
<>
|
|
32
|
-
<strong>{sitePhone}</strong> - {siteSchedule}
|
|
33
|
-
</>
|
|
34
|
-
) : (
|
|
35
|
-
siteSchedule
|
|
36
|
-
)}
|
|
30
|
+
<strong>{sitePhone}</strong> - {siteSchedule}
|
|
37
31
|
</div>
|
|
38
32
|
</ScheduleWrapper>
|
|
39
33
|
</ContactBarWrapperStyled>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LawGeniusInfoCardStyled } from './LawGeniusInfoCard.styled';
|
|
3
|
+
export const LawGeniusInfoCard = ({ icon, title = '', text = '' }) => {
|
|
4
|
+
return (_jsx(LawGeniusInfoCardStyled, { className: 'info-card', children: _jsx("div", { className: 'info-card-wrapper', children: _jsxs("div", { className: 'content', children: [_jsxs("h3", { className: 'title', children: [_jsx("div", { className: 'info-icon', children: icon }), title] }), _jsx("p", { className: 'text', children: text })] }) }) }));
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LawGeniusInfoCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const LawGeniusInfoCardStyled = styled.div `
|
|
3
|
+
width: 100%;
|
|
4
|
+
background-color: var(--others-white);
|
|
5
|
+
border-radius: var(--s-border-radius);
|
|
6
|
+
margin-top: 1rem;
|
|
7
|
+
margin-bottom: 1rem;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 1rem 1.5rem;
|
|
11
|
+
|
|
12
|
+
.info-card-wrapper {
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
17
|
+
@supports (-webkit-appearance: none) {
|
|
18
|
+
letter-spacing: -1px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.info-icon {
|
|
23
|
+
margin-right: 0.5rem;
|
|
24
|
+
max-width: 20px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.title {
|
|
28
|
+
display: flex;
|
|
29
|
+
color: --neutral-neutral-1;
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
|
|
33
|
+
&.email {
|
|
34
|
+
text-decoration: underline;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
a {
|
|
38
|
+
color: var(--primary-main-dark-1);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.text {
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
color: --neutral-neutral-1;
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const LawGeniusInfoCardStyled = styled.div`
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-color: var(--others-white);
|
|
6
|
+
border-radius: var(--s-border-radius);
|
|
7
|
+
margin-top: 1rem;
|
|
8
|
+
margin-bottom: 1rem;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
padding: 1rem 1.5rem;
|
|
12
|
+
|
|
13
|
+
.info-card-wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
18
|
+
@supports (-webkit-appearance: none) {
|
|
19
|
+
letter-spacing: -1px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.info-icon {
|
|
24
|
+
margin-right: 0.5rem;
|
|
25
|
+
max-width: 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.title {
|
|
29
|
+
display: flex;
|
|
30
|
+
color: --neutral-neutral-1;
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
font-weight: bold;
|
|
33
|
+
|
|
34
|
+
&.email {
|
|
35
|
+
text-decoration: underline;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a {
|
|
39
|
+
color: var(--primary-main-dark-1);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.text {
|
|
44
|
+
font-size: 0.875rem;
|
|
45
|
+
color: --neutral-neutral-1;
|
|
46
|
+
}
|
|
47
|
+
`
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { LawGeniusInfoCardProps } from './LawGeniusInfoCardProps'
|
|
4
|
+
import { LawGeniusInfoCardStyled } from './LawGeniusInfoCard.styled'
|
|
5
|
+
|
|
6
|
+
export const LawGeniusInfoCard: React.FC<LawGeniusInfoCardProps> = ({ icon, title = '', text = '' }) => {
|
|
7
|
+
return (
|
|
8
|
+
<LawGeniusInfoCardStyled className='info-card'>
|
|
9
|
+
<div className='info-card-wrapper'>
|
|
10
|
+
<div className='content'>
|
|
11
|
+
<h3 className='title'>
|
|
12
|
+
<div className='info-icon'>{icon}</div>
|
|
13
|
+
{title}
|
|
14
|
+
</h3>
|
|
15
|
+
<p className='text'>{text}</p>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</LawGeniusInfoCardStyled>
|
|
19
|
+
)
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,5 +6,5 @@ import { NavMobileContactBar } from '../../molecules/NavMobileContactBar';
|
|
|
6
6
|
import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon';
|
|
7
7
|
import { SearchBar } from '../../../components/molecules/SearchBar/SearchBar';
|
|
8
8
|
export const NavMenu = ({ isLeftNavHidden, isHeaderProductsHidden, isSearchBarHidden, isResourcesHidden, showHeaderPhone, toggleMenuOpen, isMenuOpen, languageSelectorProps, configVars, searchableProducts, finalMenu, userActions, menuStrings, routes, searchBarTexts, sitePhone, handleResultClick, languageSelectorConfigEnabled, isJonSnow, triggerMenuClose, triggerMenuOpen, setCookiePolicyFunc, navMenuItems, extraMenu }) => {
|
|
9
|
-
return (_jsxs(NavMenuStyled, { children: [_jsxs("nav", { itemScope: true, itemType: 'https://www.schema.org/SiteNavigationElement', className: `navigation-pane --is-mobile ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [_jsx("div", { onClick: toggleMenuOpen, onKeyDown: toggleMenuOpen, className: 'navigation-pane__trigger sans-serif --small', children: !isMenuOpen ? triggerMenuOpen : triggerMenuClose }), isMenuOpen && (_jsxs("div", { className: 'navigation-pane__wrapper', children: [userActions, !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }), !isJonSnow &&
|
|
9
|
+
return (_jsxs(NavMenuStyled, { children: [_jsxs("nav", { itemScope: true, itemType: 'https://www.schema.org/SiteNavigationElement', className: `navigation-pane --is-mobile ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [_jsx("div", { onClick: toggleMenuOpen, onKeyDown: toggleMenuOpen, className: 'navigation-pane__trigger sans-serif --small', children: !isMenuOpen ? triggerMenuOpen : triggerMenuClose }), isMenuOpen && (_jsxs("div", { className: 'navigation-pane__wrapper', children: [userActions, !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }), !isJonSnow && _jsx(NavMobileContactBar, { phone: sitePhone })] }))] }), _jsxs("nav", { className: `navigation-pane --is-desktop ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [!isLeftNavHidden && (_jsx("div", { className: 'left-nav', children: _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }) })), _jsxs("div", { className: 'right-nav', children: [showHeaderPhone && (_jsxs("div", { className: 'header-phone', children: [_jsx(PhoneIcon, {}), _jsxs("b", { children: [sitePhone, " "] })] })), !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), languageSelectorConfigEnabled && languageSelectorProps && _jsx(LanguageSelector, { ...languageSelectorProps }), userActions] })] })] }));
|
|
10
10
|
};
|
|
@@ -71,7 +71,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
|
|
|
71
71
|
navMenuItems={navMenuItems}
|
|
72
72
|
extraMenu={extraMenu}
|
|
73
73
|
/>
|
|
74
|
-
{!isJonSnow &&
|
|
74
|
+
{!isJonSnow && <NavMobileContactBar phone={sitePhone} />}
|
|
75
75
|
</div>
|
|
76
76
|
)}
|
|
77
77
|
</nav>
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js
CHANGED
|
@@ -7,7 +7,9 @@ const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFree
|
|
|
7
7
|
const classTry = classNames({
|
|
8
8
|
'try-our-free-legal-blogs-section-content': true,
|
|
9
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
|
|
10
|
+
'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type,
|
|
11
|
+
'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
|
|
12
|
+
'try-our-free-legal-blogs-section-content--how-it-works-first-image': TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type
|
|
11
13
|
});
|
|
12
14
|
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 })] }));
|
|
13
15
|
};
|
|
@@ -7,7 +7,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
&.try-our-free-legal-blogs-section-content--our-mission
|
|
10
|
+
&.try-our-free-legal-blogs-section-content--our-mission,
|
|
11
|
+
&.try-our-free-legal-blogs-section-content--how-it-works {
|
|
11
12
|
margin-top: 1.5rem;
|
|
12
13
|
margin-bottom: 1.5rem;
|
|
13
14
|
align-items: center;
|
|
@@ -30,7 +31,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
&.try-our-free-legal-blogs-section-content--our-mission-first-image
|
|
34
|
+
&.try-our-free-legal-blogs-section-content--our-mission-first-image,
|
|
35
|
+
&.try-our-free-legal-blogs-section-content--how-it-works-first-image {
|
|
34
36
|
margin-top: 1.5rem;
|
|
35
37
|
margin-bottom: 1.5rem;
|
|
36
38
|
align-items: center;
|
|
@@ -8,7 +8,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
|
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
&.try-our-free-legal-blogs-section-content--our-mission
|
|
11
|
+
&.try-our-free-legal-blogs-section-content--our-mission,
|
|
12
|
+
&.try-our-free-legal-blogs-section-content--how-it-works {
|
|
12
13
|
margin-top: 1.5rem;
|
|
13
14
|
margin-bottom: 1.5rem;
|
|
14
15
|
align-items: center;
|
|
@@ -31,7 +32,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
&.try-our-free-legal-blogs-section-content--our-mission-first-image
|
|
35
|
+
&.try-our-free-legal-blogs-section-content--our-mission-first-image,
|
|
36
|
+
&.try-our-free-legal-blogs-section-content--how-it-works-first-image {
|
|
35
37
|
margin-top: 1.5rem;
|
|
36
38
|
margin-bottom: 1.5rem;
|
|
37
39
|
align-items: center;
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx
CHANGED
|
@@ -18,7 +18,10 @@ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({
|
|
|
18
18
|
'try-our-free-legal-blogs-section-content': true,
|
|
19
19
|
'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
|
|
20
20
|
'try-our-free-legal-blogs-section-content--our-mission-first-image':
|
|
21
|
-
TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
|
|
21
|
+
TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type,
|
|
22
|
+
'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
|
|
23
|
+
'try-our-free-legal-blogs-section-content--how-it-works-first-image':
|
|
24
|
+
TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type
|
|
22
25
|
})
|
|
23
26
|
return (
|
|
24
27
|
<TryOurFreeLegalBlogsContentStyled className={classTry}>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare enum TryOurFreeLegalBlogsContentType {
|
|
2
2
|
default = "Default",
|
|
3
3
|
ourMission = "Our Mission",
|
|
4
|
-
ourMissionFirstImage = "Our Mission First Image"
|
|
4
|
+
ourMissionFirstImage = "Our Mission First Image",
|
|
5
|
+
howItWorks = "How It Works",
|
|
6
|
+
howItWorksFirstImage = "How It Works First Image"
|
|
5
7
|
}
|
|
6
8
|
export interface TryOurFreeLegalBlogsContentProps {
|
|
7
9
|
title: string;
|
|
@@ -3,4 +3,6 @@ export var TryOurFreeLegalBlogsContentType;
|
|
|
3
3
|
TryOurFreeLegalBlogsContentType["default"] = "Default";
|
|
4
4
|
TryOurFreeLegalBlogsContentType["ourMission"] = "Our Mission";
|
|
5
5
|
TryOurFreeLegalBlogsContentType["ourMissionFirstImage"] = "Our Mission First Image";
|
|
6
|
+
TryOurFreeLegalBlogsContentType["howItWorks"] = "How It Works";
|
|
7
|
+
TryOurFreeLegalBlogsContentType["howItWorksFirstImage"] = "How It Works First Image";
|
|
6
8
|
})(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export enum TryOurFreeLegalBlogsContentType {
|
|
2
2
|
default = 'Default',
|
|
3
3
|
ourMission = 'Our Mission',
|
|
4
|
-
ourMissionFirstImage = 'Our Mission First Image'
|
|
4
|
+
ourMissionFirstImage = 'Our Mission First Image',
|
|
5
|
+
howItWorks = 'How It Works',
|
|
6
|
+
howItWorksFirstImage = 'How It Works First Image'
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
export interface TryOurFreeLegalBlogsContentProps {
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
`;
|