Skip to content

Instantly share code, notes, and snippets.

@rafaelcorreiapoli
Last active August 29, 2015 14:24
Show Gist options
  • Save rafaelcorreiapoli/14539b9ab9991b94d75c to your computer and use it in GitHub Desktop.
Save rafaelcorreiapoli/14539b9ab9991b94d75c 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="../core-menu/core-submenu.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#div1 {
background-image: url(http://covermyfb.com/media/covers/P6RyX5juHvRGTkwg.jpg);
background-size: cover;
}
core-scaffold::shadow core-toolbar {
color: white;
background: rgb(30, 184, 175);
}
core-scaffold::shadow core-header-panel {
color: white;
background: rgb(255, 255, 255);
}
core-toolbar::shadow #core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#brand_logo img {
width: 100%;
height: auto;
}
#core_header_panel {
position: relative;
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(25, 153, 146);
}
#core_menu {
font-size: 16px;
}
#core_field {
left: 18px;
top: 10px;
position: absolute;
}
#core_field1 {
left: 18px;
top: 10px;
position: absolute;
}
#google_map_search {
left: 350px;
top: 140px;
position: absolute;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
opacity: 0.6;
top: 150px;
height: 50px;
position: absolute;
width: 100%;
background-color: rgb(0, 0, 0);
}
#div1 {
height: 200px;
}
#paper_tab1 {
position: relative;
}
#paper_tab2 {
opacity: 1;
}
#core_item {
left: 10px;
top: 280px;
position: absolute;
}
#core_item1 {
left: 10px;
top: 170px;
position: absolute;
}
#img {
height: 100px;
width: 100px;
position: relative;
top: 0px;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex center center-justified>
<core-toolbar id="core_toolbar">
</core-toolbar>
<core-menu selected="Roadmap" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
<div id="avatar_picture">
<core-item id="core_item1" on-tap="{{ showSatellite }}" icon="settings" label="Satellite" horizontal center layout></core-item>
<core-item id="core_item" on-tap="{{ showRoad }}" icon="settings" label="Roadmap" horizontal center layout active></core-item>
</core-menu>
</core-header-panel>
<div id="div1" one flex>
<paper-tabs selected="1" selectedindex="1" id="paper_tabs" horizontal layout one flex center>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout>SOCIAL</paper-tab>
<paper-tab id="paper_tab2" inline flex center-center horizontal layout active>INVITED</paper-tab>
</paper-tabs>
</div>
</core-scaffold>
</template>
<script>
Polymer({
showRoad: function (){
this.$.google_map.mapType = 'roadmap'
},
showSatellite: function () {
this.$.google_map.mapType = 'satellite'
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment