Last active
August 29, 2015 14:22
-
-
Save olayinkasf/177a6e3def0c93e5c6f1 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-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-icons/core-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="home-page" attributes="smt"> | |
<template> | |
<style> | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar { | |
color: rgb(155, 49, 41); | |
padding: 10px; | |
height: auto; | |
background-color: rgb(238, 243, 250); | |
} | |
#section { | |
height: 1000px; | |
background: linear-gradient(rgb(238, 243, 250), rgb(173, 216, 230)); | |
} | |
#core_icon_button { | |
width: 48px; | |
height: 48px; | |
margin: auto; | |
vertical-align: middle; | |
display: inline-block; | |
} | |
#span { | |
font-size: 24px; | |
text-transform: uppercase; | |
vertical-align: middle; | |
display: inline-block; | |
} | |
#a { | |
color: inherit; | |
text-decoration: none; | |
padding: 5px; | |
} | |
</style> | |
<core-header-panel mode="waterfall" id="core_header_panel"> | |
<core-toolbar id="core_toolbar"> | |
<a id="a" href ="{{ location }}"> | |
<core-icon src="{{ smt.icon.main }}" id="core_icon_button"></core-icon> | |
<span id="span">{{ smt.name }}</span> | |
</a> | |
<div id="div" flex></div> | |
<core-icon-button icon="search" id="core_icon_button1"></core-icon-button> | |
<core-icon-button icon="more-vert" id="core_icon_button2"></core-icon-button> | |
</core-toolbar> | |
<section id="section"></section> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer({ | |
ready: function (){ | |
this.smt = { | |
"icon" : { | |
"main": "https://lh3.googleusercontent.com/-ShvAO7K8BNI/VW5MksdXRiI/AAAAAAAAACY/CvUXJb4Sx4k/s512-no/ringtone512.png" | |
}, | |
"name": "SmartTone" | |
}; | |
this.location = window.location.href; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment