![A screenshot of the fediverse sharing prompt, which consists of an input field for domain name and a button with the text "Share" preceded by a Mastodon logo](./images/fsb-640x120.png) # Fediverse Sharing Button Let your site's visitors share your work with the fediverse! For a list of supported platforms, [visit my blog](https://stefanbohacek.com/blog/making-fediverse-apps-for-everyone/#sharing-dialog). ## Features - minimalist design inspired by Bootstrap - shows a logo of supported fediverse software - lets you share selected text - remembers the last fediverse domain used - free (as in fediverse) to use! ## How to use 1. Download the files in this repo. 2. Add the JavaScript code and CSS stylesheet to your page. ```html ``` Note that if you need to change the path at which the `fediverse-share-button` folder is uploaded 3. Add a sharing prompt to your page. ```html
``` ## Development After making changes to the JS and CSS files, make sure to minify them. ```sh npm install terser -g npm install minify -g terser fediverse-share-button/script.js > fediverse-share-button/script.min.js minify fediverse-share-button/styles.css > fediverse-share-button/styles.min.css ``` ## To-do - Add missing icons, see `icons/todo.txt`. - Better development workflow. - Localization. ## Attributions ### Icons - [fediverse.wake.st](https://fediverse.wake.st) - [flowbite.com/icons](https://flowbite.com/icons) ### JS and CSS code - https://getbootstrap.com