@npm_leadtech/legal-lib-components 5.26.13 → 5.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/images/componentsSvg/IconWeb.d.ts +2 -0
- package/dist/images/componentsSvg/IconWeb.js +4 -0
- package/dist/images/componentsSvg/IconWeb.tsx +31 -0
- package/dist/images/componentsSvg/PhoneIcon.d.ts +6 -0
- package/dist/images/componentsSvg/PhoneIcon.js +4 -0
- package/dist/images/componentsSvg/PhoneIcon.tsx +18 -0
- package/dist/images/componentsSvg/PhoneIcon24px.tsx +4 -2
- package/dist/images/svg/facebook.svg +4 -0
- package/dist/images/svg/icon-24-px-satisfaction-grey.svg +3 -0
- package/dist/images/svg/icon-24-px-security_black.svg +3 -0
- package/dist/images/svg/linkedin.svg +4 -0
- package/dist/images/svg/pinterest.svg +4 -0
- package/dist/images/svg/x.svg +4 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.d.ts +3 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.js +75 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.d.ts +1 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.js +970 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.styled.ts +971 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooter.tsx +307 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.d.ts +71 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.js +1 -0
- package/dist/src/components/atoms/FixedFooter/FixedFooterProps.ts +73 -0
- package/dist/src/components/atoms/FixedFooter/index.d.ts +2 -0
- package/dist/src/components/atoms/FixedFooter/index.js +2 -0
- package/dist/src/components/atoms/FixedFooter/index.ts +2 -0
- package/dist/src/components/atoms/PreFooter/PreFooter.d.ts +3 -0
- package/dist/src/components/atoms/PreFooter/PreFooter.js +8 -0
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.d.ts +1 -0
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.js +43 -0
- package/dist/src/components/atoms/PreFooter/PreFooter.styled.ts +43 -0
- package/dist/src/components/atoms/PreFooter/PreFooter.tsx +34 -0
- package/dist/src/components/atoms/PreFooter/PreFooterProps.d.ts +8 -0
- package/dist/src/components/atoms/PreFooter/PreFooterProps.js +1 -0
- package/dist/src/components/atoms/PreFooter/PreFooterProps.ts +8 -0
- package/dist/src/components/atoms/PreFooter/index.d.ts +2 -0
- package/dist/src/components/atoms/PreFooter/index.js +2 -0
- package/dist/src/components/atoms/PreFooter/index.ts +2 -0
- package/dist/src/components/atoms/index.d.ts +2 -0
- package/dist/src/components/atoms/index.js +2 -0
- package/dist/src/components/atoms/index.ts +2 -0
- package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.js +1 -5
- package/dist/src/components/molecules/KeyFactCardListRatafia/KeyFactCardListRatafia.styled.ts +1 -5
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.js +3 -2
- package/dist/src/components/organisms/KeyFactsLoadingContentRatafia/KeyFactsLoadingContentRatafia.styled.ts +3 -2
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +1 -1
- package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.ts +1 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.js +1 -1
- package/dist/src/components/pages/KeyFactsResultRatafiaPage/KeyFactsResultRatafiaPage.styled.ts +1 -1
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.js +0 -1
- package/dist/src/components/pages/LoginRatafiaPage/LoginRatafiaPage.styled.ts +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { Button } from '../Button'
|
|
2
|
+
import { ContactBox } from '../../molecules/ContactBox'
|
|
3
|
+
import { Disclaimer } from '../Disclaimer'
|
|
4
|
+
import { FixedFooterProps } from './FixedFooterProps'
|
|
5
|
+
import { FixedFooterStyled } from './FixedFooter.styled'
|
|
6
|
+
import { IconWeb } from '../../../../images/componentsSvg/IconWeb'
|
|
7
|
+
import { Logo } from '../Logo'
|
|
8
|
+
import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon'
|
|
9
|
+
import React from 'react'
|
|
10
|
+
import { WideInfoBar } from '../WideInfoBar'
|
|
11
|
+
import facebook from '../../../../images/svg/facebook.svg'
|
|
12
|
+
import guaranteeIconGrey from '../../../../images/svg/icon-24-px-satisfaction-grey.svg'
|
|
13
|
+
import linkedin from '../../../../images/svg/linkedin.svg'
|
|
14
|
+
import pinterest from '../../../../images/svg/pinterest.svg'
|
|
15
|
+
import securityIconBlack from '../../../../images/svg/icon-24-px-security_black.svg'
|
|
16
|
+
import x from '../../../../images/svg/x.svg'
|
|
17
|
+
|
|
18
|
+
export const FixedFooter: React.FC<FixedFooterProps> = ({
|
|
19
|
+
footerData = {
|
|
20
|
+
findUs: 'Find Us'
|
|
21
|
+
},
|
|
22
|
+
config = {
|
|
23
|
+
siteName: 'LawDistrict',
|
|
24
|
+
sitePhone: '123-456-7890',
|
|
25
|
+
siteSchedule: 'Monday - Friday, 9am - 5pm',
|
|
26
|
+
siteUrl: 'https://www.lawdistrict.com',
|
|
27
|
+
hasGrav: true,
|
|
28
|
+
hasCookieMessage: true,
|
|
29
|
+
hasContactBar: false,
|
|
30
|
+
hasTrustPilot: true,
|
|
31
|
+
isJonSnow: false,
|
|
32
|
+
isSEMPage: false,
|
|
33
|
+
isMobile: false,
|
|
34
|
+
isTablet: false,
|
|
35
|
+
isDesktop: true,
|
|
36
|
+
isAnonymousPayment: false,
|
|
37
|
+
hide: false,
|
|
38
|
+
noFooter: false
|
|
39
|
+
},
|
|
40
|
+
footer = {
|
|
41
|
+
disclaimerText: '',
|
|
42
|
+
guaranteeText: '',
|
|
43
|
+
securityText: '',
|
|
44
|
+
bottomFixedBlock: <></>,
|
|
45
|
+
createDocumentBlock: <></>,
|
|
46
|
+
trustPilotWidget: <></>
|
|
47
|
+
},
|
|
48
|
+
preFooter = {
|
|
49
|
+
show: true,
|
|
50
|
+
title: 'Try LawDistrict Now',
|
|
51
|
+
columns: [
|
|
52
|
+
'Instant and complete access to our entire library of legal forms',
|
|
53
|
+
'Edit, download and print in PDF and Word format from any device',
|
|
54
|
+
'Save time and money on legal document creation'
|
|
55
|
+
],
|
|
56
|
+
hasButton: true,
|
|
57
|
+
buttonLabel: 'Get Unlimited Access Now',
|
|
58
|
+
buttonLink: './',
|
|
59
|
+
buttonClick: () => {}
|
|
60
|
+
},
|
|
61
|
+
productsBlock = {
|
|
62
|
+
title: 'Products',
|
|
63
|
+
productsCategories: <></>,
|
|
64
|
+
allProductsLink: <></>
|
|
65
|
+
},
|
|
66
|
+
popularDocumentsBlock = {
|
|
67
|
+
title: 'Popular Documents',
|
|
68
|
+
popularDocuments: <></>
|
|
69
|
+
},
|
|
70
|
+
companyBlock = {
|
|
71
|
+
title: 'Company',
|
|
72
|
+
links: <></>
|
|
73
|
+
},
|
|
74
|
+
helpBlock = {
|
|
75
|
+
title: 'Help',
|
|
76
|
+
links: <></>
|
|
77
|
+
},
|
|
78
|
+
resourcesBlock = {
|
|
79
|
+
title: 'Resources',
|
|
80
|
+
links: <></>
|
|
81
|
+
},
|
|
82
|
+
languageSelector = {
|
|
83
|
+
show: false,
|
|
84
|
+
content: <></>
|
|
85
|
+
}
|
|
86
|
+
}) => {
|
|
87
|
+
return (
|
|
88
|
+
<FixedFooterStyled>
|
|
89
|
+
{preFooter.show && (
|
|
90
|
+
<section className={'prefooter'}>
|
|
91
|
+
<div className='wrapper'>
|
|
92
|
+
<div className='prefooter-container'>
|
|
93
|
+
<div className='serif --hero prefooter__title'>{preFooter.title}</div>
|
|
94
|
+
<div className={'prefooter--columns'}>
|
|
95
|
+
{preFooter.columns.map((column, index) => (
|
|
96
|
+
<p key={index} className='prefooter--columns__text'>
|
|
97
|
+
{column}
|
|
98
|
+
</p>
|
|
99
|
+
))}
|
|
100
|
+
</div>
|
|
101
|
+
{preFooter.hasButton && (
|
|
102
|
+
<Button
|
|
103
|
+
label={preFooter.buttonLabel}
|
|
104
|
+
onClick={preFooter.buttonClick}
|
|
105
|
+
link={preFooter.buttonLink}
|
|
106
|
+
dataQa={'cta-footer'}
|
|
107
|
+
isExternal
|
|
108
|
+
hasNoFollow
|
|
109
|
+
/>
|
|
110
|
+
)}
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</section>
|
|
114
|
+
)}
|
|
115
|
+
{config.isSEMPage && config.isMobile && (
|
|
116
|
+
<footer className={'sem-footer'}>
|
|
117
|
+
<section className={'sem-footer__wrapper'}>
|
|
118
|
+
<ul className='sem-footer__legal-links'>{companyBlock.links}</ul>
|
|
119
|
+
<div className='sem-footer__contact-info'>
|
|
120
|
+
<div className='sem-footer__contact-info__phone'>
|
|
121
|
+
<PhoneIcon width={20} height={20} fill={'white'} />
|
|
122
|
+
<b>{config.sitePhone} </b>
|
|
123
|
+
</div>
|
|
124
|
+
<div className='sem-footer__contact-info__schedule'>{config.siteSchedule}</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div className='fixed-container'>{footer.createDocumentBlock}</div>
|
|
127
|
+
</section>
|
|
128
|
+
</footer>
|
|
129
|
+
)}
|
|
130
|
+
{!config.isSEMPage && (
|
|
131
|
+
<footer>
|
|
132
|
+
{!config.hide && !config.noFooter ? (
|
|
133
|
+
<>
|
|
134
|
+
<div className='language-selector-mobile-container'>
|
|
135
|
+
{languageSelector.show === true && languageSelector.content}
|
|
136
|
+
</div>
|
|
137
|
+
<section className={'footer__wrapper'}>
|
|
138
|
+
<div className={'footer__products'}>
|
|
139
|
+
<p className={'sans-serif --small footer-links__title'}>{productsBlock.title}</p>
|
|
140
|
+
{productsBlock.productsCategories}
|
|
141
|
+
<div className={'sans-serif --extra-small product-categories'}>{productsBlock.allProductsLink}</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div className={'footer__popular-documents'}>
|
|
144
|
+
<p className={'sans-serif --small footer-links__title'}>{popularDocumentsBlock.title}</p>
|
|
145
|
+
<ul>{popularDocumentsBlock.popularDocuments}</ul>
|
|
146
|
+
{config.isTablet && (
|
|
147
|
+
<div className='footer__help__tablet'>
|
|
148
|
+
<p className={'sans-serif --small footer-links__title'}>{helpBlock.title}</p>
|
|
149
|
+
<ul>{helpBlock.links}</ul>
|
|
150
|
+
</div>
|
|
151
|
+
)}
|
|
152
|
+
</div>
|
|
153
|
+
{(config.isMobile || config.isDesktop) && (
|
|
154
|
+
<div className={'footer__company'}>
|
|
155
|
+
<p className={'sans-serif --small footer-links__title'}>{companyBlock.title}</p>
|
|
156
|
+
<ul>{companyBlock.links}</ul>
|
|
157
|
+
</div>
|
|
158
|
+
)}
|
|
159
|
+
<div className='footer__company__resources__findUs'>
|
|
160
|
+
{config.isTablet && (
|
|
161
|
+
<>
|
|
162
|
+
<p className={'sans-serif --small footer-links__title'}>{companyBlock.title}</p>
|
|
163
|
+
<ul>{companyBlock.links}</ul>
|
|
164
|
+
|
|
165
|
+
{!config.isJonSnow && config.hasGrav && config.isTablet && (
|
|
166
|
+
<div className='footer__resources'>
|
|
167
|
+
<p className={'sans-serif --small footer-links__title'}>{resourcesBlock.title}</p>
|
|
168
|
+
<ul>{resourcesBlock.links}</ul>
|
|
169
|
+
</div>
|
|
170
|
+
)}
|
|
171
|
+
</>
|
|
172
|
+
)}
|
|
173
|
+
</div>
|
|
174
|
+
{!config.isTablet && (
|
|
175
|
+
<div className={'footer__help__resources'}>
|
|
176
|
+
<div>
|
|
177
|
+
<div className='footer__help'>
|
|
178
|
+
<p className={'sans-serif --small footer-links__title'}>{helpBlock.title}</p>
|
|
179
|
+
<ul>{helpBlock.links}</ul>
|
|
180
|
+
</div>
|
|
181
|
+
{!config.isJonSnow && config.hasGrav && (
|
|
182
|
+
<div className='footer__resources'>
|
|
183
|
+
<p className={'sans-serif --small footer-links__title'}>{resourcesBlock.title}</p>
|
|
184
|
+
<ul>{resourcesBlock.links}</ul>
|
|
185
|
+
</div>
|
|
186
|
+
)}
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
)}
|
|
190
|
+
<div className={'footer__findUs'}>
|
|
191
|
+
<div className='find-us-container'>
|
|
192
|
+
{!config.isJonSnow && (
|
|
193
|
+
<>
|
|
194
|
+
<div className='find-us-content'>
|
|
195
|
+
<p className={'sans-serif --small footer-links__title'}>{footerData?.findUs}</p>
|
|
196
|
+
<ul>
|
|
197
|
+
<li>
|
|
198
|
+
<a
|
|
199
|
+
href={'https://www.facebook.com/lawdistrictlegal'}
|
|
200
|
+
rel='noopener noreferrer'
|
|
201
|
+
target='_blank'
|
|
202
|
+
>
|
|
203
|
+
<img src={facebook} alt='Facebook logo' width='32' height='32' />
|
|
204
|
+
</a>
|
|
205
|
+
</li>
|
|
206
|
+
<li>
|
|
207
|
+
<a href={'https://twitter.com/district_law'} rel='noopener noreferrer' target='_blank'>
|
|
208
|
+
<img src={x} alt='Twitter logo' width='32' height='32' />
|
|
209
|
+
</a>
|
|
210
|
+
</li>
|
|
211
|
+
<li>
|
|
212
|
+
<a
|
|
213
|
+
href={'https://www.linkedin.com/company/law-district/'}
|
|
214
|
+
rel='noopener noreferrer'
|
|
215
|
+
target='_blank'
|
|
216
|
+
>
|
|
217
|
+
<img src={linkedin} alt='Linkedin logo' width='32' height='32' />
|
|
218
|
+
</a>
|
|
219
|
+
</li>
|
|
220
|
+
<li>
|
|
221
|
+
<a
|
|
222
|
+
href={'https://www.pinterest.com/lawdistrict/'}
|
|
223
|
+
rel='noopener noreferrer'
|
|
224
|
+
target='_blank'
|
|
225
|
+
>
|
|
226
|
+
<img src={pinterest} alt='Pinterest logo' width='32' height='32' />
|
|
227
|
+
</a>
|
|
228
|
+
</li>
|
|
229
|
+
</ul>
|
|
230
|
+
</div>
|
|
231
|
+
<div className={'footer-contact-box'}>
|
|
232
|
+
<span className='footer-contact-box_phone'>{config.sitePhone}</span>
|
|
233
|
+
<Button
|
|
234
|
+
centered
|
|
235
|
+
isExternal
|
|
236
|
+
link={`tel:${config.sitePhone}`}
|
|
237
|
+
givenClass={'footer-contact-box-button'}
|
|
238
|
+
label={config.sitePhone}
|
|
239
|
+
dataQa={'footer_contact_box'}
|
|
240
|
+
/>
|
|
241
|
+
<span className='footer-contact-box_schedule'>{config.siteSchedule}</span>
|
|
242
|
+
</div>
|
|
243
|
+
</>
|
|
244
|
+
)}
|
|
245
|
+
<div className={'footer__logo'}>
|
|
246
|
+
<Logo
|
|
247
|
+
className='footer__lawdistrict'
|
|
248
|
+
siteName={config.siteName}
|
|
249
|
+
width='138'
|
|
250
|
+
height='24'
|
|
251
|
+
type='white'
|
|
252
|
+
/>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
{config.hasTrustPilot && footer.trustPilotWidget}
|
|
256
|
+
</div>
|
|
257
|
+
{!config.isJonSnow && (
|
|
258
|
+
<div className={'footer-mobile-contact-box'}>
|
|
259
|
+
<ContactBox
|
|
260
|
+
mobile={true}
|
|
261
|
+
phone={config.sitePhone}
|
|
262
|
+
schedule={config.siteSchedule}
|
|
263
|
+
mobileGtmTag='clicked_phone_footer'
|
|
264
|
+
dataQa='footer_contact_box'
|
|
265
|
+
darkMode
|
|
266
|
+
/>
|
|
267
|
+
</div>
|
|
268
|
+
)}
|
|
269
|
+
</section>
|
|
270
|
+
</>
|
|
271
|
+
) : null}
|
|
272
|
+
{config.hasContactBar && (
|
|
273
|
+
<WideInfoBar>
|
|
274
|
+
<>
|
|
275
|
+
<div className={`contact-bar-wrapper ${(config.isJonSnow || config.isAnonymousPayment) && 'hidden'}`}>
|
|
276
|
+
<IconWeb />
|
|
277
|
+
<div className='contact-bar-wrapper__text'>
|
|
278
|
+
<div className='is-mobile'>
|
|
279
|
+
<a className='phone' href={`tel:${config.sitePhone}`}>
|
|
280
|
+
<strong>{config.sitePhone}</strong>
|
|
281
|
+
</a>
|
|
282
|
+
{` - ${config.siteSchedule}`}
|
|
283
|
+
</div>
|
|
284
|
+
<div className='no-mobile'>
|
|
285
|
+
<strong>{config.sitePhone}</strong> - {config.siteSchedule}
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
<div className='contact-bar-wrapper'>
|
|
290
|
+
<img src={securityIconBlack} alt='' />
|
|
291
|
+
<p className='contact-bar-wrapper__text'>{footer.securityText}</p>
|
|
292
|
+
</div>
|
|
293
|
+
<div className='contact-bar-wrapper'>
|
|
294
|
+
<img src={guaranteeIconGrey} alt='' />
|
|
295
|
+
<p className='contact-bar-wrapper__text'>{footer.guaranteeText}</p>
|
|
296
|
+
</div>
|
|
297
|
+
</>
|
|
298
|
+
</WideInfoBar>
|
|
299
|
+
)}
|
|
300
|
+
{footer.disclaimerText && <Disclaimer text={footer.disclaimerText} siteUrl={config.siteUrl} />}
|
|
301
|
+
<div className='fixed-container'>{footer.createDocumentBlock}</div>
|
|
302
|
+
</footer>
|
|
303
|
+
)}
|
|
304
|
+
{footer.bottomFixedBlock}
|
|
305
|
+
</FixedFooterStyled>
|
|
306
|
+
)
|
|
307
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Link {
|
|
3
|
+
label: string;
|
|
4
|
+
url: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface FixedFooterProps {
|
|
8
|
+
footerData: {
|
|
9
|
+
findUs: string;
|
|
10
|
+
};
|
|
11
|
+
config: {
|
|
12
|
+
siteName: string;
|
|
13
|
+
sitePhone: string;
|
|
14
|
+
siteSchedule: string;
|
|
15
|
+
siteUrl: string;
|
|
16
|
+
hasGrav: boolean;
|
|
17
|
+
hasCookieMessage: boolean;
|
|
18
|
+
hasContactBar: boolean;
|
|
19
|
+
hasTrustPilot: boolean;
|
|
20
|
+
isJonSnow: boolean;
|
|
21
|
+
isSEMPage: boolean;
|
|
22
|
+
isMobile: boolean;
|
|
23
|
+
isTablet: boolean;
|
|
24
|
+
isDesktop: boolean;
|
|
25
|
+
isAnonymousPayment: boolean;
|
|
26
|
+
hide: boolean;
|
|
27
|
+
noFooter: boolean;
|
|
28
|
+
};
|
|
29
|
+
footer: {
|
|
30
|
+
disclaimerText: string;
|
|
31
|
+
guaranteeText: string;
|
|
32
|
+
securityText: string;
|
|
33
|
+
bottomFixedBlock: React.ReactNode;
|
|
34
|
+
createDocumentBlock: React.ReactNode;
|
|
35
|
+
trustPilotWidget: React.ReactNode;
|
|
36
|
+
};
|
|
37
|
+
preFooter: {
|
|
38
|
+
show: boolean;
|
|
39
|
+
title: string;
|
|
40
|
+
columns: string[];
|
|
41
|
+
hasButton: boolean;
|
|
42
|
+
buttonLabel: string;
|
|
43
|
+
buttonLink: string;
|
|
44
|
+
buttonClick: () => void;
|
|
45
|
+
};
|
|
46
|
+
productsBlock: {
|
|
47
|
+
title: string;
|
|
48
|
+
productsCategories: React.ReactNode;
|
|
49
|
+
allProductsLink: React.ReactNode;
|
|
50
|
+
};
|
|
51
|
+
popularDocumentsBlock: {
|
|
52
|
+
title: string;
|
|
53
|
+
popularDocuments: React.ReactNode;
|
|
54
|
+
};
|
|
55
|
+
companyBlock: {
|
|
56
|
+
title: string;
|
|
57
|
+
links: React.ReactNode;
|
|
58
|
+
};
|
|
59
|
+
helpBlock: {
|
|
60
|
+
title: string;
|
|
61
|
+
links: React.ReactNode;
|
|
62
|
+
};
|
|
63
|
+
resourcesBlock: {
|
|
64
|
+
title: string;
|
|
65
|
+
links: React.ReactNode;
|
|
66
|
+
};
|
|
67
|
+
languageSelector: {
|
|
68
|
+
show: boolean;
|
|
69
|
+
content: React.ReactNode;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
export interface Link {
|
|
4
|
+
label: string
|
|
5
|
+
url: string
|
|
6
|
+
onClick: () => void
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface FixedFooterProps {
|
|
10
|
+
footerData: {
|
|
11
|
+
findUs: string
|
|
12
|
+
}
|
|
13
|
+
config: {
|
|
14
|
+
siteName: string
|
|
15
|
+
sitePhone: string
|
|
16
|
+
siteSchedule: string
|
|
17
|
+
siteUrl: string
|
|
18
|
+
hasGrav: boolean
|
|
19
|
+
hasCookieMessage: boolean
|
|
20
|
+
hasContactBar: boolean
|
|
21
|
+
hasTrustPilot: boolean
|
|
22
|
+
isJonSnow: boolean
|
|
23
|
+
isSEMPage: boolean
|
|
24
|
+
isMobile: boolean
|
|
25
|
+
isTablet: boolean
|
|
26
|
+
isDesktop: boolean
|
|
27
|
+
isAnonymousPayment: boolean
|
|
28
|
+
hide: boolean
|
|
29
|
+
noFooter: boolean
|
|
30
|
+
}
|
|
31
|
+
footer: {
|
|
32
|
+
disclaimerText: string
|
|
33
|
+
guaranteeText: string
|
|
34
|
+
securityText: string
|
|
35
|
+
bottomFixedBlock: React.ReactNode
|
|
36
|
+
createDocumentBlock: React.ReactNode
|
|
37
|
+
trustPilotWidget: React.ReactNode
|
|
38
|
+
}
|
|
39
|
+
preFooter: {
|
|
40
|
+
show: boolean
|
|
41
|
+
title: string
|
|
42
|
+
columns: string[]
|
|
43
|
+
hasButton: boolean
|
|
44
|
+
buttonLabel: string
|
|
45
|
+
buttonLink: string
|
|
46
|
+
buttonClick: () => void
|
|
47
|
+
}
|
|
48
|
+
productsBlock: {
|
|
49
|
+
title: string
|
|
50
|
+
productsCategories: React.ReactNode
|
|
51
|
+
allProductsLink: React.ReactNode
|
|
52
|
+
}
|
|
53
|
+
popularDocumentsBlock: {
|
|
54
|
+
title: string
|
|
55
|
+
popularDocuments: React.ReactNode
|
|
56
|
+
}
|
|
57
|
+
companyBlock: {
|
|
58
|
+
title: string
|
|
59
|
+
links: React.ReactNode
|
|
60
|
+
}
|
|
61
|
+
helpBlock: {
|
|
62
|
+
title: string
|
|
63
|
+
links: React.ReactNode
|
|
64
|
+
}
|
|
65
|
+
resourcesBlock: {
|
|
66
|
+
title: string
|
|
67
|
+
links: React.ReactNode
|
|
68
|
+
}
|
|
69
|
+
languageSelector: {
|
|
70
|
+
show: boolean
|
|
71
|
+
content: React.ReactNode
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../Button';
|
|
3
|
+
import { PreFooterStyled } from './PreFooter.styled';
|
|
4
|
+
export const PreFooter = ({ siteName, content, ctaLabel, ctaOnClick, ctaDataQa, ctaLink }) => {
|
|
5
|
+
return (_jsx(PreFooterStyled, { children: _jsx("div", { className: 'wrapper', children: _jsxs("div", { className: 'prefooter', children: [_jsxs("div", { className: 'serif --hero prefooter__title', children: ["Try ", siteName, " Now"] }), _jsx("div", { className: 'prefooter__columns', children: content.map((text, index) => {
|
|
6
|
+
return (_jsx("p", { className: 'prefooter__columns__text', children: text }, index));
|
|
7
|
+
}) }), _jsx(Button, { label: ctaLabel, onClick: ctaOnClick, link: ctaLink, dataQa: ctaDataQa, isExternal: true, hasNoFollow: true })] }) }) }));
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PreFooterStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const PreFooterStyled = styled.section `
|
|
4
|
+
background-color: var(--primary-main-light-6);
|
|
5
|
+
text-align: center;
|
|
6
|
+
|
|
7
|
+
.prefooter {
|
|
8
|
+
margin: 0 1.5rem;
|
|
9
|
+
|
|
10
|
+
@media ${device['landscape-tablets']} {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__title {
|
|
15
|
+
color: var(--neutral-neutral-1);
|
|
16
|
+
display: inline-block;
|
|
17
|
+
margin: 2rem 0 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__columns {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
|
|
26
|
+
@media ${device['landscape-tablets']} {
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
margin: 0 1rem;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__text {
|
|
33
|
+
width: 16.375rem;
|
|
34
|
+
color: var(--neutral-neutral-1);
|
|
35
|
+
margin: 2rem 0.5rem 0 0.5rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.e-button {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
margin: 2rem 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { device } from '../../../globalStyles/breakpoints'
|
|
2
|
+
import styled from 'styled-components'
|
|
3
|
+
export const PreFooterStyled = styled.section`
|
|
4
|
+
background-color: var(--primary-main-light-6);
|
|
5
|
+
text-align: center;
|
|
6
|
+
|
|
7
|
+
.prefooter {
|
|
8
|
+
margin: 0 1.5rem;
|
|
9
|
+
|
|
10
|
+
@media ${device['landscape-tablets']} {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__title {
|
|
15
|
+
color: var(--neutral-neutral-1);
|
|
16
|
+
display: inline-block;
|
|
17
|
+
margin: 2rem 0 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__columns {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
|
|
26
|
+
@media ${device['landscape-tablets']} {
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
margin: 0 1rem;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__text {
|
|
33
|
+
width: 16.375rem;
|
|
34
|
+
color: var(--neutral-neutral-1);
|
|
35
|
+
margin: 2rem 0.5rem 0 0.5rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.e-button {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
margin: 2rem 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { Button } from '../Button'
|
|
4
|
+
import { PreFooterProps } from './PreFooterProps'
|
|
5
|
+
import { PreFooterStyled } from './PreFooter.styled'
|
|
6
|
+
|
|
7
|
+
export const PreFooter: React.FC<PreFooterProps> = ({
|
|
8
|
+
siteName,
|
|
9
|
+
content,
|
|
10
|
+
ctaLabel,
|
|
11
|
+
ctaOnClick,
|
|
12
|
+
ctaDataQa,
|
|
13
|
+
ctaLink
|
|
14
|
+
}) => {
|
|
15
|
+
return (
|
|
16
|
+
<PreFooterStyled>
|
|
17
|
+
<div className='wrapper'>
|
|
18
|
+
<div className='prefooter'>
|
|
19
|
+
<div className='serif --hero prefooter__title'>Try {siteName} Now</div>
|
|
20
|
+
<div className='prefooter__columns'>
|
|
21
|
+
{content.map((text, index) => {
|
|
22
|
+
return (
|
|
23
|
+
<p key={index} className='prefooter__columns__text'>
|
|
24
|
+
{text}
|
|
25
|
+
</p>
|
|
26
|
+
)
|
|
27
|
+
})}
|
|
28
|
+
</div>
|
|
29
|
+
<Button label={ctaLabel} onClick={ctaOnClick} link={ctaLink} dataQa={ctaDataQa} isExternal hasNoFollow />
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</PreFooterStyled>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export * from './DocumentStatus';
|
|
|
19
19
|
export * from './DocumentTag';
|
|
20
20
|
export * from './ExpertCard';
|
|
21
21
|
export * from './FeatureRatafiaCard';
|
|
22
|
+
export * from './FixedFooter';
|
|
22
23
|
export * from './FormFaq';
|
|
23
24
|
export * from './GoogleButton';
|
|
24
25
|
export * from './IconImage';
|
|
@@ -36,6 +37,7 @@ export * from './MoreDocsItem';
|
|
|
36
37
|
export * from './NavMenuItem';
|
|
37
38
|
export * from './PaypalButton';
|
|
38
39
|
export * from './PopularDocsItem';
|
|
40
|
+
export * from './PreFooter';
|
|
39
41
|
export * from './ProgressBar';
|
|
40
42
|
export * from './Radio';
|
|
41
43
|
export * from './RemoveButton';
|
|
@@ -19,6 +19,7 @@ export * from './DocumentStatus';
|
|
|
19
19
|
export * from './DocumentTag';
|
|
20
20
|
export * from './ExpertCard';
|
|
21
21
|
export * from './FeatureRatafiaCard';
|
|
22
|
+
export * from './FixedFooter';
|
|
22
23
|
export * from './FormFaq';
|
|
23
24
|
export * from './GoogleButton';
|
|
24
25
|
export * from './IconImage';
|
|
@@ -36,6 +37,7 @@ export * from './MoreDocsItem';
|
|
|
36
37
|
export * from './NavMenuItem';
|
|
37
38
|
export * from './PaypalButton';
|
|
38
39
|
export * from './PopularDocsItem';
|
|
40
|
+
export * from './PreFooter';
|
|
39
41
|
export * from './ProgressBar';
|
|
40
42
|
export * from './Radio';
|
|
41
43
|
export * from './RemoveButton';
|