Skip to content

Instantly share code, notes, and snippets.

@dmitriev-alexey
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save dmitriev-alexey/913fa38bfc48ef69377f to your computer and use it in GitHub Desktop.

Select an option

Save dmitriev-alexey/913fa38bfc48ef69377f 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">
<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">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#notification_alert {
left: 1660px;
top: 600px;
}
#input {
padding: 15px;
left: 1600px;
top: 670px;
}
#core_icon_button {
left: 1760px;
top: 750px;
}
#core_ajax {
left: 1670px;
top: 580px;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu {
font-size: 16px;
}
#core_card {
position: absolute;
width: 100%;
height: 100%;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 510px;
top: 320px;
background-color: rgb(255, 255, 255);
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#section {
width: 100%;
height: 100%;
border: 5px solid rgb(204, 204, 204);
}
#core_animated_pages {
width: 100%;
height: 100%;
overflow: hidden;
left: 0px;
top: 0px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#core_card1 {
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_card2 {
position: absolute;
width: 710px;
height: 410px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 289px;
top: 103px;
background-color: rgb(255, 255, 255);
}
#core_card3 {
position: absolute;
width: 810px;
height: 470px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 89px;
top: 63px;
background-color: rgb(255, 255, 255);
}
#core_animated_pages1 {
width: 420px;
height: 582px;
overflow: hidden;
left: 320px;
top: 90px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#core_card4 {
position: absolute;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: -606px;
top: -144px;
background-color: rgb(255, 255, 255);
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar"></core-toolbar>
<core-menu selected="About me" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
<core-item id="core_item_about_me" on-tap={{showPageAboutMe}} icon="settings" label="About me" horizontal center layout active></core-item>
<core-item id="core_item_portfolio" on-tap={{showPagePortfolio}} icon="settings" label="Portfolio" horizontal center layout></core-item>
<core-item id="core_item_resume" on-tap={{showPageResume}} icon="settings" label="Resume" horizontal center layout></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>Title</div>
<core-card id="core_card" layout vertical>
<section id="section" layout vertical>
<paper-tabs noink nobar selected="0" selectedindex="0" id="paper_tabs" horizontal layout center>
<paper-tab id="paper_tab_prof_profile" inline flex center-center horizontal layout active>Professional profile</paper-tab>
<paper-tab id="paper_tab_work_exp" inline flex center-center horizontal layout>Work experience</paper-tab>
<paper-tab id="paper_tab_education" inline flex center-center horizontal layout>Education</paper-tab>
</paper-tabs>
<section id="section1" flex relative>
<core-animated-pages selected="{{ $.paper_tabs.selected }}" lastselected="0" selectedindex="0" notap id="core_animated_pages">
<section id="section2" layout horizontal center center-justified active>
<core-card id="core_card1" layout vertical></core-card>
</section>
<section id="section3">
<core-card id="core_card2" layout vertical></core-card>
</section>
<section id="section4">
<core-card id="core_card3" layout vertical></core-card>
</section>
</core-animated-pages>
</section>
</section>
</core-card>
</core-scaffold>
</template>
<script>
Polymer({
showPageAboutMe: function() {
},
showPagePortfolio: function() {
},
showPageResume: function() {
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment