about-page.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. }
  15. #placeholder {
  16. opacity: 0;
  17. background-color: #4285f4;
  18. @apply(--layout-fit);
  19. }
  20. /* paper-icon-button {
  21. position: absolute;
  22. top: 16px;
  23. right: 16px;
  24. z-index: 2;
  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: 80px;
  36. height: 80px;
  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. a {
  62. display: inline-block;
  63. text-align: center;
  64. }
  65. .donate-icon {
  66. padding-top: 32px;
  67. width: 32px;
  68. height: 32px;
  69. }
  70. .paper-font-subhead {
  71. font-size: 20px;
  72. }
  73. a.paper-font-subhead {
  74. padding-top: 32px;
  75. }
  76. .share {
  77. position: absolute;
  78. top: 16px;
  79. right: 16px;
  80. z-index: 10;
  81. }
  82. #btn,
  83. .share a {
  84. color: #52524F;
  85. }
  86. .share a {
  87. text-decoration: none;
  88. padding-left: 8px;
  89. padding-right: 8px;
  90. }
  91. .share a:hover,
  92. #btn:hover {
  93. color: white;
  94. }
  95. </style>
  96. <div id="placeholder"></div>
  97. <div id="container">
  98. <div class="share">
  99. <a href="https://twitter.com/snapdrop42" target="_blank">
  100. <iron-icon icon="chat:twitter"></iron-icon>
  101. <paper-tooltip for="" position="bottom" offset="14">
  102. Contact us on Twitter!
  103. </paper-tooltip>
  104. </a>
  105. <a href="https://www.facebook.com/snapdrop.net/" target="_blank">
  106. <iron-icon icon="chat:facebook"></iron-icon>
  107. <paper-tooltip for="" position="bottom" offset="14">
  108. Contact us on Facebook!
  109. </paper-tooltip>
  110. </a>
  111. <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FDAHZJH3228D6" target="_blank">
  112. <iron-icon icon="chat:local-cafe"></iron-icon>
  113. <paper-tooltip for="" position="bottom" offset="14">
  114. You like Snapdrop?
  115. <br> Buy me a cup of coffee!
  116. </paper-tooltip>
  117. </a>
  118. <a href="https://github.com/capira12/snapdrop" target="_blank" class="github">
  119. <iron-icon icon="chat:github"></iron-icon>
  120. <paper-tooltip for="" position="bottom" offset="14">
  121. Get involved!
  122. </paper-tooltip>
  123. </a>
  124. <paper-icon-button id="btn" icon="chat:close" on-tap="_switch"></paper-icon-button>
  125. </div>
  126. <div class="center">
  127. <iron-icon icon="chat:wifi-tethering" class="logo"></iron-icon>
  128. <div class="paper-font-headline">Snapdrop</div>
  129. <div class="slogan">The easiest way to transfer files across devices.</div>
  130. <a class="paper-font-subhead" href="https://github.com/capira12/snapdrop/blob/master/faq.md" target="_blank">Frequently Asked Questions</a>
  131. </div>
  132. <span id="footer">Built with &#9829; by <a href="https://twitter.com/capira42" target="_blank">Robin Linus</a></span>
  133. </div>
  134. </template>
  135. </dom-module>
  136. <script>
  137. (function() {
  138. Polymer({
  139. is: 'about-page',
  140. behaviors: [
  141. Polymer.NeonSharedElementAnimatableBehavior
  142. ],
  143. properties: {
  144. animationConfig: {
  145. value: function() {
  146. return {
  147. 'entry': [{
  148. name: 'ripple-animation',
  149. id: 'ripple',
  150. toPage: this
  151. }, {
  152. name: 'fade-out-animation',
  153. node: this.$.placeholder,
  154. timing: {
  155. delay: 250
  156. }
  157. }, {
  158. name: 'fade-in-animation',
  159. node: this.$.container,
  160. timing: {
  161. delay: 50
  162. }
  163. }],
  164. 'exit': [{
  165. name: 'opaque-animation',
  166. node: this.$.placeholder
  167. }, {
  168. name: 'fade-out-animation',
  169. node: this.$.container,
  170. timing: {
  171. duration: 0
  172. }
  173. }, {
  174. name: 'reverse-ripple-animation',
  175. id: 'reverse-ripple',
  176. fromPage: this
  177. }]
  178. };
  179. }
  180. },
  181. sharedElements: {
  182. value: function() {
  183. return {
  184. 'ripple': this.$.placeholder,
  185. 'reverse-ripple': this.$.placeholder
  186. };
  187. }
  188. }
  189. },
  190. _switch: function() {
  191. document.querySelector('#pages').select(0);
  192. }
  193. });
  194. })();
  195. </script>