about-page.html 7.6 KB

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