Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

first working site

  • Loading branch information...
commit 4c77f6d215efd32fa36630bb741c79170f49263e 1 parent 7c9ec41
@schacon schacon authored
View
3  Gemfile
@@ -1,10 +1,13 @@
source "http://rubygems.org"
gem "sinatra"
+gem "sinatra_auth_github"
+
gem "dm-core"
gem "dm-migrations"
gem "dm-validations"
gem "dm-timestamps"
+
gem "tinder"
group :production do
View
33 Gemfile.lock
@@ -28,34 +28,44 @@ GEM
do_sqlite3 (0.10.6)
data_objects (= 0.10.6)
eventmachine (0.12.10)
- faraday (0.7.4)
- addressable (~> 2.2.6)
+ faraday (0.6.1)
+ addressable (~> 2.2.4)
multipart-post (~> 1.1.0)
rack (>= 1.1.0, < 2)
- faraday_middleware (0.7.0)
- faraday (~> 0.7.3)
+ faraday_middleware (0.6.5)
+ faraday (~> 0.6.0)
hashie (1.1.0)
http_parser.rb (0.5.2)
+ json (1.6.1)
mime-types (1.16)
multi_json (1.0.3)
multipart-post (1.1.3)
+ oauth2 (0.4.1)
+ faraday (~> 0.6.1)
+ multi_json (>= 0.0.5)
pg (0.11.0)
- rack (1.3.2)
+ rack (1.3.3)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
shotgun (0.9)
rack (>= 1.0)
simple_oauth (0.1.5)
sinatra (1.2.6)
rack (~> 1.1)
tilt (>= 1.2.2, < 2.0)
+ sinatra_auth_github (0.1.4)
+ rest-client (~> 1.6.1)
+ sinatra (~> 1.0)
+ warden-github (~> 0.1.1)
sqlite3 (1.3.4)
sqlite3-ruby (1.3.3)
sqlite3 (>= 1.3.3)
tilt (1.3.3)
tinder (1.7.0)
- activesupport (>= 2.3, < 4)
+ activesupport (< 4, >= 2.3)
eventmachine (~> 0.12)
- faraday (>= 0.6, < 0.8)
- faraday_middleware (>= 0.6, < 0.8)
+ faraday (< 0.8, >= 0.6)
+ faraday_middleware (< 0.8, >= 0.6)
hashie (~> 1.0)
mime-types (~> 1.16)
multi_json (~> 1.0)
@@ -65,6 +75,12 @@ GEM
eventmachine (>= 0.12.8)
http_parser.rb (~> 0.5.1)
simple_oauth (~> 0.1.4)
+ warden (1.0.5)
+ rack (>= 1.0)
+ warden-github (0.1.1)
+ json (~> 1.5)
+ oauth2 (~> 0.4.1)
+ warden (~> 1.0.4)
PLATFORMS
ruby
@@ -79,5 +95,6 @@ DEPENDENCIES
pg
shotgun
sinatra
+ sinatra_auth_github
sqlite3-ruby
tinder
View
158 dodgeball.rb
@@ -1,5 +1,4 @@
require 'sinatra/base'
-require 'sinatra_auth_github'
require 'dm-core'
require 'dm-migrations'
@@ -15,18 +14,19 @@ class Team
has n, :sponsors
property :id, Serial
- property :name, String
- property :company, String
- property :charity, String
+ property :name, String, :required => true, :message => "Cmon, you need a team name"
+ property :company, String, :required => true, :message => "Needs a company name"
+ property :charity, String, :required => true, :message => "You gotta play for a charity, my friend"
property :charity_url, String
property :github, String
property :twitter, String
property :image, String
- property :donation, Integer
+ property :donation, Integer, :default => 3000
property :sponsored, Integer
- property :valid, Boolean
+ property :cool, Boolean, :default => false
+ property :pledge, Boolean, :default => false, :required => true, :message => "You need to pledge to donate, baby"
property :owner, String
- property :email, String
+ property :email, String, :required => true, :message => "We need an email address to set up the donation"
property :player_1, String
property :player_2, String
property :player_3, String
@@ -36,6 +36,19 @@ class Team
property :player_7, String
property :player_8, String
property :updated_at, DateTime
+
+ def players
+ [player_1, player_2, player_3, player_4, player_5, player_6, player_7, player_8].uniq.reject { |a| a == '' }
+ end
+
+ def team_image(size = 100)
+ if (!image || image == '')
+ img = "https://a248.e.akamai.net/assets.github.com/images/gravatars/gravatar-140.png"
+ else
+ img = image
+ end
+ "<img height=\"#{size}\" width=\"#{size}\" src=\"#{img}\"/>"
+ end
end
class Sponsor
@@ -52,19 +65,49 @@ class Sponsor
class Dodgeball < Sinatra::Base
enable :sessions
set :session_secret, "8c23f5ecdef9c54b81244e5426727279"
- set :github_options, { :scopes => '' }
- register Sinatra::Auth::Github
+ def get_data
+ @teams = Team.all(:cool => true)
+ @pot = 0
+ @teams.each do |team|
+ @pot += team.donation
+ end
+ end
- def authgroup
- @user = github_user
- github_organization_authenticate!("github")
+ def fill_team(team, params)
+ team.name = params['team-name']
+ team.company = params['company-name']
+ team.charity = params['charity-name']
+ team.charity_url = params['charity-url']
+ team.twitter = params['company-twitter']
+ team.email = params['contact-email']
+ team.image = params['team-image']
+ team.player_1 = params['player-1']
+ team.player_2 = params['player-2']
+ team.player_3 = params['player-3']
+ team.player_4 = params['player-4']
+ team.player_5 = params['player-5']
+ team.player_6 = params['player-6']
+ team.player_7 = params['player-7']
+ team.player_8 = params['player-8']
end
- def get_data
- @teams = Team.all(:valid => true)
- @pot = 3001
+ helpers do
+
+ def protected!
+ unless authorized?
+ response['WWW-Authenticate'] = %(Basic realm="Restricted Area")
+ throw(:halt, [401, "Not authorized\n"])
+ end
+ end
+
+ def authorized?
+ @auth ||= Rack::Auth::Basic::Request.new(request.env)
+ @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == ['admin', ENV['DODGEWORD']]
+ end
+
end
+
get '/' do
get_data
@@ -72,44 +115,67 @@ def get_data
erb :index
end
+ get '/thankyou' do
+ get_data
+ erb :thankyou
+ end
+
+ get '/admin' do
+ protected!
+ @new_teams = Team.all(:cool => false)
+ @cool_teams = Team.all(:cool => true)
+ erb :admin
+ end
+
+ get '/edit/:id' do
+ protected!
+ @team = Team.first(:id => params[:id].to_i)
+ erb :edit
+ end
+
+ get '/verify/:id' do
+ protected!
+ @team = Team.first(:id => params[:id].to_i)
+ @team.cool = true
+ @team.save
+ redirect '/admin'
+ end
+
+ get '/unverify/:id' do
+ protected!
+ @team = Team.first(:id => params[:id].to_i)
+ @team.cool = false
+ @team.save
+ redirect '/admin'
+ end
+
+ get '/delete/:id' do
+ protected!
+ @team = Team.first(:id => params[:id].to_i)
+ @team.destroy
+ redirect '/admin'
+ end
+
+ post '/save' do
+ protected!
+ @team = Team.first(:id => params[:teamid].to_i)
+ fill_team(@team, params)
+ if @team.save
+ redirect '/admin'
+ else
+ erb :edit
+ end
+ end
+
post '/new' do
@team = Team.new
- @team.name = params['team-name']
- @team.company = params['company-name']
- @team.charity = params['charity-name']
- @team.charity_url = params['charity-url']
- @team.twitter = params['company-twitter']
- @team.email = params['contact-email']
- @team.image = params['team-image']
- @team.player_1 = params['player-1']
- @team.player_2 = params['player-2']
- @team.player_3 = params['player-3']
- @team.player_4 = params['player-4']
- @team.player_5 = params['player-5']
- @team.player_6 = params['player-6']
- @team.player_7 = params['player-7']
- @team.player_8 = params['player-8']
+ fill_team(@team, params)
if @team.save
- redirect '/'
+ redirect '/thankyou'
else
get_data
erb :index
end
end
- get '/auth' do
- authenticate!
- redirect '/'
- end
-
- get '/logout' do
- logout!
- redirect '/'
- end
-
- get '/admin' do
- authgroup
- erb :admin
- end
-
end
View
20 public/css/style.css
@@ -346,6 +346,13 @@ div.section div#signup input {
color: #666;
}
+div.section .error {
+ padding: 10px;
+ font: normal 14px/14px 'ArchitectsDaughterRegular', Georgia, Times, serif;
+ line-height: 28px;
+ color: #f66;
+}
+
div.section div#signup label {
font-size: 11px;
color: #333;
@@ -442,4 +449,15 @@ div#challenge h3 {
font: normal 158px/120px BebasNeueRegular, Helvetica, Arial, serif;
margin: 20px 0 0;
color: #000;
-}
+}
+
+.req {
+ color: #f66;
+ font-weight: bold;
+}
+
+.instructions {
+ font-size: 3em;
+ line-height: 1em;
+ color: #444;
+}
View
48 views/admin.erb
@@ -0,0 +1,48 @@
+<% if @new_teams.size > 0 %>
+ <div class="section hr">
+ <h1>New Teams</h1>
+ <table width="100%">
+ <% @new_teams.each do |team| %>
+ <tr>
+ <td>
+ <a href="/edit/<%= team.id %>">edit</a> |
+ <a href="/verify/<%= team.id %>">verify</a>
+ </td>
+ <td><%= team.name %></td>
+ <td><%= team.company %></td>
+ <td><a href="<%= team.charity_url %>"><%= team.charity %></a></td>
+ <td><%= team.email %></td>
+ <td><%= team.twitter %></td>
+ <td><%= team.players.join(', ') %></td>
+ <td><%= team.team_image(30) %></td>
+ <td>
+ <a href="/delete/<%= team.id %>">delete</a>
+ </td>
+ </tr>
+ <% end %>
+ </table>
+ </div>
+<% end %>
+
+<% if @cool_teams.size > 0 %>
+<div class="section hr">
+ <h1>Verified Teams</h1>
+ <table width="100%">
+ <% @cool_teams.each do |team| %>
+ <tr>
+ <td>
+ <a href="/edit/<%= team.id %>">edit</a>
+ <a href="/unverify/<%= team.id %>">unverify</a>
+ </td>
+ <td><%= team.name %></td>
+ <td><%= team.company %></td>
+ <td><a href="<%= team.charity_url %>"><%= team.charity %></a></td>
+ <td><%= team.email %></td>
+ <td><%= team.twitter %></td>
+ <td><%= team.players.join(', ') %></td>
+ <td><%= team.team_image(30) %></td>
+ </tr>
+ <% end %>
+ </table>
+</div>
+<% end %>
View
9 views/edit.erb
@@ -0,0 +1,9 @@
+<div id="teams" class="section">
+ <h3 class="section-title">Teams</h3>
+ <div class="section-content">
+
+ <% @page = "/save" %>
+ <%= erb :form %>
+
+ </div>
+</div><!-- #teams -->
View
111 views/form.erb
@@ -0,0 +1,111 @@
+<div id="signup-start">
+<% if @team.errors.size > 0 %>
+ <div class="error">
+ <% @team.errors.each do |err| %>
+ <%= err %><br/>
+ <% end %>
+ </div>
+<% end %>
+</div>
+
+<div id="signup">
+ <h3>Team Signup</h3>
+ <form action="<%= @page %>" method="POST">
+ <% if @team.id %>
+ <input type="hidden" name="teamid" value="<%= @team.id %>">
+ <% end %>
+ <table>
+ <tr>
+ <td>
+ <input type="text" name="company-name" value="<%= @team.company %>">
+ <label for="company-name">Company Name <span class="req">*</span></label>
+ </td>
+ <td class="spacer">&nbsp;</td>
+ <td>
+ <input type="text" name="company-twitter" value="<%= @team.twitter %>">
+ <label for="company-twitter">Twitter Name</label>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <input type="text" name="team-name" value="<%= @team.name %>">
+ <label for="team-name">Team Name <span class="req">*</span></label>
+ </td>
+ </tr>
+ <tr class="space-below">
+ <td colspan="3">
+ <input type="text" name="team-image" value="<%= @team.image %>">
+ <label for="team-image">Team Image URL</label>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="player-1" value="<%= @team.player_1 %>">
+ <label for="player-1">Player 1</label>
+ </td>
+ <td class="spacer">&nbsp;</td>
+ <td>
+ <input type="text" name="player-2" value="<%= @team.player_2 %>">
+ <label for="player-2">Player 2</label>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="player-3" value="<%= @team.player_3 %>">
+ <label for="player-3">Player 3</label>
+ </td>
+ <td class="spacer">&nbsp;</td>
+ <td>
+ <input type="text" name="player-4" value="<%= @team.player_4 %>">
+ <label for="player-4">Player 4</label>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" name="player-5" value="<%= @team.player_5 %>">
+ <label for="player-5">Player 5</label>
+ </td>
+ <td class="spacer">&nbsp;</td>
+ <td>
+ <input type="text" name="player-6" value="<%= @team.player_6 %>">
+ <label for="player-6">Player 6</label>
+ </td>
+ </tr>
+ <tr class="space-below">
+ <td>
+ <input type="text" name="player-7" value="<%= @team.player_7 %>">
+ <label for="player-7">Player 7 (optional)</label>
+ </td>
+ <td class="spacer">&nbsp;</td>
+ <td>
+ <input type="text" name="player-8" value="<%= @team.player_8 %>">
+ <label for="player-8">Player 8 (optional)</label>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <input type="text" name="charity-name" value="<%= @team.charity %>">
+ <label for="charity-name">Charity Name <span class="req">*</span></label>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <input type="text" name="charity-url" value="<%= @team.charity_url %>">
+ <label for="charity-url">Charity URL</label>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <input type="text" name="contact-email" value="<%= @team.email %>">
+ <label for="contact-email">Email <span class="req">*</span> (so we can contact you to set up your donation)</label>
+ </td>
+ </tr>
+ </table>
+ <% if @team.id %>
+ <button type="submit">Save Changes</button>
+ <% else %>
+ <div class="pledge js-pledge"><span class="js-checkbox unchecked"></span> This company pledges to donate at least $3000 to the charity pot</div>
+ <button id="submit-team" type="submit">Signup Team</button>
+ <% end %>
+ </form>
+</div>
View
299 views/index.erb
@@ -1,228 +1,85 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>First Annual Octocat Dodgeball Invitational</title>
- <link href="shared/css/documentation.css" media="screen" rel="stylesheet" type="text/css">
- <link href="css/style.css" media="screen" rel="stylesheet" type="text/css">
- <script src="shared/js/jquery.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('.js-pledge').click(function(){
- $(this).find('.js-checkbox').toggleClass('unchecked checked')
- })
- })
- </script>
- </head>
+<div id="call-to-action" class="section hr">
+ <h2>First Annual</h2>
+ <h1>octocat<br/>dodgeball<br/>invitational</h1>
+ <h2>Sunday, October 23rd</h2>
+ <div id="the-pot">
+ <span class="shine"></span>
+ <h3 class="title">The Pot</h3>
+ <h3 class="ammount">$<span id="ammount"><%= @pot %></span></h3>
+ </div>
+</div><!-- #header-wrapper -->
- <body class="documentation">
- <div id="header-wrapper">
- </div><!-- #header-wrapper -->
+<div id="details" class="section hr">
+ <h3 class="section-title">Details</h3>
+ <div class="section-content">
+ <h3>Where?</h3>
+ <p>
+ <a href="http://g.co/maps/kexjk">Mission Recreation Center</a><br/>
+ 2450 Harrison Street<br/>
+ San Francisco, California 94110
+ </p>
+ <h3>When?</h3>
+ <p>
+ Sunday, October 23rd
+ </p>
+ <h3>Why?</h3>
+ <p>
+ We where brainstorming in the office and decided we should throw balls at our enemies. But why stop at destroying our enemies with foam spheres? We decided to trick our enemies into giving charities money for the right to have their asses kicked. Hakuna matata.
+ </p>
+ <h3>What?</h3>
+ <p>
+ GitHub employees and a number of victims from other teams participate in an epic Dodgeball tournament. Each team that is entered donates at least $3000 to the charity pot. At the end, the charity of the winner gets 50% of the pot and everyone else splits the rest evenly. In the process, thousands are entertained.
+ </p>
+ </div>
+</div><!-- #details -->
- <div id="wrapper">
-
- <div id="call-to-action" class="section hr">
- <h2>First Annual</h2>
- <h1>octocat<br/>dodgeball<br/>invitational</h1>
- <h2>Sunday, October 23rd</h2>
- <div id="the-pot">
- <span class="shine"></span>
- <h3 class="title">The Pot</h3>
- <h3 class="ammount">$<span id="ammount"><%= @pot %></span></h3>
- </div>
- </div><!-- #header-wrapper -->
-
- <div id="details" class="section hr">
- <h3 class="section-title">Details</h3>
- <div class="section-content">
- <h3>Where?</h3>
- <p>
- 1234 Dodgeball Death Lane<br />
- San Francisco, California 94108
- </p>
- <h3>When?</h3>
- <p>
- Sunday, October 23rd
- </p>
- <h3>Why?</h3>
- <p>
- We got pretty bored in the office and decided we should throw balls at our enemies. But why stop at destroying our enemies with foam spheres? We decided to trick our enemies into giving charities money for the right to have their asses kicked. Hakuna matata.
- </p>
- </div>
- </div><!-- #details -->
-
- <div id="teams" class="section">
- <h3 class="section-title">Teams</h3>
- <div class="section-content">
- <ul>
- <% @teams.each do |team| %>
- <li class="team">
- <div class="team-header">
- <img src="images/team-image.png" width="100" height="100" alt="Team Logo"/>
- <div class="info">
- <h3><%= team.name %></h3>
- <!-- <a class="btn">sponsor this team</a> -->
- </div>
- </div>
- <table class="team-content">
- <tr>
- <th>Company</th>
- <th>Charity</th>
- </tr>
- <tr>
- <td><%= team.company %></td>
- <td><%= team.charity %></td>
- </tr>
- <tr>
- <th colspan="2">Team</th>
- </tr>
- <tr>
- <td colspan="2">
- <ul>
- <% team.players.each do |player| %>
- <li><%= player.name %></li>
- <% end %>
- </ul>
- </td>
- </tr>
- </table>
- </li>
- <% end %>
- </ul>
- <div id="signup">
- <% if @message %>
- <div class="error"><%= @message %></div>
- <% end %>
- <h3>Team Signup</h3>
- <form action="/new" method="POST">
- <table>
- <tr>
- <td>
- <input type="text" name="company-name" value="<%= @team.company %>">
- <label for="company-name">Company Name</label>
- </td>
- <td class="spacer">&nbsp;</td>
- <td>
- <input type="text" name="company-twitter" value="<%= @team.twitter %>">
- <label for="company-twitter">Twitter Name</label>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <input type="text" name="team-name" value="<%= @team.name %>">
- <label for="team-name">Team Name</label>
- </td>
- </tr>
- <tr class="space-below">
- <td colspan="3">
- <input type="text" name="team-image" value="<%= @team.image %>">
- <label for="team-image">Team Image URL</label>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" name="player-1" value="<%= @team.player_1 %>">
- <label for="player-1">Player 1</label>
- </td>
- <td class="spacer">&nbsp;</td>
- <td>
- <input type="text" name="player-2" value="<%= @team.player_2 %>">
- <label for="player-2">Player 2</label>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" name="player-3" value="<%= @team.player_3 %>">
- <label for="player-3">Player 3</label>
- </td>
- <td class="spacer">&nbsp;</td>
- <td>
- <input type="text" name="player-4" value="<%= @team.player_4 %>">
- <label for="player-4">Player 4</label>
- </td>
- </tr>
- <tr>
- <td>
- <input type="text" name="player-5" value="<%= @team.player_5 %>">
- <label for="player-5">Player 5</label>
- </td>
- <td class="spacer">&nbsp;</td>
- <td>
- <input type="text" name="player-6" value="<%= @team.player_6 %>">
- <label for="player-6">Player 6</label>
- </td>
- </tr>
- <tr class="space-below">
- <td>
- <input type="text" name="player-7" value="<%= @team.player_7 %>">
- <label for="player-7">Player 7 (optional)</label>
- </td>
- <td class="spacer">&nbsp;</td>
- <td>
- <input type="text" name="player-8" value="<%= @team.player_8 %>">
- <label for="player-8">Player 8 (optional)</label>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <input type="text" name="charity-name" value="<%= @team.charity %>">
- <label for="charity-name">Charity Name</label>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <input type="text" name="charity-url" value="<%= @team.charity_url %>">
- <label for="charity-url">Charity URL</label>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <input type="text" name="contact-email" value="<%= @team.email %>">
- <label for="contact-email">Email (so we can contact you to set up your donation)</label>
- </td>
- </tr>
- </table>
- <div class="pledge js-pledge"><span class="js-checkbox unchecked"></span> This company pledges to donate at least $3000 to the charity pot</div>
- <button type="submit">Submit Team</button>
- </form>
+<div id="teams" class="section">
+ <h3 class="section-title">Teams</h3>
+ <div class="section-content">
+ <ul>
+ <% @teams.each do |team| %>
+ <li class="team">
+ <div class="team-header">
+ <%= team.team_image %>
+ <div class="info">
+ <h3><%= team.name %></h3>
+ <!-- <a class="btn">sponsor this team</a> -->
</div>
</div>
- </div><!-- #teams -->
- <div id="challenge">
- <span class="dodgeball left"></span>
- <h4>Think you have</h4>
- <h3>The Balls?</h3>
- <span class="dodgeball right"></span>
- </div>
- </div><!-- #wrapper -->
-
- <div id="footer" >
- <div class="lower_footer">
- <div class="footer_inner clearfix">
- <div id="legal">
- <!--[if IE]><a class="home_ie" href="http://github.com">Home</a><![endif]-->
- <![if !IE]><a class="home" href="http://github.com">Home</a><![endif]>
-
- <ul id="legal_links">
- <li><a href="http://help.github.com/terms-of-service/">Terms of Service</a></li>
- <li><a href="http://help.github.com/privacy-policy/">Privacy</a></li>
- <li><a href="http://help.github.com/security/">Security</a></li>
+ <table class="team-content">
+ <tr>
+ <th>Company</th>
+ <th>Charity</th>
+ </tr>
+ <tr>
+ <td><%= team.company %></td>
+ <td><%= team.charity %></td>
+ </tr>
+ <tr>
+ <th colspan="2">Team</th>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <ul>
+ <% team.players.each do |player| %>
+ <li><%= player %></li>
+ <% end %>
</ul>
+ </td>
+ </tr>
+ </table>
+ </li>
+ <% end %>
+ </ul>
- <p>&copy; <span id="year">year</span> GitHub Inc. All rights reserved.</p>
- </div><!-- /#legal or /#legal_ie-->
-
- <div class="sponsor">
- <a href="http://www.rackspace.com" class="logo">
- <img src="shared/images/rackspace_logo.png" alt="Dedicated Server" width="38" height="36">
- </a>
- Powered by the <a href="http://www.rackspace.com ">Dedicated
- Servers</a> and<br/> <a href="http://www.rackspacecloud.com">Cloud
- Computing</a> of Rackspace Hosting<span>&reg;</span>
- </div>
- </div><!-- /.site -->
- </div><!-- /.lower_footer -->
- </div><!-- /#footer -->
+ <% @page = "/new#signup-start" %>
+ <%= erb :form %>
- </body>
-</html>
+ </div>
+</div><!-- #teams -->
+<div id="challenge">
+ <span class="dodgeball left"></span>
+ <h4>Think you have</h4>
+ <h3>The Balls?</h3>
+ <span class="dodgeball right"></span>
+</div>
View
59 views/layout.erb
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>First Annual Octocat Dodgeball Invitational</title>
+ <link href="/shared/css/documentation.css" media="screen" rel="stylesheet" type="text/css">
+ <link href="/css/style.css" media="screen" rel="stylesheet" type="text/css">
+ <script src="/shared/js/jquery.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $('#submit-team').attr('disabled', 'disabled');
+ $('.js-pledge').click(function(){
+ $(this).find('.js-checkbox').toggleClass('unchecked checked')
+ $('#submit-team').removeAttr('disabled')
+ })
+ })
+ </script>
+ </head>
+
+ <body class="documentation">
+ <div id="header-wrapper">
+ </div><!-- #header-wrapper -->
+
+ <div id="wrapper">
+
+ <%= yield %>
+
+ </div><!-- #wrapper -->
+
+ <div id="footer" >
+ <div class="lower_footer">
+ <div class="footer_inner clearfix">
+ <div id="legal">
+ <!--[if IE]><a class="home_ie" href="http://github.com">Home</a><![endif]-->
+ <![if !IE]><a class="home" href="http://github.com">Home</a><![endif]>
+
+ <ul id="legal_links">
+ <li><a href="http://help.github.com/terms-of-service/">Terms of Service</a></li>
+ <li><a href="http://help.github.com/privacy-policy/">Privacy</a></li>
+ <li><a href="http://help.github.com/security/">Security</a></li>
+ </ul>
+
+ <p>&copy; <span id="year">year</span> GitHub Inc. All rights reserved.</p>
+ </div><!-- /#legal or /#legal_ie-->
+
+ <div class="sponsor">
+ <a href="http://www.rackspace.com" class="logo">
+ <img src="/shared/images/rackspace_logo.png" alt="Dedicated Server" width="38" height="36">
+ </a>
+ Powered by the <a href="http://www.rackspace.com ">Dedicated
+ Servers</a> and<br/> <a href="http://www.rackspacecloud.com">Cloud
+ Computing</a> of Rackspace Hosting<span>&reg;</span>
+ </div>
+ </div><!-- /.site -->
+ </div><!-- /.lower_footer -->
+ </div><!-- /#footer -->
+
+ </body>
+</html>
View
25 views/thankyou.erb
@@ -0,0 +1,25 @@
+<div id="call-to-action" class="section hr">
+ <h2>First Annual</h2>
+ <h2><a href="/">Octocat Dodgeball Invitational</a></h2>
+ <h2>Sunday, October 23rd</h2>
+ <div id="the-pot">
+ <span class="shine"></span>
+ <h3 class="title">The Pot</h3>
+ <h3 class="ammount">$<span id="ammount"><%= @pot %></span></h3>
+ </div>
+</div><!-- #header-wrapper -->
+
+<div id="challenge" class="section hr">
+ <span class="dodgeball left"></span>
+ <h4>I guess you have</h4>
+ <h3>The Balls</h3>
+ <span class="dodgeball right"></span>
+</div>
+
+<div class="section hr">
+ <p class="instructions">
+ We will email you to verify everything and set up your donation,
+ then you will see your team listed in the Teams section. Thanks!
+ </p>
+</div>
+
Please sign in to comment.
Something went wrong with that request. Please try again.