Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding credits page

  • Loading branch information...
commit 57781fe2c877947f31d82fec6256f1047acb27a0 1 parent 8caf49a
@jashkenas authored
View
8 app/controllers/congressional_controller.rb
@@ -25,9 +25,15 @@ def templates
end
- # Dynamically render the bookmarklet javascript, for flexibility.
+ # The main site index.
def bookmarklet
# Just render.
end
+
+ # A Credits and Thanks page.
+ def credits
+ # Just render.
+ end
+
end
View
44 app/views/congressional/credits.html.erb
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <meta name="author" content="http://ashkenas.com/" />
+ <title>Know thy Congressman | Credits</title>
+ <link href="/stylesheets/bookmarklet.css" media="screen" rel="stylesheet" type="text/css" />
+ <link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico" />
+</head>
+
+<body>
+ <div class="container"> </div>
+ <div id="senator"> </div>
+
+ <div id="explanation">
+ <div id="explanation_inner">
+ <p class="first_child">
+ <q><span class="def" title="Know Thy Congressman">KTC</span></q>
+ is made possible by a group of generous and informative
+ <span class="def" title="Application Programming Interface">API</span>s,
+ which together provide every bit of information:
+ <ul style="list-style:none;">
+ <li><a target="_blank" href="http://services.sunlightlabs.com/api/">Sunlight Labs API</a></li>
+ <li><a target="_blank" href="http://watchdog.net/">Watchdog.net JSON pages</a></li>
+ <li><a target="_blank" href="http://developer.nytimes.com/docs/timestags_api">New York Times Tags API</a></li>
+ <li><a target="_blank" href="http://developer.nytimes.com/docs/article_search_api">New York Times Articles API</a></li>
+ <li><a target="_blank" href="http://www.opensecrets.org/action/api_doc.php">Open Secrets API</a></li>
+ <li><a target="_blank" href="http://www.flickr.com/services/api/">Flickr Images API</a></li>
+ <li><a target="_blank" href="http://www.capitolwords.org/api/">Capitol Words API</a></li>
+ </ul>
+ </p>
+ <p>
+ Many thanks to the Sunlight Foundation for holding this contest.
+ </p>
+ </div>
+ </div>
+
+ <img id="knowthycongressman" src="/images/KNOWTHYCONGRESSMAN.png" alt="" />
+ <div id="horizon"> </div>
+ <a id="sunlight" href="http://sunlightlabs.com/appsforamerica/" title="Sunlight Labs | Apps For America"> </a>
+ <a href="http://en.wikipedia.org/wiki/Henry_F._Ashurst" id="ashurst">(Senator Ashurst of Arizona)</a>
+</body>
+</html>
View
1  app/views/js_templates/base.html.erb
@@ -17,5 +17,6 @@
<!-- Render target for all the blocks -->
</div>
</div>
+ <a class="credits" title="Thanks and Credits" target="_blank" href="<%= ktc_root %>/credits" style="background-image:url(<%= ktc_root %>/images/credits.png)"> </a>
</div>
</div>
View
3  config/routes.rb
@@ -35,7 +35,8 @@
# See how all your routes lay out with "rake routes"
- map.index '/', :controller => 'congressional', :action => 'bookmarklet'
+ map.root :controller => 'congressional', :action => 'bookmarklet'
+ map.credits 'credits', :controller => 'congressional', :action => 'credits'
map.search 'find/:name.:format', :controller => 'congressional', :action => 'find'
map.templates 'templates.:format', :controller => 'congressional', :action => 'templates'
View
BIN  public/images/credits.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
3  public/stylesheets/bookmarklet.css
@@ -43,6 +43,9 @@ a {
padding: 0 2px 0 2px;
cursor: help;
}
+ #explanation li a {
+ border-bottom: 1px solid #d94a3f;
+ }
#knowthycongressman {
position: fixed;
View
8 public/stylesheets/know-thy-congressman.css
@@ -106,6 +106,14 @@ Indy: #80d68a
height: 1160px;
opacity: 0.96;
}
+ #ktc .credits {
+ display: block;
+ width: 11px; height: 45px;
+ position: absolute;
+ bottom: 32px; right: 0px;
+ cursor: pointer;
+ z-index: 4;
+ }
#ktc .closer {
width: 30px; height: 30px;
position: absolute;
Please sign in to comment.
Something went wrong with that request. Please try again.