| 1 |
import React from 'react'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
import { styled } from '@linaria/react'; |
| 4 |
|
| 5 |
const IframeErrorContainer = styled.div` |
| 6 |
display: flex; |
| 7 |
flex-direction: column; |
| 8 |
align-items: center; |
| 9 |
justify-content: center; |
| 10 |
margin-top: 120px; |
| 11 |
font-family: 'Lexend Deca', Helvetica, Arial, sans-serif; |
| 12 |
font-weight: 400; |
| 13 |
font-size: 14px; |
| 14 |
font-size: 0.875rem; |
| 15 |
-webkit-font-smoothing: antialiased; |
| 16 |
-moz-osx-font-smoothing: grayscale; |
| 17 |
font-smoothing: antialiased; |
| 18 |
line-height: 1.5rem; |
| 19 |
`; |
| 20 |
|
| 21 |
const ErrorHeader = styled.h1` |
| 22 |
text-shadow: 0 0 1px transparent; |
| 23 |
margin-bottom: 1.25rem; |
| 24 |
color: #33475b; |
| 25 |
font-size: 1.25rem; |
| 26 |
`; |
| 27 |
|
| 28 |
export const IframeErrorPage = () => ( |
| 29 |
<IframeErrorContainer> |
| 30 |
<img |
| 31 |
alt="Cannot find page" |
| 32 |
width="175" |
| 33 |
src="//static.hsappstatic.net/ui-images/static-1.14/optimized/errors/map.svg" |
| 34 |
/> |
| 35 |
<ErrorHeader> |
| 36 |
{__( |
| 37 |
'The HubSpot for WordPress plugin is not able to load pages', |
| 38 |
'leadin' |
| 39 |
)} |
| 40 |
</ErrorHeader> |
| 41 |
<p> |
| 42 |
{__( |
| 43 |
'Try disabling your browser extensions and ad blockers, then refresh the page.', |
| 44 |
'leadin' |
| 45 |
)} |
| 46 |
</p> |
| 47 |
<p> |
| 48 |
{__( |
| 49 |
'Or open the HubSpot for WordPress plugin in a different browser.', |
| 50 |
'leadin' |
| 51 |
)} |
| 52 |
</p> |
| 53 |
</IframeErrorContainer> |
| 54 |
); |
| 55 |
|