diff --git a/.gitignore b/.gitignore index 8d4ae25..b13058c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bower_components +.DS_Store diff --git a/README.md b/README.md index ffe25b7..6b3fc3f 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,46 @@ # \ +A Polymer web component. +The `ab-animated-banner` is a polymer element which displays a simple banner that cycles through an array of strings. -## Install the Polymer-CLI +## Installation -First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your application locally. +```sh +$ bower install -S ab-animated-banner +``` -## Viewing Your Application +## Getting Started -``` -$ polymer serve -``` +Include the [webcomponents.js](http://webcomponents.org/polyfills/) "lite" polyfill (for browsers who don't natively support web components), then import `ab-animated-banner.html`: -## Building Your Application -``` -$ polymer build +```html + + ``` -This will create builds of your application in the `build/` directory, optimized to be served in production. You can then serve the built versions by giving `polymer serve` a folder to serve from: +Add the element. -``` -$ polymer serve build/default +```html + ``` -## Running Tests +## Contributing +1. Fork it! +2. Create your feature branch: `git checkout -b my-new-feature` +3. Commit your changes: `git commit -am 'Add some feature'` +4. Push to the branch: `git push origin my-new-feature` +5. Submit a pull request :D -``` -$ polymer test -``` +## License + +The MIT License (MIT) + +Copyright (c) 2017 Jimmy Arroyo + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -Your application is already set up to be tested via [web-component-tester](https://github.com/Polymer/web-component-tester). Run `polymer test` to run your application's test suite locally. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/ab-animated-banner.html b/ab-animated-banner.html index c7d6f6e..622b4ba 100644 --- a/ab-animated-banner.html +++ b/ab-animated-banner.html @@ -21,26 +21,48 @@ } - .banner .innerLeft{ + .banner .header{ height: 100%; width: 20%; float: left; background: rgba(253,202,0,1); } - .innerLeft h4{ + .header h4{ font-size: 20px; text-align: center; } + .banner .body{ + height: 100%; + display: flex; + flex-wrap: wrap; + justify-content:flex-start; + } + + .body span{ + height: 40px; + margin: 13px 15px 0 0; + } + .body .text{ + width: 200px; + padding-top: 11px; + font-size: 14px; + font-weight: 800; + color: #525252; + margin-left: 10px; + }