Created
July 15, 2014 15:31
-
-
Save plaflamme/9ff0495d701a4dab89c8 to your computer and use it in GitHub Desktop.
designer
This file contains hidden or 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-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.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"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<polymer-element name="hop-container"> | |
<template> | |
<style> | |
:host { | |
box-sizing: border-box; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(0, 0, 0); | |
} | |
#content { | |
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230)); | |
} | |
#logo { | |
height: 34px; | |
} | |
#core_drawer_panel { | |
right: 0px; | |
bottom: 0px; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#section { | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
background-color: rgb(250, 250, 250); | |
} | |
#section1 { | |
height: 100%; | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
#core_animated_pages { | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
background-color: rgb(238, 238, 238); | |
} | |
#what_good .header { | |
color: rgb(255, 255, 255); | |
background-color: rgb(146, 205, 114); | |
} | |
#what_good .title { | |
height: 250px; | |
font-size: 105px; | |
} | |
#what_good .subtitle { | |
font-size: 26px; | |
padding: 10px; | |
background-color: rgb(130, 184, 101); | |
} | |
#when_go .header { | |
color: rgb(255, 255, 255); | |
font-size: 38px; | |
background-color: rgb(111, 190, 231); | |
} | |
.body { | |
height: 1000px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_scroll_header_panel { | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
<core-header-panel mode="standard" id="core_header_panel"> | |
<core-toolbar id="core_toolbar"> | |
<img id="logo" src="http://www.hopper.com/assets/[email protected]"></img> | |
</core-toolbar> | |
<section id="content"> | |
<core-drawer-panel selected="main" id="core_drawer_panel"> | |
<section id="section" drawer> | |
<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> | |
</section> | |
<section id="section1" main> | |
<core-animated-pages transitions="hero-transition cross-fade" selectedindex="0" notap id="pages"> | |
<section id="what_good" active> | |
<div id="div" class="header" layout vertical hero-id="hero" hero> | |
<div id="div1" class="title" flex center vertical layout center-justified>385$</div> | |
<div id="div2" class="subtitle"> | |
Over the next six months | |
</div> | |
</div> | |
<div id="div3" flex class="body" cross-fade content> | |
This is the content | |
</div> | |
</section> | |
<section id="when_go" active> | |
<div class="header" layout vertical hero-id="hero" hero> | |
<div class="title" flex center vertical layout center-justified>When to go</div> | |
</div> | |
<div flex class="body" cross-fade> | |
</div> | |
</section> | |
<section id="airlines" active> | |
<core-scroll-header-panel keepcondensedheader condensedheaderheight="33.333333333333336" id="core_scroll_header_panel"> | |
<core-toolbar>Header</core-toolbar> | |
<div class="body" content>Content</div> | |
</core-scroll-header-panel> | |
</section> | |
</core-animated-pages> | |
</section> | |
</core-drawer-panel> | |
</section> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer('hop-container', { | |
change: function () { | |
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