-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSharingButtons.jsx
60 lines (51 loc) · 1.4 KB
/
SharingButtons.jsx
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
55
56
57
58
59
60
import React from 'react'
import { config } from 'config'
import {
Email,
Facebook,
Google,
Pinterest,
Reddit,
Tumblr,
Twitter,
WhatsApp,
Telegram,
} from '../../src'
export default () => {
const url = config.siteUrl
const shareText = 'Lightweight social sharing buttons for React. No tracking. Just fun.'
const tumblr = {
title: 'React Sharingbuttons',
caption: 'Lightweight social sharing buttons for React. No tracking. Just fun.',
content: url,
}
const buttonsWrapperStyles = {
padding: 50,
marginTop: 75,
marginBottom: 100,
}
return (
<div>
<a href={config.repoUrl}>Code on GitHub</a>
<br />
<br />
<p>Lightweight social sharing buttons for React. No tracking. Just fun. Heavily inspired by <a href="http://sharingbuttons.io">sharingbuttons.io</a></p>
<div style={buttonsWrapperStyles}>
<Email url={url} subject="nice subject" />
<Facebook url={url} />
<Google url={url} />
<Pinterest url={url} shareText={shareText} mediaSrc={url} />
<Reddit url={url} />
<Tumblr
url={url}
title={tumblr.title}
caption={tumblr.caption}
content={tumblr.content}
/>
<Twitter url={url} shareText={shareText} />
<WhatsApp url={url} message={shareText} />
<Telegram url={url} message={shareText} />
</div>
</div>
)
}