Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share on Mastodon icon #22

Open
alfonsomunozpomer opened this issue Jan 4, 2021 · 3 comments
Open

Share on Mastodon icon #22

alfonsomunozpomer opened this issue Jan 4, 2021 · 3 comments

Comments

@alfonsomunozpomer
Copy link
Contributor

I made a ‘Share on Mastodon’ icon plus a footer link as well. See picture below.
image

I was wondering if this is something you’d be interested in? I thought it’d be better to ask before opening a PR.

@jhauraw
Copy link
Member

jhauraw commented Jan 16, 2021

Ya sure, unless it needs a JS library to share. Does the share func work with just a link like the Twitter one?

You prob already saw this, but the SVGs have 32x32 viewbox and a 1:1 ratio meaning perfect square with icon touching edges of viewbox on at least two sides. This makes all the icons scale and look proper.

Run the svg through nano as well: https://vecta.io/nano

@jhauraw
Copy link
Member

jhauraw commented Jan 16, 2021

Oh wait, we should use their logo instead of a custom designed one. In their presskit is the one called "Logotype (Full).svg". This is the one I would suggest (with viewbox changed and color to black), unless you have a reason why we would want a custom icon?

@alfonsomunozpomer
Copy link
Contributor Author

alfonsomunozpomer commented Jan 17, 2021

The reason I’m not using the official Mastodon icon is that the share service I’m using is toot, and that’s the icon from the project. Since Mastodon is a federated network, there are multiple servers and you can’t have a single click link, so to speak. You need to go through some middle service that allows you to select your server in order to share a link. Toot lets you store the default server in your browser’s local storage to make things easier, though. In the end the link is like a Twitter link, e.g. href="https://toot.karamoff.dev?text={{ printf "%s by @%s %s" $currentPage.Title $author.mastodon $currentPage.Permalink }}".

Let me know your thoughts and I can open a PR with either icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants