Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/son-link/fediwebcomp
Various Web Components for the Fediverse (Mastodon, PixelFeed and PeerTube)
https://github.com/son-link/fediwebcomp
Last synced: about 2 months ago
JSON representation
Various Web Components for the Fediverse (Mastodon, PixelFeed and PeerTube)
- Host: GitHub
- URL: https://github.com/son-link/fediwebcomp
- Owner: son-link
- License: mit
- Created: 2024-01-05T14:17:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-05T15:12:18.000Z (about 1 year ago)
- Last Synced: 2024-01-05T16:29:21.940Z (about 1 year ago)
- Language: JavaScript
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FediWebComp
Various web components to embed into any web page and display your latest posts from various Fediverse platforms, such as Mastodon, PixelFeed and PeerTube.
It's very easy to use:
* 0 dependencies, just import the script of the component to use.
* Add the tag to the page and define the values of the attributes of your user and instance.
* Define the value of other attributes to customize it (height, colours, what media to show, etc.)
* Works in any updated browserUnder the MIT license
## Mastodon
Show your latest toots, not including replies or retoots.
![Mastodon screenshot](screenshot.png)
### How to use
```html
```
### Attributes:
* username: Your mastodon user name, without the @
* instance: The mastodon instance where you have the account. No need to add https:// at the beginning. For example: mastodon.social
* widget-text: The text color of the component. \*
* widget-bg: The background color of the component. \*
* toots-text: The text color of the toots \*
* toots-bg: The background color of the toots list \*
* links: The text color of the links \*
* height: Set the widget height. You can use any CSS size value (px, pt, vh, etc)
* medias: Comma-separated values to indicate which media files you want to display. The values are: all (default), none, image, video, audio. **Note:** **None** prevails over **all**, and **all** over the rest, keep this in mind when defining this value.> \* You can use any CSS color value, such as hexadecimal (#ffffff), color name (white), rgb (rgb(255,255,255)) and rgba (rgba(255,255,255,0.8))