@npm_leadtech/legal-lib-components 5.3.21 → 5.4.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/css/styles.css +1042 -0
- package/dist/src/components/atoms/ContactCard/ContactCard.d.ts +4 -0
- package/dist/src/components/atoms/ContactCard/ContactCard.js +7 -0
- package/dist/src/components/{sections/BlogSection/BlogSection.styled.d.ts → atoms/ContactCard/ContactCard.styled.d.ts} +1 -1
- package/dist/src/components/atoms/ContactCard/ContactCard.styled.js +40 -0
- package/dist/src/components/atoms/ContactCard/ContactCard.styled.ts +41 -0
- package/dist/src/components/atoms/ContactCard/ContactCard.tsx +44 -0
- package/dist/src/components/atoms/ContactCard/ContactCardProps.types.d.ts +9 -0
- package/dist/src/components/atoms/ContactCard/ContactCardProps.types.js +1 -0
- package/dist/src/components/atoms/ContactCard/ContactCardProps.types.ts +9 -0
- package/dist/src/components/atoms/ContactCard/index.d.ts +2 -0
- package/dist/src/components/atoms/ContactCard/index.js +1 -0
- package/dist/src/components/atoms/ContactCard/index.ts +2 -0
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.styled.js +5 -3
- package/dist/src/components/atoms/RichTextStrapi/RichTextStrapi.styled.ts +5 -3
- package/dist/src/components/atoms/index.d.ts +1 -0
- package/dist/src/components/atoms/index.js +1 -0
- package/dist/src/components/atoms/index.ts +1 -0
- package/dist/src/components/molecules/ContactCardList/ContactCardList.d.ts +4 -0
- package/dist/src/components/molecules/ContactCardList/ContactCardList.js +7 -0
- package/dist/src/components/molecules/ContactCardList/ContactCardList.styled.d.ts +1 -0
- package/dist/src/components/{sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js → molecules/ContactCardList/ContactCardList.styled.js} +4 -5
- package/dist/src/components/{sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts → molecules/ContactCardList/ContactCardList.styled.ts} +4 -5
- package/dist/src/components/molecules/ContactCardList/ContactCardList.tsx +17 -0
- package/dist/src/components/molecules/ContactCardList/ContactCardListProps.types.d.ts +4 -0
- package/dist/src/components/molecules/ContactCardList/ContactCardListProps.types.js +1 -0
- package/dist/src/components/molecules/ContactCardList/ContactCardListProps.types.ts +5 -0
- package/dist/src/components/molecules/ContactCardList/index.d.ts +2 -0
- package/dist/src/components/molecules/ContactCardList/index.js +1 -0
- package/dist/src/components/molecules/ContactCardList/index.ts +2 -0
- package/dist/src/components/molecules/RatafiaSubscriptionCard/RatafiaSubscriptionCard.scss +1 -1
- package/dist/src/components/molecules/index.d.ts +1 -0
- package/dist/src/components/molecules/index.js +1 -0
- package/dist/src/components/molecules/index.ts +1 -0
- package/dist/src/components/organisms/ContactContent/ContactContent.d.ts +4 -0
- package/dist/src/components/organisms/ContactContent/ContactContent.js +9 -0
- package/dist/src/components/{sections/AboutUsSection/AboutUsSection.styled.d.ts → organisms/ContactContent/ContactContent.styled.d.ts} +1 -1
- package/dist/src/components/organisms/ContactContent/ContactContent.styled.js +28 -0
- package/dist/src/components/organisms/ContactContent/ContactContent.styled.ts +29 -0
- package/dist/src/components/organisms/ContactContent/ContactContent.tsx +20 -0
- package/dist/src/components/organisms/ContactContent/ContactContentProps.types.d.ts +6 -0
- package/dist/src/components/organisms/ContactContent/ContactContentProps.types.js +1 -0
- package/dist/src/components/organisms/ContactContent/ContactContentProps.types.ts +7 -0
- package/dist/src/components/organisms/ContactContent/index.d.ts +2 -0
- package/dist/src/components/organisms/ContactContent/index.js +1 -0
- package/dist/src/components/organisms/ContactContent/index.ts +2 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/components/organisms/index.js +1 -0
- package/dist/src/components/organisms/index.ts +1 -0
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.js +2 -2
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.scss +52 -0
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.tsx +3 -3
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.js +3 -3
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.scss +37 -0
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.tsx +5 -21
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSectionProps.types.d.ts +3 -6
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSectionProps.types.ts +3 -6
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.js +2 -2
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.scss +50 -0
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.tsx +3 -3
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.js +2 -2
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.scss +57 -0
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.tsx +3 -3
- package/dist/src/components/sections/BlogSection/BlogSection.js +1 -2
- package/dist/src/components/sections/BlogSection/BlogSection.scss +33 -0
- package/dist/src/components/sections/BlogSection/BlogSection.tsx +2 -3
- package/dist/src/components/sections/ContactSection/ContactSection.js +2 -2
- package/dist/src/components/sections/ContactSection/{ContactSection.styled.ts → ContactSection.scss} +9 -9
- package/dist/src/components/sections/ContactSection/ContactSection.tsx +3 -3
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.js +2 -2
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.scss +26 -0
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.tsx +3 -3
- package/dist/src/components/sections/FaqSection/FaqSection.js +2 -2
- package/dist/src/components/sections/FaqSection/FaqSection.scss +31 -0
- package/dist/src/components/sections/FaqSection/FaqSection.tsx +3 -3
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.js +2 -2
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.scss +57 -0
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.tsx +3 -3
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +1 -2
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.scss +15 -0
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +2 -3
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.js +2 -2
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.scss +12 -0
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.tsx +3 -3
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.js +2 -2
- package/dist/src/components/sections/HowGetYourFormsSection/{HowGetYourFormsSection.styled.ts → HowGetYourFormsSection.scss} +8 -7
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.tsx +3 -3
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.js +2 -2
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.scss +41 -0
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.tsx +3 -6
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.js +2 -2
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.scss +41 -0
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.tsx +3 -3
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.js +2 -2
- package/dist/src/components/sections/LearnMoreSection/{LearnMoreSection.styled.ts → LearnMoreSection.scss} +12 -12
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.tsx +3 -3
- package/dist/src/components/sections/LegalSection/LegalSection.js +2 -2
- package/dist/src/components/sections/LegalSection/LegalSection.scss +120 -0
- package/dist/src/components/sections/LegalSection/LegalSection.tsx +3 -3
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.js +2 -2
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.scss +47 -0
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.tsx +3 -3
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.js +2 -2
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.scss +42 -0
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.tsx +3 -3
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.js +2 -2
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.scss +53 -0
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.tsx +4 -3
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.js +1 -2
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.scss +69 -0
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.tsx +2 -3
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +2 -2
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.scss +11 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +3 -3
- package/dist/src/components/sections/TryUsSection/TryUsSection.js +2 -2
- package/dist/src/components/sections/TryUsSection/{TryUsSection.styled.ts → TryUsSection.scss} +5 -5
- package/dist/src/components/sections/TryUsSection/TryUsSection.tsx +3 -3
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.js +2 -2
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.scss +62 -0
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.tsx +3 -3
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.js +2 -2
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.scss +35 -0
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.tsx +4 -3
- package/dist/src/globalStyles/styles.scss +25 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.js +0 -53
- package/dist/src/components/sections/AboutUsSection/AboutUsSection.styled.ts +0 -54
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.styled.d.ts +0 -1
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.styled.js +0 -97
- package/dist/src/components/sections/AsSeeInSection/AsSeeInSection.styled.ts +0 -98
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.styled.d.ts +0 -1
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.styled.js +0 -51
- package/dist/src/components/sections/AsideMenuSection/AsideMenuSection.styled.ts +0 -52
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.styled.d.ts +0 -1
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.styled.js +0 -54
- package/dist/src/components/sections/BenefitsRatafiaSection/BenefitsRatafiaSection.styled.ts +0 -55
- package/dist/src/components/sections/BlogSection/BlogSection.styled.js +0 -32
- package/dist/src/components/sections/BlogSection/BlogSection.styled.ts +0 -33
- package/dist/src/components/sections/ContactSection/ContactSection.styled.d.ts +0 -1
- package/dist/src/components/sections/ContactSection/ContactSection.styled.js +0 -89
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.styled.js +0 -27
- package/dist/src/components/sections/ExpertsSection/ExpertsSection.styled.ts +0 -28
- package/dist/src/components/sections/FaqSection/FaqSection.styled.d.ts +0 -1
- package/dist/src/components/sections/FaqSection/FaqSection.styled.js +0 -29
- package/dist/src/components/sections/FaqSection/FaqSection.styled.ts +0 -30
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.d.ts +0 -1
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.js +0 -56
- package/dist/src/components/sections/FeaturesRatafiaSection/FeaturesRatafiaSection.styled.ts +0 -57
- package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.d.ts +0 -1
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.js +0 -10
- package/dist/src/components/sections/GuidelinesSection/GuidelinesSection.styled.ts +0 -11
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/HowGetYourFormsSection/HowGetYourFormsSection.styled.js +0 -24
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.d.ts +0 -1
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.js +0 -39
- package/dist/src/components/sections/JumbotronRatafiaSection/JumbotronRatafiaSection.styled.ts +0 -40
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.styled.d.ts +0 -1
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.styled.js +0 -40
- package/dist/src/components/sections/JumbotronSimplifiedSection/JumbotronSimplifiedSection.styled.ts +0 -41
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.styled.d.ts +0 -1
- package/dist/src/components/sections/LearnMoreSection/LearnMoreSection.styled.js +0 -106
- package/dist/src/components/sections/LegalSection/LegalSection.styled.d.ts +0 -1
- package/dist/src/components/sections/LegalSection/LegalSection.styled.js +0 -121
- package/dist/src/components/sections/LegalSection/LegalSection.styled.ts +0 -122
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.d.ts +0 -1
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.js +0 -46
- package/dist/src/components/sections/MidBannerRatafiaSection/MidBannerRatafiaSection.styled.ts +0 -47
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.styled.js +0 -43
- package/dist/src/components/sections/PeopleSayAboutUsSection/PeopleSayAboutUsSection.styled.ts +0 -44
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.d.ts +0 -1
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.js +0 -55
- package/dist/src/components/sections/StepsRatafiaSection/StepsRatafiaSection.styled.ts +0 -56
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.styled.d.ts +0 -1
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.styled.js +0 -70
- package/dist/src/components/sections/TryItRatafiaSection/TryItRatafiaSection.styled.ts +0 -71
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +0 -10
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +0 -11
- package/dist/src/components/sections/TryUsSection/TryUsSection.styled.d.ts +0 -1
- package/dist/src/components/sections/TryUsSection/TryUsSection.styled.js +0 -23
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.styled.d.ts +0 -1
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.styled.js +0 -63
- package/dist/src/components/sections/UnsubscribeSection/UnsubscribeSection.styled.ts +0 -64
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.d.ts +0 -1
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.js +0 -36
- package/dist/src/components/sections/WhyLawDistrictSection/WhyLawDistrictSection.styled.ts +0 -37
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ContactCardStyled } from './ContactCard.styled';
|
|
3
|
+
const ContactCard = ({ id, title, image, body = '', url, isClickableOnDesktop = true, dataQa }) => {
|
|
4
|
+
const contactCardContent = (_jsxs(_Fragment, { children: [_jsx("div", { className: 'contact-card__image', children: image }), _jsx("div", { className: 'contact-card__title', children: title }), _jsx("p", { className: 'contact-card__text', children: body })] }));
|
|
5
|
+
return (_jsx(ContactCardStyled, { children: isClickableOnDesktop ? (_jsx("a", { className: 'contact-card', "data-qa": dataQa, href: url, target: '_self', children: contactCardContent })) : (_jsxs("div", { children: [_jsx("div", { className: 'contact-card contact-card-desktop', "data-qa": dataQa, children: contactCardContent }), _jsx("a", { className: 'contact-card contact-card-mobile', "data-qa": dataQa, href: url, target: '_self', children: contactCardContent })] })) }, id));
|
|
6
|
+
};
|
|
7
|
+
export default ContactCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ContactCardStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const ContactCardStyled = styled.div `
|
|
4
|
+
.contact-card {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: white;
|
|
9
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
10
|
+
border-radius: 0.25rem;
|
|
11
|
+
min-width: 12.5rem;
|
|
12
|
+
height: 7.875rem;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
padding: 1rem;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
color: var(--neutral-neutral-1);
|
|
17
|
+
&__image {
|
|
18
|
+
width: 2rem;
|
|
19
|
+
}
|
|
20
|
+
&__title {
|
|
21
|
+
margin-top: 1rem;
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
line-height: 1.375rem;
|
|
24
|
+
}
|
|
25
|
+
&__text {
|
|
26
|
+
font-size: 0.75rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.contact-card-desktop {
|
|
30
|
+
display: none;
|
|
31
|
+
@media ${device.desktop} {
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.contact-card-mobile {
|
|
36
|
+
@media ${device.desktop} {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
|
|
4
|
+
export const ContactCardStyled = styled.div`
|
|
5
|
+
.contact-card {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
background-color: white;
|
|
10
|
+
box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
|
|
11
|
+
border-radius: 0.25rem;
|
|
12
|
+
min-width: 12.5rem;
|
|
13
|
+
height: 7.875rem;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
padding: 1rem;
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
color: var(--neutral-neutral-1);
|
|
18
|
+
&__image {
|
|
19
|
+
width: 2rem;
|
|
20
|
+
}
|
|
21
|
+
&__title {
|
|
22
|
+
margin-top: 1rem;
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
line-height: 1.375rem;
|
|
25
|
+
}
|
|
26
|
+
&__text {
|
|
27
|
+
font-size: 0.75rem;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.contact-card-desktop {
|
|
31
|
+
display: none;
|
|
32
|
+
@media ${device.desktop} {
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.contact-card-mobile {
|
|
37
|
+
@media ${device.desktop} {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { ContactCardProps } from './ContactCardProps.types'
|
|
4
|
+
|
|
5
|
+
import { ContactCardStyled } from './ContactCard.styled'
|
|
6
|
+
|
|
7
|
+
const ContactCard: FC<ContactCardProps> = ({
|
|
8
|
+
id,
|
|
9
|
+
title,
|
|
10
|
+
image,
|
|
11
|
+
body = '',
|
|
12
|
+
url,
|
|
13
|
+
isClickableOnDesktop = true,
|
|
14
|
+
dataQa
|
|
15
|
+
}) => {
|
|
16
|
+
const contactCardContent = (
|
|
17
|
+
<>
|
|
18
|
+
<div className='contact-card__image'>{image}</div>
|
|
19
|
+
<div className='contact-card__title'>{title}</div>
|
|
20
|
+
<p className='contact-card__text'>{body}</p>
|
|
21
|
+
</>
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<ContactCardStyled key={id}>
|
|
26
|
+
{isClickableOnDesktop ? (
|
|
27
|
+
<a className='contact-card' data-qa={dataQa} href={url} target='_self'>
|
|
28
|
+
{contactCardContent}
|
|
29
|
+
</a>
|
|
30
|
+
) : (
|
|
31
|
+
<div>
|
|
32
|
+
<div className='contact-card contact-card-desktop' data-qa={dataQa}>
|
|
33
|
+
{contactCardContent}
|
|
34
|
+
</div>
|
|
35
|
+
<a className='contact-card contact-card-mobile' data-qa={dataQa} href={url} target='_self'>
|
|
36
|
+
{contactCardContent}
|
|
37
|
+
</a>
|
|
38
|
+
</div>
|
|
39
|
+
)}
|
|
40
|
+
</ContactCardStyled>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default ContactCard
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ContactCard } from './ContactCard';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ContactCard } from '../../atoms';
|
|
3
|
+
import { ContactCardListStyled } from './ContactCardList.styled';
|
|
4
|
+
const ContactCardList = ({ contactCards = [] }) => {
|
|
5
|
+
return (_jsx(ContactCardListStyled, { className: 'contact-card-list', children: contactCards.map((contactCard) => (_jsx(ContactCard, { ...contactCard }, contactCard.id))) }));
|
|
6
|
+
};
|
|
7
|
+
export default ContactCardList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ContactCardListStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
export const
|
|
3
|
+
export const ContactCardListStyled = styled.div `
|
|
4
4
|
display: flex;
|
|
5
|
+
justify-content: center;
|
|
5
6
|
flex-direction: column;
|
|
6
|
-
gap:
|
|
7
|
-
margin-bottom: 2rem;
|
|
8
|
-
width: 100%;
|
|
7
|
+
gap: 1rem;
|
|
9
8
|
|
|
10
9
|
@media ${device.laptop} {
|
|
11
10
|
flex-direction: row;
|
|
12
|
-
|
|
11
|
+
gap: 2.5rem;
|
|
13
12
|
}
|
|
14
13
|
`;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { device } from '../../../globalStyles/breakpoints'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const ContactCardListStyled = styled.div`
|
|
5
5
|
display: flex;
|
|
6
|
+
justify-content: center;
|
|
6
7
|
flex-direction: column;
|
|
7
|
-
gap:
|
|
8
|
-
margin-bottom: 2rem;
|
|
9
|
-
width: 100%;
|
|
8
|
+
gap: 1rem;
|
|
10
9
|
|
|
11
10
|
@media ${device.laptop} {
|
|
12
11
|
flex-direction: row;
|
|
13
|
-
|
|
12
|
+
gap: 2.5rem;
|
|
14
13
|
}
|
|
15
14
|
`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { ContactCard } from '../../atoms'
|
|
4
|
+
|
|
5
|
+
import { type ContactCardListProps } from './ContactCardListProps.types'
|
|
6
|
+
import { ContactCardListStyled } from './ContactCardList.styled'
|
|
7
|
+
|
|
8
|
+
const ContactCardList: FC<ContactCardListProps> = ({ contactCards = [] }) => {
|
|
9
|
+
return (
|
|
10
|
+
<ContactCardListStyled className='contact-card-list'>
|
|
11
|
+
{contactCards.map((contactCard) => (
|
|
12
|
+
<ContactCard key={contactCard.id} {...contactCard} />
|
|
13
|
+
))}
|
|
14
|
+
</ContactCardListStyled>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
export default ContactCardList
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ContactCardList } from './ContactCardList';
|
|
@@ -9,6 +9,7 @@ export * from './BottomOverlay';
|
|
|
9
9
|
export * from './BoxForm';
|
|
10
10
|
export * from './Breadcrumb';
|
|
11
11
|
export * from './ContactBox';
|
|
12
|
+
export * from './ContactCardList';
|
|
12
13
|
export * from './ContinueEditingBanner';
|
|
13
14
|
export * from './CountDownMessage';
|
|
14
15
|
export * from './EmailContactBox';
|
|
@@ -9,6 +9,7 @@ export * from './BottomOverlay';
|
|
|
9
9
|
export * from './BoxForm';
|
|
10
10
|
export * from './Breadcrumb';
|
|
11
11
|
export * from './ContactBox';
|
|
12
|
+
export * from './ContactCardList';
|
|
12
13
|
export * from './ContinueEditingBanner';
|
|
13
14
|
export * from './CountDownMessage';
|
|
14
15
|
export * from './EmailContactBox';
|
|
@@ -9,6 +9,7 @@ export * from './BottomOverlay'
|
|
|
9
9
|
export * from './BoxForm'
|
|
10
10
|
export * from './Breadcrumb'
|
|
11
11
|
export * from './ContactBox'
|
|
12
|
+
export * from './ContactCardList'
|
|
12
13
|
export * from './ContinueEditingBanner'
|
|
13
14
|
export * from './CountDownMessage'
|
|
14
15
|
export * from './EmailContactBox'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ContactCardList } from '../../molecules';
|
|
3
|
+
import { ContactContentStyled } from './ContactContent.styled';
|
|
4
|
+
const ContactContent = ({ title, text, contactCards = [] }) => {
|
|
5
|
+
if (contactCards.length === 0)
|
|
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 })] }));
|
|
8
|
+
};
|
|
9
|
+
export default ContactContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ContactContentStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
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;
|
|
8
|
+
|
|
9
|
+
.contact-content {
|
|
10
|
+
&__title {
|
|
11
|
+
text-align: center;
|
|
12
|
+
font-size: 32px;
|
|
13
|
+
font-family: var(--font-serif);
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
line-height: 42px;
|
|
17
|
+
letter-spacing: -0.3px;
|
|
18
|
+
margin: 1rem 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__text {
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
margin: 0 0 2rem 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
|
|
3
|
+
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;
|
|
9
|
+
|
|
10
|
+
.contact-content {
|
|
11
|
+
&__title {
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: 32px;
|
|
14
|
+
font-family: var(--font-serif);
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
line-height: 42px;
|
|
18
|
+
letter-spacing: -0.3px;
|
|
19
|
+
margin: 1rem 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__text {
|
|
23
|
+
text-align: center;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
margin: 0 0 2rem 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { type FC } from 'react'
|
|
2
|
+
|
|
3
|
+
import { ContactCardList } from '../../molecules'
|
|
4
|
+
|
|
5
|
+
import { ContactContentProps } from './ContactContentProps.types'
|
|
6
|
+
|
|
7
|
+
import { ContactContentStyled } from './ContactContent.styled'
|
|
8
|
+
|
|
9
|
+
const ContactContent: FC<ContactContentProps> = ({ title, text, contactCards = [] }) => {
|
|
10
|
+
if (contactCards.length === 0) return null
|
|
11
|
+
|
|
12
|
+
return (
|
|
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} />
|
|
17
|
+
</ContactContentStyled>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
export default ContactContent
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ContactContent } from './ContactContent';
|
|
@@ -3,6 +3,7 @@ export * from './Accordion';
|
|
|
3
3
|
export * from './ArticlesList';
|
|
4
4
|
export * from './AsSeeInContent';
|
|
5
5
|
export * from './CardFunctionality';
|
|
6
|
+
export * from './ContactContent';
|
|
6
7
|
export * from './ContactJumbotron';
|
|
7
8
|
export * from './CookiePolicyBar';
|
|
8
9
|
export * from './ErrorContentRatafia';
|
|
@@ -3,6 +3,7 @@ export * from './Accordion';
|
|
|
3
3
|
export * from './ArticlesList';
|
|
4
4
|
export * from './AsSeeInContent';
|
|
5
5
|
export * from './CardFunctionality';
|
|
6
|
+
export * from './ContactContent';
|
|
6
7
|
export * from './ContactJumbotron';
|
|
7
8
|
export * from './CookiePolicyBar';
|
|
8
9
|
export * from './ErrorContentRatafia';
|
|
@@ -3,6 +3,7 @@ export * from './Accordion'
|
|
|
3
3
|
export * from './ArticlesList'
|
|
4
4
|
export * from './AsSeeInContent'
|
|
5
5
|
export * from './CardFunctionality'
|
|
6
|
+
export * from './ContactContent'
|
|
6
7
|
export * from './ContactJumbotron'
|
|
7
8
|
export * from './CookiePolicyBar'
|
|
8
9
|
export * from './ErrorContentRatafia'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AboutUsContent } from '../../organisms/AboutUsContent';
|
|
3
|
-
import
|
|
3
|
+
// import './AboutUsSection.scss'
|
|
4
4
|
const AboutUsSection = ({ title, subTitle, contentAboutUs }) => {
|
|
5
|
-
return (_jsx(
|
|
5
|
+
return (_jsx("div", { className: 'about-us-section', children: _jsxs("div", { className: 'wrapper wrapper--responsive', children: [_jsx("div", { className: 'about-us-section__title', children: _jsx("span", { className: 'about-us-section__title__text', children: title }) }), Boolean(subTitle) && _jsx("h1", { className: 'about-us-section__sub-title', children: subTitle }), _jsx(AboutUsContent, { image: contentAboutUs.image, button: contentAboutUs?.button, children: contentAboutUs.children })] }) }));
|
|
6
6
|
};
|
|
7
7
|
export default AboutUsSection;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@import '../../../globalStyles/variables.scss';
|
|
2
|
+
@import '../../../globalStyles/mediaqueries.scss';
|
|
3
|
+
|
|
4
|
+
.about-us-section {
|
|
5
|
+
padding-top: 1.125rem;
|
|
6
|
+
background: var(--primary-main-light-6);
|
|
7
|
+
margin-bottom: 3rem;
|
|
8
|
+
|
|
9
|
+
@include laptop {
|
|
10
|
+
margin-bottom: 5rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&__title {
|
|
14
|
+
text-align: center;
|
|
15
|
+
margin-bottom: 1rem;
|
|
16
|
+
&__text {
|
|
17
|
+
text-transform: uppercase;
|
|
18
|
+
font-size: 0.8rem;
|
|
19
|
+
line-height: 1.2;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
font-family: var(--font-sans);
|
|
22
|
+
color: var(--neutral-neutral-2);
|
|
23
|
+
padding-bottom: 0.5rem;
|
|
24
|
+
border-bottom: 1px solid var(--neutral-neutral-3);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__sub-title {
|
|
29
|
+
margin-bottom: 1.5rem;
|
|
30
|
+
text-align: center;
|
|
31
|
+
font-size: 2rem;
|
|
32
|
+
line-height: 1.2;
|
|
33
|
+
letter-spacing: -0.4px;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-family: var(--font-serif);
|
|
36
|
+
color: var(--neutral-neutral-1);
|
|
37
|
+
|
|
38
|
+
@include landscape-tablets {
|
|
39
|
+
font-size: 2.3rem;
|
|
40
|
+
max-width: $sm;
|
|
41
|
+
margin: 0 auto 2rem auto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include desktop {
|
|
45
|
+
max-width: 792px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include laptop {
|
|
49
|
+
font-size: 3rem;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -3,11 +3,11 @@ import React, { type FC } from 'react'
|
|
|
3
3
|
|
|
4
4
|
import { AboutUsContent } from '../../organisms/AboutUsContent'
|
|
5
5
|
import { type AboutUsSectionProps } from './AboutUsSectionProps.types'
|
|
6
|
-
import
|
|
6
|
+
// import './AboutUsSection.scss'
|
|
7
7
|
|
|
8
8
|
const AboutUsSection: FC<AboutUsSectionProps> = ({ title, subTitle, contentAboutUs }) => {
|
|
9
9
|
return (
|
|
10
|
-
<
|
|
10
|
+
<div className='about-us-section'>
|
|
11
11
|
<div className='wrapper wrapper--responsive'>
|
|
12
12
|
<div className='about-us-section__title'>
|
|
13
13
|
<span className='about-us-section__title__text'>{title}</span>
|
|
@@ -18,7 +18,7 @@ const AboutUsSection: FC<AboutUsSectionProps> = ({ title, subTitle, contentAbout
|
|
|
18
18
|
{contentAboutUs.children}
|
|
19
19
|
</AboutUsContent>
|
|
20
20
|
</div>
|
|
21
|
-
</
|
|
21
|
+
</div>
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
|