PluginProbe
Extendify / 0.3.0
Extendify v0.3.0
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / components / modals / ProModal.js

ProModal.js in Extendify 0.3.0, at src/components/modals/ProModal.js

54 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 {/* TODO: extract this padding to parent */}
12 <div className="p-12 py-2">
13 <div className="flex space-x-2 items-center mb-5 text-extendify-black">
14 {brandLogo}
15 </div>
16 <h3 className="text-xl mt-0">
17 {__(
18 'Get unlimited access to all our Pro patterns & layouts',
19 'extendify',
20 )}
21 </h3>
22 <p className="text-sm text-black">
23 {__(
24 "Upgrade to Extendify Pro and use all the patterns and layouts you'd like, including our exclusive Pro catalog.",
25 'extendify',
26 )}
27 </p>
28 <div>
29 <a
30 target="_blank"
31 ref={initialFocus}
32 className="button-extendify-main inline-flex mt-2 px-4 py-3 button-focus justify-center"
33 style={{ minWidth: '225px' }}
34 href={`https://extendify.com/pricing/?utm_source=${window.extendifyData.sdk_partner}&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now`}
35 rel="noreferrer">
36 {__('Upgrade Now', 'extendify')}
37 <Icon icon={growthArrow} size={24} className="-mr-1" />
38 </a>
39 </div>
40 </div>
41 <div className="w-full bg-black flex justify-endrounded-tr-sm rounded-br-sm">
42 <img
43 alt={__('Upgrade Now', 'extendify')}
44 className="max-w-full rounded-tr-sm rounded-br-sm"
45 src={
46 window.extendifyData.asset_path +
47 '/modal-extendify-black.png'
48 }
49 />
50 </div>
51 </SplitModal>
52 )
53 }
54