Skip to content
Browse files

add meta info; foxes

  • Loading branch information...
1 parent f3aff62 commit 1bc97857c0198c64e69e34f38948ae8bbd51d164 @mnutt mnutt committed Jan 19, 2011
Showing with 135 additions and 94 deletions.
  1. +31 −87 app/views/accounts/_account.html.erb
  2. +2 −3 app/views/accounts/_service.html.erb
  3. +1 −1 app/views/accounts/_site.html.erb
  4. +2 −0 app/views/accounts/index.html.erb
  5. +5 −1 app/views/layouts/application.html.erb
  6. BIN public/fonts/munro_small.ttf
  7. BIN public/images/foxes.png
  8. 0 public/images/people/lines/{fox.png → fox1.png}
  9. BIN public/images/people/lines/fox2.png
  10. BIN public/images/people/lines/fox3.png
  11. BIN public/images/people/lines/matz.png
  12. 0 public/images/people/photos/{fox.png → fox1.png}
  13. BIN public/images/people/photos/fox2.png
  14. BIN public/images/people/photos/fox3.png
  15. BIN public/images/social/blinklist.png
  16. BIN public/images/social/brightkite.png
  17. BIN public/images/social/delicious.png
  18. BIN public/images/social/design_float.png
  19. BIN public/images/social/digg.png
  20. BIN public/images/social/dopplr.png
  21. BIN public/images/social/email.png
  22. BIN public/images/social/facebook.png
  23. BIN public/images/social/feed.png
  24. BIN public/images/social/flickr.png
  25. BIN public/images/social/friendfeed.png
  26. BIN public/images/social/furl.png
  27. BIN public/images/social/gamespot.png
  28. BIN public/images/social/github.png
  29. BIN public/images/social/iddy.png
  30. BIN public/images/social/lastfm.png
  31. BIN public/images/social/linkedin.png
  32. BIN public/images/social/magnolia.png
  33. BIN public/images/social/mixi.png
  34. BIN public/images/social/mixx.png
  35. BIN public/images/social/myspace.png
  36. BIN public/images/social/newsvine.png
  37. BIN public/images/social/posterous.png
  38. BIN public/images/social/reddit.png
  39. BIN public/images/social/sphere.png
  40. BIN public/images/social/sphinn.png
  41. BIN public/images/social/stumble.png
  42. BIN public/images/social/technorati.png
  43. BIN public/images/social/tripadvisor.png
  44. BIN public/images/social/tumblr.png
  45. BIN public/images/social/twitter.png
  46. BIN public/images/social/vimeo.png
  47. BIN public/images/social/youtube.png
  48. +94 −2 public/stylesheets/site.css
View
118 app/views/accounts/_account.html.erb
@@ -1,100 +1,44 @@
-<li class="account" style="width: 900px; background-color: #222; background: url(/images/foo.jpg); margin: 20px; padding: 10px; list-style: none; box-shadow: -5px 5px 0px #555;">
- <div class="picture" style="float: right;">
+<li class="account">
+ <div class="picture">
<div class="image-wrapper">
<% if File.exist?(Rails.root.join('public', 'images', 'people', 'lines', "#{account.username}.png").to_s) -%>
<%= image_tag "people/lines/#{account.username}.png", :onmouseover => "this.src = this.src.replace(/lines/, 'photos').replace(/png/, 'jpg');", :onmouseout => "this.src = this.src.replace(/photos/, 'lines').replace(/jpg/, 'png');" -%>
<% else -%>
- <%= image_tag "people/lines/fox.png", :onmouseover => "this.src = this.src.replace(/lines/, 'photos')", :onmouseout => "this.src = this.src.replace(/photos/, 'lines')" -%></div>
+ <%= image_tag "people/lines/fox#{@fox_count}.png", :onmouseover => "this.src = this.src.replace(/lines/, 'photos')", :onmouseout => "this.src = this.src.replace(/photos/, 'lines')" -%>
+ <% @fox_count = @fox_count % 3 + 1 -%>
<% end -%>
</div>
</div>
- <div style="float: right; clear: right;"></div>
-
- <div class="name" style="font-family: Helvetica, sans-serif; line-height: 1.4em;">
- <div style="text-transform: uppercase; font-size: 1.3em; padding-bottom: 10px;"><%= account.username -%></div>
- <% [account.names, account.nicks].flatten.slice(0,3).each do |name| -%>
- <div style="color: #AAA; font-size: 0.8em;"><small style="font-size: 0.6em;">AKA</small> &ldquo;<%= name.value -%>&rdquo;</div>
- <% end -%>
+ <div class="name">
+ <span class="username"><%= account.username -%></span>
+
+ <span class="nicknames">
+ <% [account.names, account.nicks].flatten.slice(0,5).each do |name| -%>
+ <span class="nick">
+ <small>AKA</small>
+ &ldquo;<%= name.value -%>&rdquo;
+ </span>
+ <% end -%>
+ </span>
+ </div>
</div>
- <div style="clear: both;"></div>
-</li>
-
-<% if false -%>
- <table>
- <tr>
- <td>Account:</td>
- <td><%= account.username %></td>
- </tr>
-
- <% unless account.names.empty? %>
- <tr>
- <td>Names:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.names %>
- </ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.nicks.empty? %>
- <tr>
- <td>Nicknames:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.nicks %>
- </ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.sites.empty? %>
- <tr>
- <td>Sites:</td>
- <td>
- <ul>
- <%= render :partial => 'site', :collection => account.sites %>
- </ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.services.empty? %>
- <tr>
- <td>Services:</td>
- <td>
- <ul>
- <%= render :partial => 'service', :collection => account.services %>
- </ul>
- </td>
- </tr>
- <% end %>
+ <div class="sites">
+ <%= render :partial => 'site', :collection => account.sites -%>
+ <span class="books">
+ <% if account.books.present? -%>
+ Books: &nbsp;
+ <% account.books.each_with_index do |book, i| %>
+ <a href="http://www.amazon.<%= book.key.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.key %>"><%= i + 1 -%></a> &nbsp;
+ <% end %>
+ <% end -%>
+ </span>
+ </div>
- <% unless account.portraits.empty? %>
- <tr>
- <td>Portraits:</td>
- <td>
- <ul>
- <%= render :partial => 'portrait', :collection => account.portraits %>
- </ul>
- </td>
- </tr>
- <% end %>
+ <div class="services">
+ <%= render :partial => 'service', :collection => account.services -%>
+ </div>
- <% unless account.books.empty? %>
- <tr>
- <td>Books:</td>
- <td>
- <ul>
- <% account.books.each do |book| %>
- <li><a href="http://www.amazon.<%= book.isbn.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.isbn %>"><%= book.key %></a></li>
- <% end %>
- </ul>
- </td>
- </tr>
- <% end %>
- </table>
+ <div style="clear: both;"></div>
</li>
-<% end -%>
View
5 app/views/accounts/_service.html.erb
@@ -1,3 +1,2 @@
-<li>
- <%= link_to_service service.name, service %>
-</li>
+<%= link_to_service image_tag("social/#{service.name}.png"), service %>
+
View
2 app/views/accounts/_site.html.erb
@@ -1 +1 @@
-<li><%= link_to site.title, site.url %></li>
+<%= link_to site.title, site.url %> &nbsp;
View
2 app/views/accounts/index.html.erb
@@ -2,6 +2,8 @@
<%= link_to 'fork me on github',
'http://github.com/tenderlove/rubycommitters.org' %> -->
+<% @fox_count = 1 -%>
+
<ul style="list-style: none; margin: 0; padding: 0; z-index: 10; position: relative;">
<%= render :partial => 'account', :collection => @accounts %>
</ul>
View
6 app/views/layouts/application.html.erb
@@ -10,10 +10,14 @@
<body>
<div id="header">
- <img src="/images/header2.jpg" alt="Ruby Committers" />
+ <div id="title">Ruby Committers</div>
</div>
<%= yield %>
+ <div id="footer">
+ &copy; 2011 RubyCommitters.org
+ </div>
+
</body>
</html>
View
BIN public/fonts/munro_small.ttf
Binary file not shown.
View
BIN public/images/foxes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/people/lines/fox.png → public/images/people/lines/fox1.png
File renamed without changes
View
BIN public/images/people/lines/fox2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/people/lines/fox3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/people/lines/matz.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/people/photos/fox.png → public/images/people/photos/fox1.png
File renamed without changes
View
BIN public/images/people/photos/fox2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/people/photos/fox3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/blinklist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/brightkite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/delicious.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/design_float.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/digg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/dopplr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/email.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/facebook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/feed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/flickr.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/friendfeed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/furl.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/gamespot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/github.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/iddy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/lastfm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/linkedin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN public/images/social/magnolia.png
Diff not rendered.
View
BIN public/images/social/mixi.png
Diff not rendered.
View
BIN public/images/social/mixx.png
Diff not rendered.
View
BIN public/images/social/myspace.png
Diff not rendered.
View
BIN public/images/social/newsvine.png
Diff not rendered.
View
BIN public/images/social/posterous.png
Diff not rendered.
View
BIN public/images/social/reddit.png
Diff not rendered.
View
BIN public/images/social/sphere.png
Diff not rendered.
View
BIN public/images/social/sphinn.png
Diff not rendered.
View
BIN public/images/social/stumble.png
Diff not rendered.
View
BIN public/images/social/technorati.png
Diff not rendered.
View
BIN public/images/social/tripadvisor.png
Diff not rendered.
View
BIN public/images/social/tumblr.png
Diff not rendered.
View
BIN public/images/social/twitter.png
Diff not rendered.
View
BIN public/images/social/vimeo.png
Diff not rendered.
View
BIN public/images/social/youtube.png
Diff not rendered.
View
96 public/stylesheets/site.css
@@ -1,10 +1,18 @@
+@font-face {
+ font-family: "MunroSmall";
+ src: url(/fonts/munro_small.ttf);
+ font-weight:400;
+}
+
body {
margin: 0;
padding: 0;
background-color: #181818;
- background: #FFF url(/images/header-bg.png);
+ background: #FFF url(/images/header-bg.png);
color: #FFF;
+ font-family: Helvetica, Arial, sans-serif;
}
+
.image-wrapper {
height: 100px;
}
@@ -16,5 +24,89 @@ body {
#header {
background: #FFF url(/images/header-bg.png);
height: 383px;
- margin-bottom: -23px;
+ margin-bottom: -13px;
+}
+
+#title {
+ background: url(/images/header2.jpg) top left no-repeat;
+ width: 957px;
+ height: 413px;
+ text-indent: -10000px;
+}
+
+.sites a {
+ color: #EEE;
+ font-size: 0.6em;
+ line-height: 3.3em;
+}
+
+.services {
+ padding-top: 5px;
+ line-height: 2em;
+}
+
+.sites a {
+ background-color: #EEE;
+ color: #000;
+ padding: 3px 6px;
+ border-radius: 9px;
+ -moz-border-radius: 9px;
+ -o-border-radius: 9px;
+ -webkit-border-radius: 9px;
+ text-decoration: none;
+ font-weight: bold;
+}
+
+.sites .books {
+ text-transform: uppercase;
+ font-size: 0.8em;
+ color: #888;
+}
+
+.sites .books a {
+ color: #000;
+ text-decoration: none;
+}
+
+.username {
+ font-family: "MunroSmall";
+ font-size: 2em;
+}
+
+.nick {
+ color: #AAA;
+ font-size: 0.6em;
+}
+
+.nick small {
+ font-size: 0.6em;
+}
+
+li.account {
+ max-width: 900px;
+ background-color: #222;
+ background: url(/images/foo.jpg);
+ margin: 20px;
+ padding: 10px;
+ list-style: none;
+ box-shadow: -5px 5px 0px #555;
+}
+
+li.account div.picture {
+ float: right;
+}
+
+li.account div.name {
+ font-family: Helvetica, sans-serif;
+ line-height: 1.4em;
+ text-transform: uppercase;
+ font-size: 1.3em;
+}
+
+#footer {
+ margin-left: 20px;
+ height: 77px;
+ background: url(/images/foxes.png) top left no-repeat;);
+ padding: 20px 0 0 70px;
+ color: #000;
}

0 comments on commit 1bc9785

Please sign in to comment.
Something went wrong with that request. Please try again.