shareon-pulsanti-condivisio.../README.md

49 lines
1.5 KiB
Markdown
Raw Normal View History

2020-03-25 16:32:25 +01:00
# shareon
2020-03-26 00:38:54 +01:00
<img src="https://raw.githubusercontent.com/googlefonts/noto-emoji/master/png/128/emoji_u1f4ef.png" align="right" alt="Postal Horn emoji" width="96" height="96">
2020-03-25 16:32:25 +01:00
2020-03-25 16:45:04 +01:00
Lightweight, stylish and ethical share buttons.
2020-03-25 16:32:25 +01:00
- **Small.** Dependency-free.
- **Stylish.** Uses official vector logos and colors.
- **Ethical.** No tracking code is being embedded.
2020-03-26 00:38:54 +01:00
<img src="https://raw.githubusercontent.com/NickKaramoff/shareon/develop/docs/screen01@2x.png" height="114" alt="shareon example">
----
Observe the live demo here: [os.karamoff.dev/shareon](https://os.karamoff.dev/shareon)
## Install
Include the link to shareon's JS and CSS in your website:
```html
<link href="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.js" type="text/javascript"></script>
```
or install it via NPM use it in a JS file that you will bundle:
```sh
npm install shareon
# or
yarn add shareon
```
```js
require('shareon');
```
2020-03-26 00:26:55 +01:00
<img src="https://raw.githubusercontent.com/NickKaramoff/shareon/develop/docs/screen01.png" height="60" alt="shareon example">
2020-03-25 16:32:25 +01:00
2020-03-26 00:25:17 +01:00
```html
<div class="shareon">
<a class="facebook"></a>
<a class="messenger" data-url="https://my-cool-website.com"></a>
<a class="pinterest" data-media="https://picsum.photos/500">Pin</a>
<a class="telegram" data-text="Check this out!"></a>
<a class="twitter" data-via="MyNickname"></a>
<a class="whatsapp">Send</a>
2020-03-25 16:32:25 +01:00
</div>
```