2015-12-26 13:33:16 +01:00
|
|
|
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
|
|
|
|
<link rel="import" href="../../bower_components/neon-animation/neon-shared-element-animatable-behavior.html">
|
|
|
|
<link rel="import" href="../../bower_components/neon-animation/neon-animations.html">
|
|
|
|
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
|
2015-12-28 23:01:57 +01:00
|
|
|
<link rel="import" href="../../bower_components/paper-tooltip/paper-tooltip.html">
|
|
|
|
<link rel="import" href="../../styles/icons.html">
|
2015-12-30 05:24:45 +01:00
|
|
|
<link rel="import" href="../invitation-link/invitation-link.html">
|
|
|
|
|
2015-12-26 13:33:16 +01:00
|
|
|
<dom-module id="x-cards">
|
|
|
|
<template>
|
|
|
|
<style>
|
|
|
|
:host {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#placeholder {
|
|
|
|
opacity: 0;
|
|
|
|
background-color: grey;
|
|
|
|
@apply(--layout-fit);
|
|
|
|
}
|
|
|
|
|
|
|
|
paper-icon-button {
|
2015-12-28 23:01:57 +01:00
|
|
|
color: #52524F;
|
|
|
|
}
|
|
|
|
|
|
|
|
paper-icon-button:hover {
|
|
|
|
color: #4285f4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.share {
|
2015-12-26 13:33:16 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 16px;
|
|
|
|
right: 16px;
|
2015-12-28 23:01:57 +01:00
|
|
|
z-index: 10;
|
2015-12-26 13:33:16 +01:00
|
|
|
}
|
|
|
|
|
2015-12-28 23:01:57 +01:00
|
|
|
.share a {
|
|
|
|
color: #52524F;
|
|
|
|
text-decoration: none;
|
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.share a:hover,
|
|
|
|
#btn:hover {
|
2015-12-26 13:33:16 +01:00
|
|
|
color: #4285f4;
|
|
|
|
}
|
2015-12-28 23:01:57 +01:00
|
|
|
|
|
|
|
@media all and (max-height: 640px) {
|
|
|
|
.github {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2015-12-26 13:33:16 +01:00
|
|
|
</style>
|
|
|
|
<div id="placeholder"></div>
|
|
|
|
<div id="container">
|
2015-12-28 23:01:57 +01:00
|
|
|
<div class="share">
|
2015-12-30 05:24:45 +01:00
|
|
|
<a href="https://twitter.com/snapdrop42" target="_blank">
|
2015-12-28 23:01:57 +01:00
|
|
|
<iron-icon icon="chat:twitter"></iron-icon>
|
|
|
|
<paper-tooltip for="" position="bottom" offset="14">
|
|
|
|
Contact us on Twitter!
|
|
|
|
</paper-tooltip>
|
|
|
|
</a>
|
|
|
|
<a href="https://www.facebook.com/snapdrop.net/" target="_blank">
|
|
|
|
<iron-icon icon="chat:facebook"></iron-icon>
|
|
|
|
<paper-tooltip for="" position="bottom" offset="14">
|
|
|
|
Like us on Facebook!
|
|
|
|
</paper-tooltip>
|
|
|
|
</a>
|
|
|
|
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FDAHZJH3228D6" target="_blank">
|
|
|
|
<iron-icon icon="chat:local-cafe"></iron-icon>
|
|
|
|
<paper-tooltip for="" position="bottom" offset="14">
|
|
|
|
You like Snapdrop?
|
|
|
|
<br> Buy me a cup of coffee!
|
|
|
|
</paper-tooltip>
|
|
|
|
</a>
|
|
|
|
<a href="https://github.com/capira12/snapdrop" target="_blank" class="github">
|
|
|
|
<iron-icon icon="chat:github" ></iron-icon>
|
|
|
|
<paper-tooltip for="" position="bottom" offset="14">
|
|
|
|
Get involved!
|
|
|
|
</paper-tooltip>
|
|
|
|
</a>
|
|
|
|
<paper-icon-button id="btn" icon="chat:info-outline" on-tap="_switch"></paper-icon-button>
|
|
|
|
</div>
|
2015-12-26 13:33:16 +01:00
|
|
|
<content select="div"></content>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</dom-module>
|
|
|
|
<script>
|
|
|
|
(function() {
|
|
|
|
Polymer({
|
|
|
|
is: 'x-cards',
|
|
|
|
behaviors: [
|
|
|
|
Polymer.NeonSharedElementAnimatableBehavior
|
|
|
|
],
|
|
|
|
properties: {
|
|
|
|
animationConfig: {
|
|
|
|
value: function() {
|
|
|
|
return {
|
|
|
|
'entry': [{
|
|
|
|
name: 'reverse-ripple-animation',
|
|
|
|
id: 'reverse-ripple',
|
|
|
|
toPage: this
|
|
|
|
}],
|
|
|
|
'exit': [{
|
|
|
|
name: 'fade-out-animation',
|
|
|
|
node: this.$.container,
|
|
|
|
timing: {
|
|
|
|
delay: 150,
|
|
|
|
duration: 0
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
name: 'ripple-animation',
|
|
|
|
id: 'ripple',
|
|
|
|
fromPage: this
|
|
|
|
}]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sharedElements: {
|
|
|
|
value: function() {
|
|
|
|
return {
|
|
|
|
'ripple': this.$.btn,
|
|
|
|
'reverse-ripple': this.$.btn
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
_switch: function() {
|
|
|
|
document.querySelector('#pages').select(1);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
</script>
|