Last active
August 29, 2015 14:22
-
-
Save olayinkasf/04ad942dfba268b10f36 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; | |
} | |
#span { | |
font-size: 24px; | |
text-transform: uppercase; | |
} | |
#div, #core_icon_button { | |
cursor: pointer; | |
} | |
</style> | |
<core-header-panel mode="waterfall" id="core_header_panel"> | |
<core-toolbar id="core_toolbar"> | |
<core-icon src="{{ smt.icon.main }}" id="core_icon_button" on-click="{{ goHome }}"></core-icon> | |
<div id="div" on-click="{{ goHome }}"> | |
<span id="span">{{ smt.name }}</span> | |
</div> | |
</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" | |
} | |
}, | |
goHome: function (event, detail, sender) { | |
window.location.assign(window.location.href); | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment