| 1 |
import { Icon } from '@wordpress/components' |
| 2 |
import { useRef } from '@wordpress/element' |
| 3 |
import { __ } from '@wordpress/i18n' |
| 4 |
import { SplitModal } from './SplitModal' |
| 5 |
import { growthArrow, brandLogo } from '../icons' |
| 6 |
|
| 7 |
export const ProModal = () => { |
| 8 |
const initialFocus = useRef(null) |
| 9 |
return ( |
| 10 |
<SplitModal isOpen={true} invertedButtonColor={true} ref={initialFocus}> |
| 11 |
<div> |
| 12 |
<div className="flex space-x-2 items-center mb-5 text-extendify-black"> |
| 13 |
{brandLogo} |
| 14 |
</div> |
| 15 |
<h3 className="text-xl mt-0"> |
| 16 |
{__( |
| 17 |
'Get unlimited access to all our Pro patterns & layouts', |
| 18 |
'extendify', |
| 19 |
)} |
| 20 |
</h3> |
| 21 |
<p className="text-sm text-black"> |
| 22 |
{__( |
| 23 |
"Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.", |
| 24 |
'extendify', |
| 25 |
)} |
| 26 |
</p> |
| 27 |
<div> |
| 28 |
<a |
| 29 |
target="_blank" |
| 30 |
ref={initialFocus} |
| 31 |
className="button-extendify-main inline-flex mt-2 px-4 py-3 button-focus justify-center" |
| 32 |
style={{ minWidth: '225px' }} |
| 33 |
href={`https://extendify.com/pricing/?utm_source=${window.extendifyData.sdk_partner}&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now`} |
| 34 |
rel="noreferrer"> |
| 35 |
{__('Upgrade Now', 'extendify')} |
| 36 |
<Icon icon={growthArrow} size={24} className="-mr-1" /> |
| 37 |
</a> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<div className="w-full bg-black flex justify-endrounded-tr-sm rounded-br-sm"> |
| 41 |
<img |
| 42 |
alt={__('Upgrade Now', 'extendify')} |
| 43 |
className="max-w-full rounded-tr-sm rounded-br-sm" |
| 44 |
src={ |
| 45 |
window.extendifyData.asset_path + |
| 46 |
'/modal-extendify-black.png' |
| 47 |
} |
| 48 |
/> |
| 49 |
</div> |
| 50 |
</SplitModal> |
| 51 |
) |
| 52 |
} |
| 53 |
|