hostabee-profile-picture

1.0.0 • Public • Published

<hostabee-profile-picture>

Commitizen friendly Build Status Published on webcomponents.org

A profile picture generator in a Web Component. Displays the image target by the given URL or generate one using a string (like username, email address, etc..).

<hostabee-profile-picture></hostabee-profile-picture>
<hostabee-profile-picture src="John Doe"></hostabee-profile-picture>
<hostabee-profile-picture src="john.doe@example.org"></hostabee-profile-picture>
<hostabee-profile-picture id="hpp"></hostabee-profile-picture>
<script>
  document.querySelector('#hpp').src = {
    fullname: 'John Doe',
    profilePictureURL: 'https://image.flaticon.com/icons/svg/219/219988.svg',
  };
</script> 

Screenshot of hostabee-profile-picture

Installation

Install <hostabee-profile-picture>:

bower install Hostabee/hostabee-profile-picture --save

Once installed, import it in your application:

<link rel="import" href="bower_components/hostabee-profile-picture/hostabee-profile-picture.html">

Running demos and tests in a browser

  1. Fork the hostabee-profile-picture repository and clone it locally.

  2. Make sure you have npm and Bower installed.

  3. When in the hostabee-profile-picture directory, run npm install and then bower install to install dependencies.

  4. Run npm start, browser will automatically open the component API documentation.

  5. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

Running Tests

  • When in the hostabee-profile-picture directory, run polymer test

Contributing

  1. Fork it!

  2. Create your feature branch: git checkout -b my-new-feature

  3. Commit your changes: git cz OR follow this commit guide to write the commit messages.

  4. Push to the branch: git push origin my-new-feature

  5. Submit a pull request.

License

Apache License 2.0

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i hostabee-profile-picture

    Weekly Downloads

    7

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    84.6 kB

    Total Files

    14

    Last publish

    Collaborators

    • masonlouchart