| 1 |
import { Icon } from '@wordpress/components' |
| 2 |
import { Button } from '@wordpress/components' |
| 3 |
import { __ } from '@wordpress/i18n' |
| 4 |
import SplitModal from './SplitModal' |
| 5 |
import SettingsModal from './SettingsModal' |
| 6 |
import { |
| 7 |
growthArrow, |
| 8 |
patterns, |
| 9 |
layouts, |
| 10 |
support, |
| 11 |
star, |
| 12 |
brandLogo, |
| 13 |
} from '../icons' |
| 14 |
import { useGlobalStore } from '../../state/GlobalState' |
| 15 |
import Primary from '../buttons/Primary' |
| 16 |
|
| 17 |
export const NoImportModal = () => ( |
| 18 |
<SplitModal |
| 19 |
isOpen={true} |
| 20 |
onClose={() => useGlobalStore.setState({ currentModal: null })}> |
| 21 |
<div className="bg-white p-12 text-center items-center"> |
| 22 |
<div className="flex space-x-2 items-center justify-center mb-10 text-extendify-black"> |
| 23 |
{brandLogo} |
| 24 |
</div> |
| 25 |
|
| 26 |
<h3 className="text-xl md:leading-3"> |
| 27 |
{__("You're out of imports", 'extendify')} |
| 28 |
</h3> |
| 29 |
<p className="text-sm text-black"> |
| 30 |
{__( |
| 31 |
'Sign up today and get unlimited access to our entire collection of patterns and page layouts.', |
| 32 |
'extendify', |
| 33 |
)} |
| 34 |
</p> |
| 35 |
<div> |
| 36 |
<Primary |
| 37 |
tagName="a" |
| 38 |
target="_blank" |
| 39 |
className="m-auto mt-10 py-3" |
| 40 |
href={`https://extendify.com/pricing/?utm_source=${window.extendifyData.sdk_partner}&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports`} |
| 41 |
rel="noreferrer"> |
| 42 |
{__('Get Unlimited Imports', 'extendify')} |
| 43 |
<Icon icon={growthArrow} size={24} className="-ml-1 mr-1" /> |
| 44 |
</Primary> |
| 45 |
<p className="text-sm text-extendify-gray mb-0"> |
| 46 |
{__('Have an account?', 'extendify')} |
| 47 |
<Button |
| 48 |
onClick={() => { |
| 49 |
useGlobalStore.setState({ |
| 50 |
currentModal: ( |
| 51 |
<SettingsModal |
| 52 |
isOpen={true} |
| 53 |
onClose={() => |
| 54 |
useGlobalStore.setState({ |
| 55 |
currentModal: null, |
| 56 |
}) |
| 57 |
} |
| 58 |
/> |
| 59 |
), |
| 60 |
}) |
| 61 |
}} |
| 62 |
className="underline hover:no-underline text-sm text-extendify-gray pl-2"> |
| 63 |
{__('Sign in', 'extendify')} |
| 64 |
</Button> |
| 65 |
</p> |
| 66 |
</div> |
| 67 |
</div> |
| 68 |
<div className="space-y-2 justify-center p-10 text-black"> |
| 69 |
<div className="flex items-center space-x-2"> |
| 70 |
<Icon icon={patterns} size={24} className="-ml-1 mr-1" /> |
| 71 |
<span className="text-sm leading-none"> |
| 72 |
{__("Access to 100's of Patterns", 'extendify')} |
| 73 |
</span> |
| 74 |
</div> |
| 75 |
<div className="flex items-center space-x-2"> |
| 76 |
<Icon icon={layouts} size={24} className="-ml-1 mr-1" /> |
| 77 |
<span className="text-sm leading-none"> |
| 78 |
{__('Beautiful full page layouts', 'extendify')} |
| 79 |
</span> |
| 80 |
</div> |
| 81 |
<div className="flex items-center space-x-2"> |
| 82 |
<Icon icon={support} size={24} className="-ml-1 mr-1" /> |
| 83 |
<span className="text-sm leading-none"> |
| 84 |
{__('Fast and friendly support', 'extendify')} |
| 85 |
</span> |
| 86 |
</div> |
| 87 |
<div className="flex items-center space-x-2"> |
| 88 |
<Icon icon={star} size={24} className="-ml-1 mr-1" /> |
| 89 |
<span className="text-sm leading-none"> |
| 90 |
{__('14-Day guarantee', 'extendify')} |
| 91 |
</span> |
| 92 |
</div> |
| 93 |
</div> |
| 94 |
</SplitModal> |
| 95 |
) |
| 96 |
|