about-page.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
  2. <link rel="import" href="../../bower_components/neon-animation/neon-shared-element-animatable-behavior.html">
  3. <link rel="import" href="../../bower_components/neon-animation/neon-animations.html">
  4. <link rel="import" href="../../bower_components/paper-styles/paper-styles-classes.html">
  5. <link rel="import" href="../../bower_components/iron-icon/iron-icon.html">
  6. <dom-module id="about-page">
  7. <template>
  8. <style>
  9. :host {
  10. display: block;
  11. overflow: hidden;
  12. color: white;
  13. z-index: 3;
  14. --paper-tooltip: {
  15. font-size: 14px;
  16. background-color: white;
  17. color: #4285f4;
  18. }
  19. --paper-tooltip-opacity:0.95;
  20. }
  21. #placeholder {
  22. opacity: 0;
  23. background-color: #4285f4;
  24. @apply(--layout-fit);
  25. }
  26. #container {
  27. @apply(--layout-fit);
  28. @apply(--layout-vertical);
  29. @apply(--layout-center-center);
  30. background-color: #4285f4;
  31. padding: 64px 32px 64px 32px;
  32. box-sizing: border-box;
  33. }
  34. .logo {
  35. width: 96px;
  36. height: 96px;
  37. }
  38. .slogan {
  39. text-align: center;
  40. }
  41. .paper-font-headline {
  42. margin-bottom: 8px;
  43. font-size: 32px;
  44. }
  45. a {
  46. text-decoration: none;
  47. color: white;
  48. }
  49. .center {
  50. @apply(--layout-vertical);
  51. @apply(--layout-center-center);
  52. }
  53. #footer {
  54. position: absolute;
  55. left: 50%;
  56. margin-left: -160px;
  57. width: 320px;
  58. bottom: 24px;
  59. text-align: center;
  60. }
  61. @media all and (max-height: 370px) {
  62. #footer {
  63. width: 320px;
  64. bottom: 8px;
  65. }
  66. }
  67. a {
  68. display: inline-block;
  69. text-align: center;
  70. }
  71. .donate-icon {
  72. padding-top: 32px;
  73. width: 32px;
  74. height: 32px;
  75. }
  76. .paper-font-subhead {
  77. font-size: 20px;
  78. }
  79. a.paper-font-subhead {
  80. padding-top: 32px;
  81. }
  82. .share {
  83. position: absolute;
  84. top: 16px;
  85. right: 16px;
  86. z-index: 10;
  87. }
  88. .social {
  89. margin: 16px;
  90. }
  91. #btn,
  92. .social a {
  93. color: white;
  94. }
  95. .social a {
  96. text-decoration: none;
  97. padding: 2px 9px 0 9px;
  98. }
  99. .share a:hover,
  100. #btn:hover {
  101. color: white;
  102. }
  103. </style>
  104. <div id="placeholder"></div>
  105. <div id="container">
  106. <div class="share">
  107. <paper-icon-button id="btn" icon="chat:close" on-tap="_switch"></paper-icon-button>
  108. </div>
  109. <div class="center">
  110. <iron-icon icon="chat:wifi-tethering" class="logo"></iron-icon>
  111. <div class="paper-font-headline">Snapdrop</div>
  112. <div class="slogan">The easiest way to transfer files across devices.</div>
  113. <div class="social">
  114. <a href="https://twitter.com/snapdrop42" target="_blank">
  115. <iron-icon icon="chat:twitter"></iron-icon>
  116. <paper-tooltip for="" position="bottom" offset="14">
  117. Contact us on Twitter!
  118. </paper-tooltip>
  119. </a>
  120. <a href="https://www.facebook.com/snapdrop.net/" target="_blank">
  121. <iron-icon icon="chat:facebook"></iron-icon>
  122. <paper-tooltip for="" position="bottom" offset="14">
  123. Contact us on Facebook!
  124. </paper-tooltip>
  125. </a>
  126. <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FDAHZJH3228D6" target="_blank">
  127. <iron-icon icon="chat:local-cafe"></iron-icon>
  128. <paper-tooltip for="" position="bottom" offset="14">
  129. You like Snapdrop?
  130. <br> Buy me a cup of coffee!
  131. </paper-tooltip>
  132. </a>
  133. <a href="https://github.com/capira12/snapdrop" target="_blank" class="github">
  134. <iron-icon icon="chat:github"></iron-icon>
  135. <paper-tooltip for="" position="bottom" offset="14">
  136. Get involved!
  137. </paper-tooltip>
  138. </a>
  139. <a href="https://github.com/capira12/snapdrop#frequently-asked-questions" target="_blank" class="github">
  140. <iron-icon icon="chat:help-outline"></iron-icon>
  141. <paper-tooltip for="" position="bottom" offset="14">
  142. Frequently Asked Questions
  143. </paper-tooltip>
  144. </a>
  145. </div>
  146. </div>
  147. <span id="footer">Built with &#9829; by <a href="https://twitter.com/capira42" target="_blank">Robin Linus</a></span>
  148. </div>
  149. </template>
  150. </dom-module>
  151. <script>
  152. (function() {
  153. Polymer({
  154. is: 'about-page',
  155. behaviors: [
  156. Polymer.NeonSharedElementAnimatableBehavior
  157. ],
  158. properties: {
  159. animationConfig: {
  160. value: function() {
  161. return {
  162. 'entry': [{
  163. name: 'ripple-animation',
  164. id: 'ripple',
  165. toPage: this
  166. }, {
  167. name: 'fade-out-animation',
  168. node: this.$.placeholder,
  169. timing: {
  170. delay: 250
  171. }
  172. }, {
  173. name: 'fade-in-animation',
  174. node: this.$.container,
  175. timing: {
  176. delay: 50
  177. }
  178. }],
  179. 'exit': [{
  180. name: 'opaque-animation',
  181. node: this.$.placeholder
  182. }, {
  183. name: 'fade-out-animation',
  184. node: this.$.container,
  185. timing: {
  186. duration: 0
  187. }
  188. }, {
  189. name: 'reverse-ripple-animation',
  190. id: 'reverse-ripple',
  191. fromPage: this
  192. }]
  193. };
  194. }
  195. },
  196. sharedElements: {
  197. value: function() {
  198. return {
  199. 'ripple': this.$.placeholder,
  200. 'reverse-ripple': this.$.placeholder
  201. };
  202. }
  203. }
  204. },
  205. _switch: function() {
  206. document.querySelector('#pages').select(0);
  207. }
  208. });
  209. })();
  210. </script>