PluginProbe
Extendify / 0.11.1
Extendify v0.11.1
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 / Library / components / modals / NoImportModal.js

NoImportModal.js in Extendify 0.11.1, at src/Library/components/modals/NoImportModal.js

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