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 / NoImportModal.js

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

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