Created
August 29, 2014 12:31
-
-
Save sirdlx/ee86d52d696d53f61454 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-item/core-item.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-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<polymer-element name="my-element"> | |
<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(255, 38, 0); | |
} | |
#appDrawerPanel { | |
right: 0px; | |
bottom: 0px; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#appAnimatedPages { | |
overflow-y: scroll; | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
background-color: rgb(235, 235, 235); | |
} | |
#core_card { | |
width: 300px; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
height: 400px; | |
margin: 10px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_card1 { | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
margin: 10px; | |
height: 320px; | |
padding: 10px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar1 { | |
right: 0px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#mainContentSection section { | |
padding: 10px; | |
position: relative; | |
} | |
#userIconSection { | |
height: 80px; | |
width: 80px; | |
} | |
#userSection { | |
padding: 10px; | |
} | |
#coverImageSection { | |
height: 300px; | |
} | |
#menuSection { | |
background-color: rgb(235, 235, 235); | |
} | |
#userIconSection2 { | |
width: 50px; | |
height: 50px; | |
} | |
#itemInfoSection { | |
width: 100%; | |
} | |
#itemRating { | |
width: 80px; | |
height: 80px; | |
} | |
#itemViews { | |
width: 80px; | |
height: 80px; | |
} | |
#itemShare { | |
width: 80px; | |
height: 80px; | |
} | |
#itemFollow { | |
width: 80px; | |
height: 80px; | |
} | |
#itemTitle { | |
width: 100%; | |
} | |
</style> | |
<core-header-panel mode="waterfall" id="core_header_panel"> | |
<core-toolbar id="core_toolbar"> | |
<core-icon-button icon="menu" id="appDrawerPanelToggle" class="appDrawerPanelToggle"></core-icon-button> | |
<core-icon-button icon="menu" id="core_icon_button1" theme="core-light-theme"></core-icon-button> | |
<div id="appTitle" class="appTitle">App Title</div> | |
</core-toolbar> | |
<section id="section" vertical layout center> | |
<core-drawer-panel transition drawerwidth="290px" selected="main" id="appDrawerPanel" touch-action class="appDrawerPanel"> | |
<section id="menuSection" drawer> | |
<core-menu selected="0" selectedindex="0" id="core_menu"> | |
<core-submenu opened active id="core_submenu" icon="settings" label="Topics"> | |
<core-item id="core_item" label="Topic 1" horizontal center layout active></core-item> | |
<core-item id="core_item1" label="Topic 2" horizontal center layout></core-item> | |
</core-submenu> | |
<core-submenu id="core_submenu1" icon="settings" label="Favorites"> | |
<core-item id="core_item2" label="Favorite 1" horizontal center layout></core-item> | |
<core-item id="core_item3" label="Favorite 2" horizontal center layout></core-item> | |
<core-item id="core_item4" label="Favorite 3" horizontal center layout></core-item> | |
</core-submenu> | |
</core-menu> | |
</section> | |
<section id="mainContentSection" main> | |
<core-animated-pages selected="1" lastselected="0" selectedindex="1" notap id="appAnimatedPages" class="appAnimatedPages"> | |
<section id="homeSection" wrap horizontal layout> | |
<core-card id="core_card" vertical layout> | |
<section id="coverImageSection" vertical layout></section> | |
<paper-item label="Item" id="itemTitleItem" center horizontal layout center-justified></paper-item> | |
<section id="userSection" horizontal layout center> | |
<section id="userIconSection"></section> | |
<section id="userInfoSection" flex class="userInfoSection" vertical layout start> | |
<paper-item label="userNameItem" id="userNameItem" center horizontal layout class="userNameItem" one flex></paper-item> | |
<paper-item label="userInfoItem" id="userInfoItem" center horizontal layout class="userInfoItem"></paper-item> | |
</section> | |
</section> | |
</core-card> | |
<core-card id="core_card" vertical layout> | |
<section id="coverImageSection" vertical layout></section> | |
<paper-item label="Item" id="itemTitleItem" center horizontal layout center-justified></paper-item> | |
<section id="userSection" horizontal layout center> | |
<section id="userIconSection"></section> | |
<section id="userInfoSection" flex class="userInfoSection" vertical layout start> | |
<paper-item label="userNameItem" id="userNameItem" center horizontal layout class="userNameItem"></paper-item> | |
<paper-item label="userInfoItem" id="userInfoItem" center horizontal layout class="userInfoItem"></paper-item> | |
</section> | |
</section> | |
</core-card> | |
<core-card id="core_card" vertical layout> | |
<section id="coverImageSection" vertical layout></section> | |
<paper-item label="Item" id="itemTitleItem" center horizontal layout center-justified></paper-item> | |
<section id="userSection" horizontal layout center> | |
<section id="userIconSection"></section> | |
<section id="userInfoSection" flex class="userInfoSection" vertical layout start> | |
<paper-item label="userNameItem" id="userNameItem" center horizontal layout class="userNameItem"></paper-item> | |
<paper-item label="userInfoItem" id="userInfoItem" center horizontal layout class="userInfoItem"></paper-item> | |
</section> | |
</section> | |
</core-card> | |
<core-card id="core_card" vertical layout> | |
<section id="coverImageSection" vertical layout></section> | |
<paper-item label="Item" id="itemTitleItem" center horizontal layout center-justified></paper-item> | |
<section id="userSection" horizontal layout center> | |
<section id="userIconSection"></section> | |
<section id="userInfoSection" flex class="userInfoSection" vertical layout start> | |
<paper-item label="userNameItem" id="userNameItem" center horizontal layout class="userNameItem"></paper-item> | |
<paper-item label="userInfoItem" id="userInfoItem" center horizontal layout class="userInfoItem"></paper-item> | |
</section> | |
</section> | |
</core-card> | |
</section> | |
<section id="singlePostSection" active> | |
<core-card id="core_card1" layout vertical center> | |
<core-item id="itemTitle" label="Item" horizontal center layout class="itemTitle"></core-item> | |
<section id="itemInfoSection" horizontal layout center class="itemInfoSection"> | |
<section id="userIconSection" class="userIconSection" start start-justified></section> | |
<section id="itemUserInfoSection" class="itemUserInfoSection" start vertical layout start-justified> | |
<paper-item label="userNameItem" id="userNameItem" center horizontal layout class="userNameItem"></paper-item> | |
<paper-item label="userInfoItem" id="userInfoItem" center horizontal layout class="userInfoItem"></paper-item> | |
</section> | |
<section id="itemViews" vertical layout end end-justified></section> | |
<section id="itemRating" vertical layout end end-justified></section> | |
<section id="itemShare" vertical layout end end-justified></section> | |
<section id="itemFollow" vertical layout end end-justified></section> | |
</section> | |
</core-card> | |
</section> | |
<core-ajax url="https://api.parse.com/1/classes/product" handleas="json" auto params='{"alt":"json", "q":"chrome"}' method="GET" headers='{"X-Parse-Application-Id": "0HZ51nsjPWZhkoC3OoMwRhQc7UGcFqbBA557Vtrn"},{"X-Parse-REST-API-Key":"ys5j7vcNwuSpzmGiqazqfeiiwBiYvp0VoOOxiZbB"}' id="core_ajax" hidden></core-ajax> | |
</core-animated-pages> | |
</section> | |
</core-drawer-panel> | |
</section> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer('my-element', { | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment