welcome.erb 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <section class="section plans welcome">
  2. <%== flash_display centered: true %>
  3. <% if request.path == '/welcome' %>
  4. <h2>Welcome to Neocities, <%= current_site.username %>!</h2>
  5. <% elsif parent_site && parent_site.supporter? %>
  6. <div class="txt-Center" style="margin-bottom: 20px"><img src="/img/heartcat.png"></div>
  7. <h2>Thank you for being a supporter!</h2>
  8. <% else %>
  9. <h2>Become a Supporter</h2>
  10. <% end %>
  11. <h3 class="subtitle">
  12. <strong>Neocities will never put advertising on your site.</strong> Instead, Neocities is powered by <strong>you</strong>.<br>
  13. <% if !parent_site || !parent_site.supporter? %>
  14. Help us bring back creative web sites by becoming a supporter.
  15. <% end %>
  16. </h3>
  17. <% if signed_in? && !parent_site.supporter? %>
  18. <div class="plan-overview">
  19. <div class="col free">
  20. <div class="row content">
  21. <div class="col col-100">
  22. <h3>Free</h3>
  23. <div class="plan-image free">
  24. </div>
  25. <div class="price">$<%= Site::PLAN_FEATURES[:free][:price] %></div>
  26. <ul class="main-features">
  27. <li><strong><%= Site::PLAN_FEATURES[:free][:space].to_f('GB').round %> GB</strong> <span data-original-title="How much space you have to upload files. The more space, the bigger your site can be.">storage</span></li>
  28. <li><strong><%= Site::PLAN_FEATURES[:free][:bandwidth].to_f('GB').round %> GB</strong> <span data-original-title="How much traffic can visit your site. This is a soft limit. Temporary surges are fine, we won't take your site down automatically, and we're very flexible.">bandwidth</span></li>
  29. </ul>
  30. </div>
  31. </div>
  32. <div class="row content txt-Center">
  33. <% if request.path == '/welcome' %>
  34. <a href="/tutorial" class="btn-Action">Continue</a>
  35. <% end %>
  36. </div>
  37. </div>
  38. <div class="col supporter">
  39. <div class="row content">
  40. <div class="col col-33">
  41. <h3>Supporter</h3>
  42. <div class="plan-image supporter">
  43. </div>
  44. <% if parent_site && parent_site.legacy_supporter? %>
  45. <div class="price">$<%= Site::LEGACY_SUPPORTER_PRICES[parent_site[:plan_type].to_sym] %></div>
  46. <div class="interval">per month, billed annually</div>
  47. <% else %>
  48. <div class="price">$<%= Site::PLAN_FEATURES[:supporter][:price] %></div>
  49. <div class="interval">per month</div>
  50. <% end %>
  51. <ul class="main-features">
  52. <li><strong><%= Site::PLAN_FEATURES[:supporter][:space].to_f('GB').round %> GB</strong> <span data-original-title="Much more disk space, so you can build a much bigger web site.">storage</span></li>
  53. <li><strong><%= Site::PLAN_FEATURES[:supporter][:bandwidth].to_f('GB').round %> GB</strong> <span data-original-title="Tons of bandwidth to serve your site, powered by our global Anycast CDN. This is a soft limit. Temporary surges are fine, we won't take your site down automatically, and we're very flexible.">bandwidth</span></li>
  54. </ul>
  55. <ul>
  56. <li><span data-original-title="Free plans don't allow uploading music, video, compressed, and executable files to prevent piracy. With a supporter plan, you can upload anything you want.">No File Upload Type Restrictions</span></li>
  57. <li><span data-original-title="Make as many sites as you want, and control them with one account.">Multiple Site Creation</span></li>
  58. <li><span data-original-title="Add your domain name (yoursite.com) to your site!">Custom Domain Support</span></li>
  59. <li><span data-original-title="With WebDAV, you can mount your Neocities site to your computer as a hard drive, making it easy to update with your favorite HTML editor.">Remote Filesystem Support</span></li>
  60. </ul>
  61. </div>
  62. <div class="col col-66">
  63. <p class="instructions">Just enter your card info, and you're done:</p>
  64. <div>
  65. <div id="plan_error" class="alert alert-block alert-error" style="display:none"></div>
  66. <form id="upgradeForm" method="POST" action="/supporter/update">
  67. <%== csrf_token_input_html %>
  68. <input type="hidden" value="supporter" name="plan_type">
  69. <input id="stripe_token" name="stripe_token" type="hidden" value="<%= params[:stripe_token] %>">
  70. <div class="credit-card-input no-js" id="skeuocard" style="margin-left: auto; margin-right: auto; margin-bottom: 20px">
  71. <p class="no-support-warning"></p>
  72. <label for="cc_type">Card Type</label>
  73. <select name="cc_type">
  74. <option value="">...</option>
  75. <option value="visa">Visa</option>
  76. <option value="discover">Discover</option>
  77. <option value="mastercard">MasterCard</option>
  78. <option value="maestro">Maestro</option>
  79. <option value="jcb">JCB</option>
  80. <option value="unionpay">China UnionPay</option>
  81. <option value="amex">American Express</option>
  82. <option value="dinersclubintl">Diners Club</option>
  83. </select>
  84. <label for="cc_number">Card Number</label>
  85. <input type="text" name="cc_number" id="cc_number" placeholder="XXXX XXXX XXXX XXXX" maxlength="19" size="19">
  86. <label for="cc_exp_month">Expiration Month</label>
  87. <input type="text" name="cc_exp_month" id="cc_exp_month" placeholder="00">
  88. <label for="cc_exp_year">Expiration Year</label>
  89. <input type="text" name="cc_exp_year" id="cc_exp_year" placeholder="00">
  90. <label for="cc_name">Cardholder's Name</label>
  91. <input type="text" name="cc_name" id="cc_name" placeholder="John Doe">
  92. <label for="cc_cvc">Card Validation Code</label>
  93. <input type="text" name="cc_cvc" id="cc_cvc" placeholder="123" maxlength="3" size="3">
  94. </div>
  95. </form>
  96. </div>
  97. </div>
  98. </div>
  99. <div class="row content txt-Center">
  100. <a id="upgradeLink" href="/" class="btn-Action" onclick="$('#upgradeForm').submit(); return false">
  101. Upgrade for $<%= Site::PLAN_FEATURES[:supporter][:price] %>/mo
  102. </a>
  103. or pay with <a href="/supporter/paypal">PayPal</a> or <a href="/supporter/bitcoin">Bitcoin</a>
  104. </div>
  105. </div>
  106. </div>
  107. <% end %>
  108. <div class="row">
  109. <div class="col col-50">
  110. <h3><i class="fa fa-users"></i> Powered by supporters like you</h3>
  111. <p>Neocities will never sell your personal data or embed advertising on member sites. Instead, we are funded directly by our community through supporter plans and donations. This allows us to base all our decisions on making the best possible web building experience for you, rather than on appeasing ad companies.</p>
  112. </div>
  113. <div class="col col-50">
  114. <h3><i class="fa fa-lock"></i> Risk-free and secure</h3>
  115. <p>You can downgrade back to a free account at any time. If you do, we’ll refund the amount you didn’t use. We use Stripe and PayPal for payments, and never store your credit card information directly.</p>
  116. </div>
  117. </div>
  118. <div class="row">
  119. <div class="col col-50">
  120. <h3><i class="fa fa-globe"></i> Making a better web</h3>
  121. <p>
  122. When you become a supporter, you are directly helping our quest to bring back the creative, independent web. With your help, we'll be able to continue improving the site and adding more features.
  123. </p>
  124. </div>
  125. <div class="col col-50">
  126. <h3><i class="fa fa-university"></i> Giving back</h3>
  127. <p>
  128. Neocities is used by educators all over the world to teach thousands of students how to program and create web sites.
  129. </p>
  130. </div>
  131. </div>
  132. </section>
  133. <section class="section" style="padding-top: 0;">
  134. <%== erb :'supporter/_compare', layout: false %>
  135. </section>
  136. <%== erb :'supporter/_signupcode', layout: false %>
  137. <script>
  138. $(function() {
  139. $('ul span').tooltip({
  140. placement: 'top'
  141. })
  142. })
  143. </script>
  144. <script>
  145. card = new Skeuocard($('#skeuocard'))
  146. </script>