Created
July 15, 2014 01:28
-
-
Save plaflamme/cd1b288828bf8fb246b4 to your computer and use it in GitHub Desktop.
designer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.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"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#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(79, 125, 201); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#section { | |
width: 100%; | |
height: 100%; | |
border: 5px solid rgb(204, 204, 204); | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
} | |
#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: 100%; | |
height: 100%; | |
overflow: hidden; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
background-color: rgb(238, 238, 238); | |
} | |
#core_pages { | |
width: 400px; | |
height: 400px; | |
border: 1px solid silver; | |
} | |
#core_header_panel1 { | |
width: 300px; | |
height: 400px; | |
} | |
#core_toolbar1 { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#section1 { | |
height: 1000px; | |
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230)); | |
} | |
#div3 { | |
background-color: rgb(146, 205, 114); | |
} | |
#when { | |
background-color: rgb(111, 190, 231); | |
} | |
.tall-header { | |
height: 250px; | |
color: rgb(255, 255, 255); | |
} | |
.small-header { | |
height: 75px; | |
color: rgb(255, 255, 255); | |
} | |
.header-title { | |
font-size: 105px; | |
} | |
.small-header-title { | |
font-size: 38px; | |
} | |
.header-subtitle { | |
font-size: 26px; | |
padding: 10px; | |
background-color: rgb(130, 184, 101); | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"></core-toolbar> | |
<core-menu selected="0" selectedindex="0" id="core_menu" on-core-select="{{ change }}"> | |
<paper-item label="What is a Good Price" icon="label-outline" id="what_good_price" center horizontal layout active> | |
<core-icon icon="chevron-right"></core-icon> | |
</paper-item> | |
<paper-item label="When to Go" icon="today" id="when_go" center horizontal layout> | |
<core-icon icon="chevron-right"></core-icon> | |
</paper-item> | |
<paper-item label="Airlines" icon="cloud" id="airlines" center horizontal layout> | |
<core-icon icon="chevron-right"></core-icon> | |
</paper-item> | |
<paper-item label="Ways to Save" icon="shopping-cart" id="ways_save" center horizontal layout> | |
<core-icon icon="chevron-right"></core-icon> | |
</paper-item> | |
<paper-item label="Airports" icon="place" id="airlines" center horizontal layout> | |
<core-icon icon="chevron-right"></core-icon> | |
</paper-item> | |
</core-menu> | |
</core-header-panel> | |
<div id="div" tool>Hopper</div> | |
<core-animated-pages transitions="hero-transition cross-fade" selectedindex="0" notap id="pages"> | |
<section id="good_price" active> | |
<div id="div3" class="tall-header" layout vertical hero-id="hero" hero> | |
<div class="header-title" flex center vertical layout center-justified>385$</div> | |
<div class="header-subtitle"> | |
Over the next six months | |
</div> | |
</div> | |
<div flex class="body"></div> | |
</section> | |
<section id="when_to_go"> | |
<div id="when" class="small-header" layout vertical hero-id="hero" hero> | |
<div class="small-header-title" flex center vertical layout center-justified>Today!</div> | |
</div> | |
<div flex class="body"></div> | |
</section> | |
<section id="section2"> | |
</section> | |
</core-animated-pages> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer('my-element', { | |
change: function () { | |
console.log("changing"); | |
this.$.pages.selected = this.$.core_menu.selected | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment