<link rel="import" href="../components/paper-input/paper-input.html">
<link rel="import" href="../components/paper-button/paper-button.html">
<link rel="import" href="../components/topeka-elements/category-icons.html">
<link rel="import" href="../components/core-icon/core-icon.html">
<polymer-element name="login-form">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 300px;
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: 0px;
top: 120px;
background-color: rgb(255, 255, 255);
}
#core_icon {
height: 128px;
width: 128px;
position: absolute;
left: 90px;
top: 0px;
}
#loginButton {
width: 100%;
background-color: rgb(255, 255, 255);
}
.login_input {
width: 95%;
}
</style>
<core-card id="core_card" layout vertical center>
<paper-input label="Username" floatinglabel id="loginInput" class="login_input" vertical layout></paper-input>
<paper-input label="Password" floatinglabel id="{{passwordInput}}" class="login_input" vertical layout></paper-input>
<paper-button extends="input" on-tap="{{login}}" id="loginButton" center vertical layout>LOGIN</paper-button>
</core-card>
<core-icon icon="category-icons:entertainment" id="core_icon" designmeta="topeka-icon"></core-icon>
</template>
<script>
Polymer({
login: function(event,detail,sender){
var username = document.getElementById('loginInput').value;
console.dir(username);
}
});
</script>
</polymer-element>