Skip to content

Instantly share code, notes, and snippets.

@zhenyanghua
Last active August 29, 2015 14:19
Show Gist options
  • Save zhenyanghua/812ae29fdfa4e1eb9f03 to your computer and use it in GitHub Desktop.
Save zhenyanghua/812ae29fdfa4e1eb9f03 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<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="../paper-button/paper-button.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.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-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
core-scaffold::shadow core-toolbar {
color: white;
background: rgb(255, 223, 0);
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(255, 255, 141);
}
#section {
width: 100%;
left: 0px;
top: 0px;
position: absolute;
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);
}
.place-explore {
margin: 20px 10px 20px 0px;
}
.place-item {
margin: 20px 10px 20px 40px;
}
.paper-checkbox {
margin: 20px 40px;
}
#map-canvas {
width: 100%;
height: 100%;
background-color: rgb(0, 0, 0);
}
#google_map {
width: 100%;
height: 100%;
display: block;
left: 0px;
top: 0px;
position: absolute;
}
#paper_input {
left: 10px;
top: 0px;
position: relative;
}
.custom /deep/ *::-webkit-input-placeholder {
color: white;
}
.custom /deep/ .label-text, .custom /deep/ .error {
color: white;
}
.custom /deep/ .unfocused-underline {
background-color: white;
}
.custom[focused] /deep/ .floated-label .label-text {
color: rgb(15, 157, 88);
}
.custom /deep/ .focused-underline {
background-color: rgb(15, 157, 88);
}
.custom.invalid /deep/ .floated-label .label-text, .custom /deep/ .error {
color: rgb(240, 98, 146);
}
.custom.invalid /deep/ .focused-underline {
background-color: rgb(240, 98, 146);
}
.custom {
color: rgb(15, 157, 88);
}
#core_icon_search {
position: relative;
left: 14px;
}
</style>
<core-scaffold drawerwidth="320px" responsivewidth="900px" id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">
</core-toolbar>
<section id="section" layout vertical is="auto-binding">
<paper-tabs selected="{{ selected }}" selectedindex="0" id="paper_tabs1" horizontal center layout>
<paper-tab id="paper_tab3" inline flex center-center horizontal layout active>Food</paper-tab>
<paper-tab id="paper_tab4" inline flex center-center horizontal layout>Fun</paper-tab>
<paper-tab id="paper_tab5" inline flex center-center horizontal layout>Transit</paper-tab>
</paper-tabs>
<paper-button id="paper_button">
<core-icon icon="favorite-outline" class="place-explore"></core-icon>
<span>Explore</span>
</paper-button>
<core-animated-pages selected="{{ selected }}" selectedindex="0" notap id="core_animated_pages" lastselected="2" duration="500">
<section id="section1" flex relative active>
<core-label center horizontal layout>
<core-icon icon="favorite" class="place-item"></core-icon>
<div flex>Bakery</div>
<paper-checkbox checked class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="store" class="place-item"></core-icon>
<div flex>Bar</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="store" class="place-item"></core-icon>
<div flex>Cafe</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="shopping-basket" class="place-item"></core-icon>
<div flex>Food</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="menu" class="place-item"></core-icon>
<div flex>Restaurant</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
</section>
<section id="section2" flex relative>
<core-label center horizontal layout>
<core-icon icon="face" class="place-item"></core-icon>
<div flex>Amusement Park</div>
<paper-checkbox checked class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="account-balance" class="place-item"></core-icon>
<div flex>Aquarium</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="account-balance" class="place-item"></core-icon>
<div flex>Art Gallery</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="group-work" class="place-item"></core-icon>
<div flex>Casino</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="theaters" class="place-item"></core-icon>
<div flex>Movie Theater</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="account-balance" class="place-item"></core-icon>
<div flex>Museum</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="stars" class="place-item"></core-icon>
<div flex>Stadium</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="android" class="place-item"></core-icon>
<div flex>Zoo</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
</section>
<section id="section3" flex relative>
<core-label center horizontal layout>
<core-icon icon="send" class="place-item"></core-icon>
<div flex>Airport</div>
<paper-checkbox checked class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="swap-vert" class="place-item"></core-icon>
<div flex>Bus Station</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="room" class="place-item"></core-icon>
<div flex>Car Rental</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="swap-vert" class="place-item"></core-icon>
<div flex>Subway Station</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
<core-label center horizontal layout>
<core-icon icon="account-balance" class="place-item"></core-icon>
<div flex>Train Station</div>
<paper-checkbox class="blue paper-checkbox" for></paper-checkbox>
</core-label>
</section>
</core-animated-pages>
</section>
</core-header-panel>
<div id="div" tool>
<span>Timeshare Finder</span>
<core-icon icon="search" id="core_icon_search"></core-icon>
<paper-input label="Look for a Timeshare..." id="paper_input" class="custom"></paper-input>
</div>
<div id="map-canvas">
<google-map latitude="37.80911474274096" longitude="-122.33770918457031" disabledefaultui signedin id="google_map"></google-map>
</div>
</core-scaffold>
</template>
<script>
Polymer({
selected: 0
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment