some copy editing. switch to 10MB for accounts

This commit is contained in:
Kyle Drake 2013-06-20 21:21:02 -07:00
parent 712371101e
commit daa87157c8
4 changed files with 30 additions and 18 deletions

2
app.rb
View file

@ -204,7 +204,7 @@ post '/site_files/save/:filename' do |filename|
tmpfile = Tempfile.new 'neocities_saving_file'
if (tmpfile.size + current_site.total_space) > Site::MAX_SPACE
halt 'File is too large, it has NOT been saved. Please make a local copy and then try to reduce the size.'
halt 'File is too large to fit in your space, it has NOT been saved. Please make a local copy and then try to reduce the size.'
end
tmpfile.write request.body.read

View file

@ -2,7 +2,7 @@ class Site < Sequel::Model
# We might need to include fonts in here..
VALID_MIME_TYPES = ['text/plain', 'text/html', 'text/css', 'application/javascript', 'image/png', 'image/jpeg', 'image/gif', 'image/svg+xml']
VALID_EXTENSIONS = %w{ html htm txt text css js jpg jpeg png gif svg md markdown }
MAX_SPACE = 5242880 # 5MB
MAX_SPACE = (5242880*2) # 10MB
MINIMUM_PASSWORD_LENGTH = 5
USERNAME_REGEX = /[^\w-]/i
many_to_one :server

View file

@ -1,17 +1,23 @@
<center><blockquote class="twitter-tweet"><p>I want to make another Geocities. Free web hosting, static HTML only, 10MB limit, anonymous, uncensored.</p>&mdash; Kyle Drake (@kyledrake) <a href="https://twitter.com/kyledrake/statuses/337706291801763841">May 23, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></center>
.row
.span12.text-center
h1 Help us keep the creative internet alive.
h1 Help me keep the creative internet alive.
.row
.span8.offset2
div style="font-size: 20pt; line-height: 30px; margin-top: 20px"
p: b Our mission is to bring back creativity and free expression to the world wide web, the things that made it great.
p We are tired of living in an online world where people are isolated from each other in gated communities, and are given generic templates which define what people are supposed to know about eachother. It's time we took back our personalities from these stale, lifeless entities and let our creativity flourish again.
p That's where NeoCities comes in. We want to provide the canvas to allow people to make any web site they want. Whether it be about something they're good at, something they love, or their own custom "Profile" where they can introduce themselves in a way that truly matters.
p It's a big vision, and we have a lot of work to do. But we can't do it without your help.
h3 My goal with NeoCities is to help bring back creativity and free expression to the world wide web, the things that made it great. I need your help.
.row
.span8.offset2
div style="font-size: 16pt; line-height: 30px; margin-top: 20px"
p I am tired of living in a world where people are isolated from each other in online gated communities, and are given generic templates which define what people are supposed to know about eachother. It's time we took back our personalities from these stale, lifeless entities and let our creativity flourish again.
p That's where NeoCities comes in. I want to provide the canvas for people to make any web site they want. Whether it be a web site about something they're good at, something they love, or their own custom "Profile" where they can introduce themselves in a way that actually matters to them, instead of some college frat boys.
p The technology has become affordable enough where we can provide this creative space without requiring a business plan that involves selling things to people. But it still costs money, especially since server demand is so expensive right now. And there are some possible surprise costs we haven't figured out yet (we have no idea what our bandwidth bills are going to look like). If we can get enough donations, we can keep this site running and never have to sell it to Yahoo <a href="http://ascii.textfiles.com/archives/1961" target="_blank">like what happened with GeoCities</a>.
p It's a big vision, and I have a lot of work to do. But I can't do it without your help.
p The technology has become affordable enough where we can provide this creative space without requiring a business plan that involves selling things to people. But it still costs money, especially since server demand is so expensive right now. And there are some possible surprise costs I haven't figured out yet (bandwidth bill estimates are difficult). <b>But if NeoCities can get enough donations, NeoCities can keep running!</b> And we'll never have to sell it to Yahoo <a href="http://ascii.textfiles.com/archives/1961" target="_blank">like what happened with GeoCities</a>.
p Our creativity is too important to be commercialized. Help keep this idea alive by donating! $100, $20, $5, a free round of beers at your pub, anything helps. Thank you.
p Our creativity is too important to be commercialized. Help keep this idea alive by donating! $100, $20, $5, a free round of beers at your pub, speaking invites to conferences, anything helps. Thank you.
.row
.span12.text-center
@ -30,4 +36,6 @@
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
h4 Thanks. You are awesome.
h2: a href="mailto:kyle@kyledrake.net" Contact Me Directly
h4 style="margin-top: 30px; margin-bottom: 30px" Thanks. You are awesome.

View file

@ -20,13 +20,17 @@
td Yes, you do. It's yours. We're just giving you a place to host it.
tr
td: b How much space do I get?
td 5 Megabytes. You can have HTML, text, and images. That's it.
td 10 Megabytes. You can have HTML, text, and images. That's it.
tr
td: b How are you paying for this?
td Hopefully with donations. If you feel this is a useful service, help us pay the bills to run it. <a href="/donate">Click here to contribute!</a>
div.text-center
h1: a href="/new" JOIN NOW
p or
h1: a href="/browse" BROWSE EXISTING SITES
h5 style="margin-top: 30px" Returning users: <a href="/signin">Sign In</a>
.row
.span6
h1: a href="/browse" BROWSE EXISTING SITES
h5 style="margin-top: 20px" Returning users: <a href="/signin">Sign In</a>
.span6
h1.pull-right: a href="/new" CREATE A WEB SITE
.row
.span12.text-center
h2: a href="/donate" HELP NEOCITIES PROSPER