Skip to content

Instantly share code, notes, and snippets.

@c0d3rm0nk3y
Created July 2, 2014 21:47
Show Gist options
  • Save c0d3rm0nk3y/66a6c2497ccd1e0c26c8 to your computer and use it in GitHub Desktop.
Save c0d3rm0nk3y/66a6c2497ccd1e0c26c8 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-progress/paper-progress.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 480px;
height: 290px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 60px;
top: 30px;
background-color: rgb(255, 255, 255);
}
#newsWord {
margin: 20px 0px;
}
#newsControls {
bottom: 0px;
left: -50%;
position: absolute;
}
#articleProgress {
margin: 25px 0px;
}
</style>
<core-card id="core_card" layout vertical center>
<h1 id="newsTitle">{{ title }}</h1>
<h5 id="newsAuthor">{{ author }}</h5>
<p id="newsWord">{{ word }}</p>
<div id="newsControls" layout vertical center>
<paper-progress value="5" ratio="5" id="articleProgress"></paper-progress>
<div id="controlsContainer" layout horizontal center>
<paper-button label="{{ playStateLbl }}" id="btnPlay"></paper-button>
<paper-button label="Faster" id="btnFaster"></paper-button>
<paper-button label="Slower" id="btnSlower"></paper-button>
</div>
</div>
</core-card>
</template>
<script>
Polymer('my-element', {
playStateLbl: 'Play',
playState: false,
title: 'Prez underage dog is pregnant',
author: 'wiggles mc wiggle',
word: 'better',
words: null,
index: 0,
ready: function () {},
attributeChanged: function (attr, oVal, nVal) {}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment