Skip to content

Instantly share code, notes, and snippets.

@digu087
Last active August 29, 2015 14:14
Show Gist options
  • Save digu087/8cc3ccb27bdc2e5873f0 to your computer and use it in GitHub Desktop.
Save digu087/8cc3ccb27bdc2e5873f0 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
#core_card {
position: relative;
width: 350px;
height: 350px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: auto;
top: auto;
margin: 0px auto;
background-color: rgb(255, 255, 255);
}
#core_toolbar {
right: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#paper_tab2 {
width: 100%;
height: 100%;
}
#section3 {
width: 100%;
height: 100%;
}
#paper_tabs1 {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#clientLoginSection {
width: 100%;
height: 100%;
top: 0px;
left: 0px;
}
#div1 {
padding: 15px;
}
#div2 {
padding: 15px;
}
.loginBtn {
color: rgb(255, 255, 255);
background-color: rgb(66, 133, 244);
}
.loginBtn {
color: rgb(255, 255, 255);
background-color: rgb(66, 133, 244);
}
</style>
<core-card id="core_card" vertical layout>
<section id="section"></section>
<core-toolbar id="core_toolbar">
<core-icon-button icon="lock-open" id="core_icon_button"></core-icon-button>
<div id="div" flex>Login</div>
</core-toolbar>
<section id="section3" layout vertical>
<paper-tabs selected="{{ selected }}" selectedindex="1" id="paper_tabs1" horizontal center layout>
<paper-tab id="paper_tab2" inline flex center-center horizontal layout>Admin</paper-tab>
<paper-tab id="paper_tab3" inline flex center-center horizontal layout active>Client</paper-tab>
</paper-tabs>
<core-pages selected="{{ selected }}" selectedindex="1" notap id="core_pages">
<div id="div1">
<section id="adminLoginSection" flex relative>
<paper-input label="Username or Email" floatinglabel id="a_username" vertical layout start-justified></paper-input>
<paper-input label="Password" floatinglabel id="a_password" vertical layout></paper-input>
<paper-checkbox checked label="Remember Me" id="a_remember"></paper-checkbox>
<paper-button raised id="a_login" class="loginBtn">Login</paper-button>
</section>
</div>
<div id="div2" active>
<section id="clientLoginSection" flex relative active>
<paper-input label="Username or Email" floatinglabel id="c_username" vertical layout></paper-input>
<paper-input label="Password" floatinglabel id="c_password" vertical layout></paper-input>
<paper-checkbox checked label="Remember Me" id="c_remember"></paper-checkbox>
<paper-button raised id="c_login" class="loginBtn">Login</paper-button>
</section>
</div>
</core-pages>
</section>
</core-card>
</template>
<script>
Polymer({
selected: 1
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment