Web Component build with Polymer to display Heart
Maintained by Mateus Ortiz.
Install with Bower:
$ bower install x-heart --save
-
Import Web Components' polyfill:
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
-
Import Custom Element:
<link rel="import" href="src/x-heart.html">
-
Start using it!
<x-heart></x-heart>
In order to run it locally you'll need a basic server setup.
-
Install NodeJS.
-
Install GruntJS:
$ [sudo] npm install -g grunt-cli
-
Install local dependencies:
$ npm install
-
Run a local server and open
http://localhost:8000
.$ grunt connect
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT License © Mateus Ortiz