PairDrop/app/elements/x-cards/about-page.html

230 lines
7.5 KiB
HTML
Raw Normal View History

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-styles/paper-styles-classes.html">
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">
<dom-module id="about-page">
2015-12-26 13:33:16 +01:00
<template>
<style>
:host {
display: block;
overflow: hidden;
color: white;
2015-12-30 22:06:04 +01:00
z-index: 3;
--paper-tooltip: {
font-size: 14px;
background-color: white;
color: #4285f4;
}
--paper-tooltip-opacity:0.95;
2015-12-26 13:33:16 +01:00
}
#placeholder {
opacity: 0;
background-color: #4285f4;
@apply(--layout-fit);
}
#container {
@apply(--layout-fit);
@apply(--layout-vertical);
@apply(--layout-center-center);
background-color: #4285f4;
padding: 64px 32px 64px 32px;
box-sizing: border-box;
}
2015-12-28 23:01:40 +01:00
.logo {
2015-12-30 22:06:04 +01:00
width: 96px;
height: 96px;
2015-12-26 13:33:16 +01:00
}
.slogan {
2015-12-26 13:33:16 +01:00
text-align: center;
}
2015-12-28 23:01:40 +01:00
.paper-font-headline {
margin-bottom: 8px;
font-size: 32px;
}
2015-12-26 13:33:16 +01:00
a {
text-decoration: none;
color: white;
}
.center {
@apply(--layout-vertical);
@apply(--layout-center-center);
}
#footer {
position: absolute;
left: 50%;
margin-left: -160px;
width: 320px;
bottom: 24px;
text-align: center;
}
2015-12-28 23:01:40 +01:00
2015-12-31 01:45:15 +01:00
@media all and (max-height: 370px) {
#footer {
width: 320px;
bottom: 8px;
}
}
2015-12-28 23:01:40 +01:00
a {
display: inline-block;
text-align: center;
}
.donate-icon {
padding-top: 32px;
width: 32px;
height: 32px;
}
.paper-font-subhead {
font-size: 20px;
}
a.paper-font-subhead {
padding-top: 32px;
}
.share {
position: absolute;
top: 16px;
right: 16px;
z-index: 10;
}
2015-12-30 22:06:04 +01:00
.social {
margin: 16px;
2015-12-31 18:31:20 +01:00
width: 228px;
2015-12-30 22:06:04 +01:00
}
#btn,
2015-12-30 22:06:04 +01:00
.social a {
color: white;
}
2015-12-30 22:06:04 +01:00
.social a {
text-decoration: none;
2015-12-30 22:07:18 +01:00
padding: 2px 9px 0 9px;
}
.share a:hover,
#btn:hover {
color: white;
}
2015-12-26 13:33:16 +01:00
</style>
<div id="placeholder"></div>
<div id="container">
<div class="share">
<paper-icon-button id="btn" icon="chat:close" on-tap="_switch"></paper-icon-button>
</div>
2015-12-26 13:33:16 +01:00
<div class="center">
2015-12-28 23:01:40 +01:00
<iron-icon icon="chat:wifi-tethering" class="logo"></iron-icon>
2015-12-26 13:33:16 +01:00
<div class="paper-font-headline">Snapdrop</div>
<div class="slogan">The easiest way to transfer files across devices.</div>
2015-12-30 22:06:04 +01:00
<div class="social">
<a href="https://twitter.com/snapdrop42" target="_blank">
<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">
Contact us on Facebook!
</paper-tooltip>
</a>
2016-01-02 02:26:30 +01:00
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R9C5E42UYEQCN" target="_blank">
2015-12-30 22:06:04 +01:00
<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>
2015-12-30 22:07:18 +01:00
<a href="https://github.com/capira12/snapdrop#frequently-asked-questions" target="_blank" class="github">
2015-12-30 22:06:04 +01:00
<iron-icon icon="chat:help-outline"></iron-icon>
<paper-tooltip for="" position="bottom" offset="14">
2015-12-30 22:07:18 +01:00
Frequently Asked Questions
2015-12-30 22:06:04 +01:00
</paper-tooltip>
</a>
</div>
2015-12-26 13:33:16 +01:00
</div>
<span id="footer">Built with &#9829; by <a href="https://twitter.com/capira42" target="_blank">Robin Linus</a></span>
2015-12-26 13:33:16 +01:00
</div>
</template>
</dom-module>
<script>
(function() {
Polymer({
is: 'about-page',
2015-12-26 13:33:16 +01:00
behaviors: [
Polymer.NeonSharedElementAnimatableBehavior
],
properties: {
animationConfig: {
value: function() {
return {
'entry': [{
name: 'ripple-animation',
id: 'ripple',
toPage: this
}, {
name: 'fade-out-animation',
node: this.$.placeholder,
timing: {
delay: 250
}
}, {
name: 'fade-in-animation',
node: this.$.container,
timing: {
delay: 50
}
}],
'exit': [{
name: 'opaque-animation',
node: this.$.placeholder
}, {
name: 'fade-out-animation',
node: this.$.container,
timing: {
duration: 0
}
}, {
name: 'reverse-ripple-animation',
id: 'reverse-ripple',
fromPage: this
}]
};
}
},
sharedElements: {
value: function() {
return {
'ripple': this.$.placeholder,
'reverse-ripple': this.$.placeholder
};
}
}
},
_switch: function() {
document.querySelector('#pages').select(0);
}
});
})();
</script>