PluginProbe
Extendify / 0.4.0
Extendify v0.4.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 / NoImportModal.js

NoImportModal.js in Extendify 0.4.0, at src/components/modals/NoImportModal.js

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