Skip to content

Instantly share code, notes, and snippets.

@pjjjv
Created August 10, 2014 08:53
Show Gist options
  • Save pjjjv/1eb6827ec9e5f3339304 to your computer and use it in GitHub Desktop.
Save pjjjv/1eb6827ec9e5f3339304 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
width: 300px;
height: 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;
padding: 14px;
background-color: rgb(255, 255, 255);
}
#core_icon {
height: 64px;
width: 64px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#core_icon1 {
height: 64px;
width: 64px;
margin: 0px 8px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#core_icon2 {
height: 64px;
width: 64px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#section {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 30px;
top: 20px;
position: absolute;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
background-color: rgb(238, 238, 238);
}
#section5 {
box-sizing: border-box;
width: 420px;
height: 582px;
}
#toolbar {
box-sizing: border-box;
height: 15%;
position: relative;
color: rgb(255, 255, 255);
font-size: 48px;
background-color: rgb(0, 187, 211);
}
#tiles-container {
padding-left: 3px;
height: 85%;
}
#tile-profile {
box-sizing: border-box;
float: left;
height: 30%;
width: 48%;
margin: 3px;
background-color: rgb(204, 204, 204);
}
#core_icon3 {
height: 128px;
width: 128px;
}
#div1 {
padding: 8px;
color: rgb(255, 255, 255);
background-color: rgb(170, 170, 170);
}
#tile-general {
box-sizing: border-box;
float: left;
height: 30%;
width: 48%;
margin: 3px;
}
#section7 {
background-color: rgb(255, 255, 141);
}
#core_icon4 {
height: 128px;
width: 128px;
}
#div2 {
padding: 8px;
color: rgb(255, 255, 255);
background-color: rgb(255, 235, 59);
}
#div3 {
box-sizing: border-box;
float: left;
height: 30%;
width: 48%;
margin: 3px;
background-color: rgb(185, 246, 202);
}
#core_icon5 {
height: 128px;
width: 128px;
}
#div4 {
padding: 8px;
color: rgb(255, 255, 255);
background-color: rgb(15, 157, 88);
}
#div5 {
box-sizing: border-box;
float: left;
height: 30%;
width: 48%;
margin: 3px;
background-color: rgb(255, 138, 128);
}
#core_icon6 {
height: 128px;
width: 128px;
}
#div6 {
padding: 8px;
color: rgb(255, 255, 255);
background-color: rgb(219, 68, 55);
}
#div7 {
box-sizing: border-box;
float: left;
height: 30%;
width: 48%;
margin: 3px;
background-color: rgb(130, 177, 255);
}
#core_icon7 {
height: 128px;
width: 128px;
}
#div8 {
padding: 8px;
color: rgb(255, 255, 255);
background-color: rgb(66, 133, 244);
}
#div9 {
box-sizing: border-box;
float: left;
height: 30%;
width: 48%;
margin: 3px;
background-color: rgb(179, 136, 255);
}
#core_icon8 {
height: 128px;
width: 128px;
}
#div10 {
padding: 8px;
color: rgb(255, 255, 255);
background-color: rgb(126, 87, 194);
}
#paper_fab2 {
background-color: teal;
}
</style>
<section id="section" layout vertical>
<paper-tabs id="paper_tabs" selected="{{selected}}" noink nobar>
<paper-tab id="paper_tab" active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1">ITEM TWO</paper-tab>
</paper-tabs>
<section id="section1" flex relative>
<core-animated-pages id="core_animated_pages" notap selected="{{selected}}" transitions="hero-transition slide-up slide-down tile-cascade fade">
<section id="section2" layout horizontal center center-justified active>
<core-card id="core_card" layout vertical slide-up>
<paper-input id="paper_input" label="First name"></paper-input>
<paper-input id="paper_input1" label="Last name"></paper-input>
<core-selector id="core_selector" selected="0" flex layout horizontal>
<core-icon id="core_icon" icon="avatars:avatar-1" designmeta="topeka-avatar" active></core-icon>
<core-icon id="core_icon1" icon="avatars:avatar-2" designmeta="topeka-avatar"></core-icon>
<core-icon id="core_icon2" icon="avatars:avatar-3" designmeta="topeka-avatar"></core-icon>
</core-selector>
<div id="div" layout horizontal end-justified>
<paper-fab icon="check" id="paper_fab" hero hero-id="reddy"></paper-fab>
</div>
</core-card>
</section>
<section id="section3">
<section id="section5" layout vertical designmeta="quiz-demo-grid">
<div id="toolbar" class="tall-toolbar categories" horizontal center-justified center layout slide-down>
<span id="span">Quiz Demo</span>
</div>
<div id="tiles-container" class="tiles-container" layout wrap horizontal around-justified center relative tile-cascade fade>
<div id="tile-profile" class="tile" layout vertical relative>
<section id="section6" class="tile-top" flex layout horizontal center center-justified>
<core-icon id="core_icon3" icon="category-icons:food" designmeta="topeka-icon"></core-icon>
</section>
<div id="div1" class="tile-bottom">
Category 1
</div>
</div>
<div id="tile-general" class="tile" layout vertical relative>
<section id="section7" class="tile-top" flex layout horizontal center center-justified hero hero-id="top">
<core-icon id="core_icon4" icon="category-icons:knowledge" cross-fade-delayed designmeta="topeka-icon"></core-icon>
</section>
<div id="div2" class="tile-bottom" hero hero-id="bottom">
<span id="span1">General Knowledge</span>
</div>
</div>
<div id="div3" class="tile" layout vertical relative>
<section id="section8" class="tile-top" flex layout horizontal center center-justified>
<core-icon id="core_icon5" icon="category-icons:history" designmeta="topeka-icon"></core-icon>
</section>
<div id="div4" class="tile-bottom">
Category 2
</div>
</div>
<div id="div5" class="tile" layout vertical relative>
<section id="section9" class="tile-top" flex layout horizontal center center-justified>
<core-icon id="core_icon6" icon="category-icons:geography" designmeta="topeka-icon"></core-icon>
</section>
<div id="div6" class="tile-bottom">
Category 3
</div>
</div>
<div id="div7" class="tile" layout vertical relative>
<section id="section10" class="tile-top" flex layout horizontal center center-justified>
<core-icon id="core_icon7" icon="category-icons:entertainment" designmeta="topeka-icon"></core-icon>
</section>
<div id="div8" class="tile-bottom">
Category 4
</div>
</div>
<div id="div9" class="tile" layout vertical relative>
<section id="section11" class="tile-top" flex layout horizontal center center-justified>
<core-icon id="core_icon8" icon="category-icons:music" designmeta="topeka-icon"></core-icon>
</section>
<div id="div10" class="tile-bottom">
Category 5
</div>
</div>
</div>
<div id="div" layout horizontal end-justified>
<paper-fab icon="info" id="paper_fab2" hero hero-id="reddy"></paper-fab>
</div>
</section>
</section>
<section id="section4">
</section>
</core-animated-pages>
</section>
</section>
</template>
<script>
Polymer('my-element', {
selected: 0
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment