Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Adding page views.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nordstrom committed Jan 24, 2012
1 parent 9ca31d9 commit 37f61dc
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 76 deletions.
26 changes: 25 additions & 1 deletion application.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,5 +5,29 @@
end end


get '/' do get '/' do
slim :home slim :about
end

get '/contributors' do
slim :contributors
end

get '/credit' do
slim :credit
end

get '/suggestions' do
slim :suggestions
end

get '/award' do
slim :award
end

get '/donate' do
slim :donate
end

get '/donors' do
slim :donors
end end
Binary file added views/.donate.slim.swp
Binary file not shown.
5 changes: 5 additions & 0 deletions views/about.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
section#about
div
h1 Open-source deserves recognition
p Many developers spend their much deserved spare time doing open-source software development. Yet, most of these generous individuals do not get the recognition they deserve. Mankind Organization is here to change the world of open-source by awarding contributors and promoting further development of wonderful software projects around the world.

22 changes: 22 additions & 0 deletions views/award.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,22 @@
section#award
div
h1 Honorable Developer Award
p At the end of each quarter, a well-deserving project or contributor will receive our award along with the funds that have been donated during the past three months. The PayPal account will be completely emptied, every cent given away to promote and encourage further open-source development.
p Who wins the award will be decided through a one-month poll where you can share your opinion on who you believe both deserves and needs it the most.
p We are constantly looking for nominees for out charitable award. Feel free to suggest a kind and deserving individual or a fascinating project.

h2 Donate
p#donate I would like to donate...
a[href="#"] $5
a[href="#"] $10
a[href="#"] $20
a[href="#"] $50
a[href="#"] $100

h2 Nominate
form
label[for="nominator"] I,
input[type="text" id="nominator" name="nominator"]
label[for="nominee"] nominate...
input[type="text" id="nominee" name="nominee"]
input[type="submit" value="Nominate"]
7 changes: 7 additions & 0 deletions views/contributors.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
section#contributors
div
h1 Notable contributors
ul
li: a[href="ryanbigg.com"] Ryan Bigg
li: a[href="spaceghost.github.com"] Johnneylee Rollins

8 changes: 8 additions & 0 deletions views/credit.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
section#credit
div
h1 Give credit
form
label I'd like to give credit to...
input[type="text" id="receiver" name="receiver"]
input[type="submit" value="Give"]

10 changes: 10 additions & 0 deletions views/donate.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,10 @@
section#donors
div
h1 Donate
p I would like to donate...
a[href="#"] $5
a[href="#"] $10
a[href="#"] $20
a[href="#"] $50
a[href="#"] $100
p ...of my hard-earned cash for a compassionate cause.
7 changes: 7 additions & 0 deletions views/donors.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
section#donors
div
h1 Donors
h2 Thanks to these people, we are changing the world...
ul
li: a[href="mrnordstrom.com"] Daniel Nordstrom
li: a[href="ryanbigg.com"] Ryan Bigg
1 change: 0 additions & 1 deletion views/home.slim

This file was deleted.

83 changes: 9 additions & 74 deletions views/layout.slim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,77 +9,12 @@ html


nav.ribbon nav.ribbon
ul.ribbon-content ul.ribbon-content
li: a[href="#about"] About li: a[href="/"] About
li: a[href="#about"] Contributors li: a[href="/contributors"] Contributors
li: a[href="#about"] Credit li: a[href="/credit"] Credit
li: a[href="#about"] Suggestions li: a[href="/suggestions"] Suggestions
li: a[href="#about"] Award li: a[href="/award"] Award
li: a[href="#about"] Donate li: a[href="/donate"] Donate
li: a[href="#about"] Donors li: a[href="/donors"] Donors


section#about == yield
div
h1 Open-source deserves recognition
p Many developers spend their much deserved spare time doing open-source software development. Yet, most of these generous individuals do not get the recognition they deserve. Mankind Organization is here to change the world of open-source by awarding contributors and promoting further development of wonderful software projects around the world.

section#contributors
div
h1 Notable contributors
ul
li: a[href="ryanbigg.com"] Ryan Bigg
li: a[href="spaceghost.github.com"] Johnneylee Rollins

section#projects
div
h1 Notable projects
ul
li: a[href="github.com/spree/spree"] Spree Commerce
li: a[href="github.com/radar/forem"] Forem

section#credit
div
h1 Give credit
form
label I'd like to give credit to...
input[type="text" id="receiver" name="receiver"]
input[type="submit" value="Give"]

section#suggestions
div
h1 Open-source ideas
p The open-source community is full of people looking for projects to develop. Is there something you would like to see developed?
form
label I suggest...
input[type="text" placeholder="A Ruby gem to help treat caffeine addiction." id="suggestion" name="suggestion"]
input[type="submit" value="Suggest"]

section#award
div
h1 Honorable Developer Award
p At the end of each quarter, a well-deserving project or contributor will receive our award along with the funds that have been donated during the past three months. The PayPal account will be completely emptied, every cent given away to promote and encourage further open-source development.
p Who wins the award will be decided through a one-month poll where you can share your opinion on who you believe both deserves and needs it the most.
p We are constantly looking for nominees for out charitable award. Feel free to suggest a kind and deserving individual or a fascinating project.

h2 Donate
p#donate I would like to donate...
a[href="#"] $5
a[href="#"] $10
a[href="#"] $20
a[href="#"] $50
a[href="#"] $100

h2 Nominate
form
label[for="nominator"] I,
input[type="text" id="nominator" name="nominator"]
label[for="nominee"] nominate...
input[type="text" id="nominee" name="nominee"]
input[type="submit" value="Nominate"]

section#donors
div
h1 Donors
h2 Thanks to these people, we are changing the world...
ul
li: a[href="mrnordstrom.com"] Daniel Nordstrom
li: a[href="ryanbigg.com"] Ryan Bigg
6 changes: 6 additions & 0 deletions views/projects.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,6 @@
section#projects
div
h1 Notable projects
ul
li: a[href="github.com/spree/spree"] Spree Commerce
li: a[href="github.com/radar/forem"] Forem
8 changes: 8 additions & 0 deletions views/suggestions.slim
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
section#suggestions
div
h1 Open-source ideas
p The open-source community is full of people looking for projects to develop. Is there something you would like to see developed?
form
label I suggest...
input[type="text" placeholder="A Ruby gem to help treat caffeine addiction." id="suggestion" name="suggestion"]
input[type="submit" value="Suggest"]

0 comments on commit 37f61dc

Please sign in to comment.