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

Feature Request - Create a Gravatar Component #41

Open
sipmann opened this issue Sep 3, 2021 · 1 comment
Open

Feature Request - Create a Gravatar Component #41

sipmann opened this issue Sep 3, 2021 · 1 comment

Comments

@sipmann
Copy link

sipmann commented Sep 3, 2021

I don't know how far in components the project is aiming. but a component that I use a lot is one to generate a Gravatar image.

If aprooved, I can do a pull request with it.

@DamianEdwards
Copy link
Owner

Do you mean something like the following?

<gravatar name="[email protected]" />

Which would render something like:

<img src="https://www.gravatar.com/avatar/538d845ead710ee91dfa89724b90b2e2" />

Perhaps with support for sizes, e.g.:

<gravatar name="[email protected]" size="200" />

Which would render something like:

<img src="https://www.gravatar.com/avatar/538d845ead710ee91dfa89724b90b2e2?s=200" />

And overriding the default image:

<gravatar name="[email protected]" default="https://myapp.com/images/default-avatar.jpg" />

Which would render something like:

<img src="https://www.gravatar.com/avatar/538d845ead710ee91dfa89724b90b2e2?d=https%3A%2F%2Fmyapp.com%2Fimages%2Fdefault-avatar.jpg" />

And lastly support for specifying ratings:

<gravatar name="[email protected]" rating="GravatarRating.PG" />

Which would render something like:

<img src="https://www.gravatar.com/avatar/538d845ead710ee91dfa89724b90b2e2?r=pg" />

That sounds very useful 😄

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

No branches or pull requests

2 participants