-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeatures.tsx
54 lines (46 loc) · 2.06 KB
/
features.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css';
import './index.css'
function card(heading: string, body: string, tooltip: any = undefined) {
return (
<div className="">
<div className="uk-light uk-background-secondary uk-padding">
<h3>{heading}
{tooltip !== undefined ? tooltip : <></>}
</h3>
<p>{body}</p>
</div>
</div>
)
}
function Features() {
return (
<div className="popup">
<div className="uk-child-width-expand@s uk-text-center" uk-grid="true" >
<div className="">
{card('Fast af', 'Native Asynchronous Javascript PDF Manipulation', <> <span uk-icon="icon: info" uk-tooltip="Speed depends on CPU and disk"></span></>)}
</div>
<div>
{card('Privacy 💯', 'All conversion done in web browser. No external servers and no ads')}
</div>
<div className="disabled ">
{card('Versatile', 'Coming soon - Doc and PPT Manipulation')}
</div>
</div>
{/* ----------------------- */}
<div className="uk-child-width-expand@s uk-text-center" uk-grid="true" >
<div>
{card('No Limit', 'No upper limit for maximum docs merged. CPU go brrrr')}
</div>
<div>
{card('Convert Offline', 'Install as a PWA to convert documents offline', <> <span uk-icon="icon: info" uk-tooltip="You need to manually install it / add to homepage"></span></>)}
</div>
<div className="">
{card('Zip Download', 'Save pdf as compressed zip to disk')}
</div>
</div>
</div>
)
}
const pop = () => (<Popup modal trigger={<div className="uk-background-secondary uk-padding-small features white"> Features</div>} position="bottom center"> <div><Features /></div> </Popup>);
export default pop;