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