diff --git a/app.rb b/app.rb index 75641e5b..5c5bd875 100644 --- a/app.rb +++ b/app.rb @@ -31,7 +31,7 @@ end get '/?' do dashboard_if_signed_in - erb :index + erb :index, layout: false end get '/browse' do @@ -43,7 +43,15 @@ get '/browse' do @page_count = site_dataset.page_count || 1 @sites = site_dataset.all - slim :browse + erb :browse +end + +get '/tutorials' do + erb :'tutorials' +end + +get '/donate' do + erb :'donate' end get '/blog' do @@ -130,7 +138,7 @@ get '/signout' do end get '/about' do - slim :'about' + erb :'about' end get '/site_files/new_page' do diff --git a/views/_header.erb b/views/_header.erb new file mode 100644 index 00000000..fffb0516 --- /dev/null +++ b/views/_header.erb @@ -0,0 +1,50 @@ +
+ + +

+ + + Neocities.org + +

+ +
\ No newline at end of file diff --git a/views/about.erb b/views/about.erb new file mode 100644 index 00000000..10d6538e --- /dev/null +++ b/views/about.erb @@ -0,0 +1,84 @@ +
+ +
+

I want to make another Geocities. Free web hosting, static HTML only, 10MB limit, anonymous, uncensored.

— Kyle Drake (@kyledrake) + May 23, 2013 +
+ + +
+

+ Help me keep the creative,
independent internet alive! +

+
+

My goal with NeoCities is to help bring back the creativity and free expression to the world wide web that made it great. I need your help.

+ +

+ I am tired of living in an online world where people are isolated from each other in + boring, spied-on gated communities, and are given generic templates which define what people are + supposed to know about each other. It's time we took back our personalities from these sterilized, lifeless, + monetized, monitored entities and let our creativity flourish again. +

+ +

+ That's where NeoCities comes in. I want to provide a 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, something they hate, or + their own custom "Profile" where they can introduce themselves in a way that actually matters to them. +

+

+ It's a big project (to make small sites), and I have a lot of work to do. + But I can't do it without your help. +

+

+ The technology has become affordable enough where we can provide this creative space without requiring a business + plan that involves selling people out to the marketing industry. But it still costs money, especially since server + demand is so high right now. And there are some possible surprise costs I haven't figured out yet (bandwidth estimates are difficult). + But if NeoCities can get enough donations, NeoCities can survive! + Together, we can prevent + what happened to GeoCities from happening again. +

+

+ 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 so we can spread the word, free server hosting, anything helps. Thank you! +

+
+
+
+

Contributors:

+ +
+
+ kyle drake +
+ Kyle Drake +
+
+ Victoria Wang +
+ Victoria Wang +
+
+ Scott O'Hara +
+ Scott O'Hara +
+
+ + + +
+ + +
\ No newline at end of file diff --git a/views/browse.erb b/views/browse.erb new file mode 100644 index 00000000..38ad4d37 --- /dev/null +++ b/views/browse.erb @@ -0,0 +1,6 @@ +
+ + Put browse code here + + +
\ No newline at end of file diff --git a/views/donate.erb b/views/donate.erb new file mode 100644 index 00000000..f2803e41 --- /dev/null +++ b/views/donate.erb @@ -0,0 +1,79 @@ +
+
+

+ Help me keep the creative,
independent internet alive! +

+
+

My goal with NeoCities is to help bring back the creativity and free expression to the world wide web that made it great. I need your help.

+ +

+ I am tired of living in an online world where people are isolated from each other in + boring, spied-on gated communities, and are given generic templates which define what people are + supposed to know about each other. It's time we took back our personalities from these sterilized, lifeless, + monetized, monitored entities and let our creativity flourish again. +

+ +

+ That's where NeoCities comes in. I want to provide a 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, something they hate, or + their own custom "Profile" where they can introduce themselves in a way that actually matters to them. +

+

+ It's a big project (to make small sites), and I have a lot of work to do. + But I can't do it without your help. +

+

+ The technology has become affordable enough where we can provide this creative space without requiring a business + plan that involves selling people out to the marketing industry. But it still costs money, especially since server + demand is so high right now. And there are some possible surprise costs I haven't figured out yet (bandwidth estimates are difficult). + But if NeoCities can get enough donations, NeoCities can survive! + Together, we can prevent + what happened to GeoCities from happening again. +

+

+ 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 + (I put on a pretty good show) + so I can spread the word, free server hosting, anything helps. Thank you! +

+
+
+
+

Contributors:

+ +
+
+ kyle drake +
+ Kyle Drake +
+
+ Victoria Wang +
+ Victoria Wang +
+
+ Scott O'Hara +
+ Scott O'Hara +
+
+ + + +
+ + +
\ No newline at end of file diff --git a/views/layout.erb b/views/layout.erb new file mode 100644 index 00000000..60edba0f --- /dev/null +++ b/views/layout.erb @@ -0,0 +1,102 @@ + + + + + + + + Neocities.org: About Neocities.org + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + <%= erb :'_header', layout: false %> + +
+ <%= yield %> +
+ + + +
+ + + + + + + + + + diff --git a/views/layout.slim b/views/layout.slim index 1186d5a6..10cec18c 100644 --- a/views/layout.slim +++ b/views/layout.slim @@ -11,35 +11,22 @@ html meta property="og:description" content="NeoCities is the new Geocities. Create your own free home page, and do whatever you want with it." meta name="csrf-token" content="#{csrf_token}" script src="/js/jquery.min.js" - + link href="/assets/css/neo.min.css" rel="stylesheet" type="text/css" media="all" + script src="/assets/scripts/app.min.js" + css: + body { + background-color: #f6f0e6; + } + body a id="top" + == erb :'_header', layout: false + .container - .row - .span12 - .navbar - .navbar-inner - a.brand href="/" NeoCities - ul.nav - li: a href="/browse" Browse - li: a href="/blog" Blog - li: a href="/about" About - - - - ul.nav.pull-right - - if !signed_in? - li: a href="/signin" Sign in - - - if signed_in? - .dropdown.pull-right - a.dropdown-toggle.navbar-text data-toggle="dropdown" href="#": strong style="color: #7AB800" #{current_site.username} - ul.dropdown-menu role="menu" aria-labelledby="dLabel" - li: a href="/dashboard" Dashboard - li: a href="/settings" Settings - li: a href="/signout" Signout - + + + - flash.keys.each do |key| div class="alert alert-#{key}" button.close type="button" data-dismiss="alert" × diff --git a/views/tutorials.erb b/views/tutorials.erb new file mode 100644 index 00000000..e8f36ef2 --- /dev/null +++ b/views/tutorials.erb @@ -0,0 +1,30 @@ +
+ +

+ Learn to Code! +

+ +

+ We are currently building out our library of tutorials. +

+ +

+ Until then, please check out the following links to get you started: +

+ + + +
\ No newline at end of file