about-page.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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. width: 228px;
  91. }
  92. #btn,
  93. .social a {
  94. color: white;
  95. }
  96. .social a {
  97. text-decoration: none;
  98. padding: 2px 9px 0 9px;
  99. }
  100. .share a:hover,
  101. #btn:hover {
  102. color: white;
  103. }
  104. </style>
  105. <div id="placeholder"></div>
  106. <div id="container">
  107. <div class="share">
  108. <paper-icon-button id="btn" icon="chat:close" on-tap="_switch"></paper-icon-button>
  109. </div>
  110. <div class="center">
  111. <iron-icon icon="chat:wifi-tethering" class="logo"></iron-icon>
  112. <div class="paper-font-headline">Snapdrop</div>
  113. <div class="slogan">The easiest way to transfer files across devices.</div>
  114. <div class="social">
  115. <a href="https://twitter.com/snapdrop42" target="_blank">
  116. <iron-icon icon="chat:twitter"></iron-icon>
  117. <paper-tooltip for="" position="bottom" offset="14">
  118. Contact us on Twitter!
  119. </paper-tooltip>
  120. </a>
  121. <a href="https://www.facebook.com/snapdrop.net/" target="_blank">
  122. <iron-icon icon="chat:facebook"></iron-icon>
  123. <paper-tooltip for="" position="bottom" offset="14">
  124. Contact us on Facebook!
  125. </paper-tooltip>
  126. </a>
  127. <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R9C5E42UYEQCN" target="_blank">
  128. <iron-icon icon="chat:local-cafe"></iron-icon>
  129. <paper-tooltip for="" position="bottom" offset="14">
  130. You like Snapdrop?
  131. <br> Buy me a cup of coffee!
  132. </paper-tooltip>
  133. </a>
  134. <a href="https://github.com/capira12/snapdrop" target="_blank" class="github">
  135. <iron-icon icon="chat:github"></iron-icon>
  136. <paper-tooltip for="" position="bottom" offset="14">
  137. Get involved!
  138. </paper-tooltip>
  139. </a>
  140. <a href="https://github.com/capira12/snapdrop#frequently-asked-questions" target="_blank" class="github">
  141. <iron-icon icon="chat:help-outline"></iron-icon>
  142. <paper-tooltip for="" position="bottom" offset="14">
  143. Frequently Asked Questions
  144. </paper-tooltip>
  145. </a>
  146. </div>
  147. </div>
  148. <span id="footer">Built with &#9829; by <a href="https://twitter.com/capira42" target="_blank">Robin Linus</a></span>
  149. </div>
  150. </template>
  151. </dom-module>
  152. <script>
  153. (function() {
  154. Polymer({
  155. is: 'about-page',
  156. behaviors: [
  157. Polymer.NeonSharedElementAnimatableBehavior
  158. ],
  159. properties: {
  160. animationConfig: {
  161. value: function() {
  162. return {
  163. 'entry': [{
  164. name: 'ripple-animation',
  165. id: 'ripple',
  166. toPage: this
  167. }, {
  168. name: 'fade-out-animation',
  169. node: this.$.placeholder,
  170. timing: {
  171. delay: 250
  172. }
  173. }, {
  174. name: 'fade-in-animation',
  175. node: this.$.container,
  176. timing: {
  177. delay: 50
  178. }
  179. }],
  180. 'exit': [{
  181. name: 'opaque-animation',
  182. node: this.$.placeholder
  183. }, {
  184. name: 'fade-out-animation',
  185. node: this.$.container,
  186. timing: {
  187. duration: 0
  188. }
  189. }, {
  190. name: 'reverse-ripple-animation',
  191. id: 'reverse-ripple',
  192. fromPage: this
  193. }]
  194. };
  195. }
  196. },
  197. sharedElements: {
  198. value: function() {
  199. return {
  200. 'ripple': this.$.placeholder,
  201. 'reverse-ripple': this.$.placeholder
  202. };
  203. }
  204. }
  205. },
  206. _switch: function() {
  207. document.querySelector('#pages').select(0);
  208. }
  209. });
  210. })();
  211. </script>