Skip to content

Commit

Permalink
Merge branch 'mnutt-master'
Browse files Browse the repository at this point in the history
* mnutt-master:
  fallback font
  footer
  more css
  css fixes
  link styling
  add meta info; foxes
  newer header
  late night with the tablet
  • Loading branch information
tenderlove committed Jan 28, 2011
2 parents 58b078a + 831393a commit bc1b320
Show file tree
Hide file tree
Showing 116 changed files with 181 additions and 78 deletions.
2 changes: 1 addition & 1 deletion app/controllers/accounts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AccountsController < ApplicationController
def index
@accounts = Account.find :all
@accounts = Account.includes([:names, :nicks, :sites, :services, :portraits]).all
end
end
108 changes: 38 additions & 70 deletions app/views/accounts/_account.html.erb
Original file line number Diff line number Diff line change
@@ -1,76 +1,44 @@
<li>
<table>
<tr>
<td>Account:</td>
<td><%= account.username %></td>
</tr>
<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#{@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>

<% unless account.names.empty? %>
<tr>
<td>Names:</td>
<td>
<ul>
<%= render :partial => 'name', :collection => account.names %>
</ul>
</td>
</tr>
<% end %>
<div class="name">
<span class="username"><%= account.username -%></span>

<% unless account.nicks.empty? %>
<tr>
<td>Nicknames:</td>
<td>
<ul>
<%= render :partial => 'name', :collection => account.nicks %>
</ul>
</td>
</tr>
<% end %>
<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>

<% unless account.sites.empty? %>
<tr>
<td>Sites:</td>
<td>
<ul>
<%= render :partial => 'site', :collection => account.sites %>
</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.services.empty? %>
<tr>
<td>Services:</td>
<td>
<ul>
<%= render :partial => 'service', :collection => account.services %>
</ul>
</td>
</tr>
<% end %>
<div class="services">
<%= render :partial => 'service', :collection => account.services -%>
</div>

<% unless account.portraits.empty? %>
<tr>
<td>Portraits:</td>
<td>
<ul>
<%= render :partial => 'portrait', :collection => account.portraits %>
</ul>
</td>
</tr>
<% end %>
<% 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>
5 changes: 2 additions & 3 deletions app/views/accounts/_service.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<li>
<%= link_to_service service.name, service %>
</li>
<%= link_to_service image_tag("social/#{service.name}.png"), service %>

2 changes: 1 addition & 1 deletion app/views/accounts/_site.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<li><%= link_to site.title, site.url %></li>
<%= link_to site.title, site.url %> &nbsp;
10 changes: 7 additions & 3 deletions app/views/accounts/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<h1>Ruby Committers</h1>
<%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org' %>
<ul>
<!-- <h1>Ruby Committers</h1>
<%= 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>
9 changes: 9 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
</head>
<body>

<div id="header">
<div id="title">Ruby Committers</div>
</div>

<%= yield %>

<div id="footer">
&copy; 2011 RubyCommitters.org <br/>
inspired by _why
</div>

</body>
</html>
Binary file added public/fonts/munro_small.ttf
Binary file not shown.
Binary file added public/images/foo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/foxes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/header-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/header.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/header2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/line-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/aamine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/akira.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/akr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/arton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/azav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/dave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/davidflanagan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/dblack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/drbrain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/duerst.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/fox1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/fox2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/fox3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/gotoken.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/gotoyuzo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/jeg2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/jim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/keiju.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/knu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/people/lines/ko1.png
Binary file added public/images/people/lines/luislavena.png
Binary file added public/images/people/lines/marcandre.png
Binary file added public/images/people/lines/matz.png
Binary file added public/images/people/lines/mrkn.png
Binary file added public/images/people/lines/nobu.png
Binary file added public/images/people/lines/seki.png
Binary file added public/images/people/lines/shugo.png
Binary file added public/images/people/lines/shyouhei.png
Binary file added public/images/people/lines/takano32.png
Binary file added public/images/people/lines/tenderlove.png
Binary file added public/images/people/lines/wew.png
Binary file added public/images/people/lines/why.png
Binary file added public/images/people/lines/yugui.png
Binary file added public/images/people/lines/zsombr.png
Binary file added public/images/people/photos/aamine.jpg
Binary file added public/images/people/photos/akira.jpg
Binary file added public/images/people/photos/akr.jpg
Binary file added public/images/people/photos/arton.jpg
Binary file added public/images/people/photos/azav.jpg
Binary file added public/images/people/photos/dave.jpg
Binary file added public/images/people/photos/davidflanagan.jpg
Binary file added public/images/people/photos/dblack.jpg
Binary file added public/images/people/photos/drbrain.jpg
Binary file added public/images/people/photos/duerst.jpg
Binary file added public/images/people/photos/fox1.png
Binary file added public/images/people/photos/fox2.png
Binary file added public/images/people/photos/fox3.png
Binary file added public/images/people/photos/gotoken.jpg
Binary file added public/images/people/photos/gotoyuzo.jpg
Binary file added public/images/people/photos/jeg2.jpg
Binary file added public/images/people/photos/jim.jpg
Binary file added public/images/people/photos/keiju.jpg
Binary file added public/images/people/photos/knu.jpg
Binary file added public/images/people/photos/ko1.jpg
Binary file added public/images/people/photos/luislavena.jpg
Binary file added public/images/people/photos/marcandre.jpg
Binary file added public/images/people/photos/matz.jpg
Binary file added public/images/people/photos/mrkn.jpg
Binary file added public/images/people/photos/nobu.jpg
Binary file added public/images/people/photos/seki.jpg
Binary file added public/images/people/photos/shugo.jpg
Binary file added public/images/people/photos/shyouhei.jpg
Binary file added public/images/people/photos/takano32.jpg
Binary file added public/images/people/photos/tenderlove.jpg
Binary file added public/images/people/photos/wew.jpg
Binary file added public/images/people/photos/why.jpg
Binary file added public/images/people/photos/yugui.jpg
Binary file added public/images/people/photos/zsombr.jpg
Binary file added public/images/social/blinklist.png
Binary file added public/images/social/brightkite.png
Binary file added public/images/social/delicious.png
Binary file added public/images/social/design_float.png
Binary file added public/images/social/digg.png
Binary file added public/images/social/dopplr.png
Binary file added public/images/social/email.png
Binary file added public/images/social/facebook.png
Binary file added public/images/social/feed.png
Binary file added public/images/social/flickr.png
Binary file added public/images/social/friendfeed.png
Binary file added public/images/social/furl.png
Binary file added public/images/social/gamespot.png
Binary file added public/images/social/github.png
Binary file added public/images/social/iddy.png
Binary file added public/images/social/lastfm.png
Binary file added public/images/social/linkedin.png
Binary file added public/images/social/magnolia.png
Binary file added public/images/social/mixi.png
Binary file added public/images/social/mixx.png
Binary file added public/images/social/myspace.png
Binary file added public/images/social/newsvine.png
Binary file added public/images/social/posterous.png
Binary file added public/images/social/reddit.png
Binary file added public/images/social/sphere.png
Binary file added public/images/social/sphinn.png
Binary file added public/images/social/stumble.png
Binary file added public/images/social/technorati.png
Binary file added public/images/social/tripadvisor.png
Binary file added public/images/social/tumblr.png
Binary file added public/images/social/twitter.png
Binary file added public/images/social/vimeo.png
Binary file added public/images/social/youtube.png
114 changes: 114 additions & 0 deletions public/stylesheets/site.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,121 @@
@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);
color: #FFF;
font-family: Helvetica, Arial, sans-serif;
}

.image-wrapper {
height: 100px;
}

.image-wrapper img {
height: 100%;
}

#header {
background: #FFF url(/images/header-bg.png);
height: 383px;
margin-bottom: -13px;
}

#title {
background: url(/images/header2.jpg) top left no-repeat;
width: 957px;
height: 413px;
text-indent: -10000px;
}

.services {
padding-top: 5px;
line-height: 2em;
}

.services img {
border: 0;
}

.sites a {
font-size: 0.6em;
line-height: 3.3em;
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 a:hover {
color: #FFF;
background-color: #562e8b;
}

.sites .books {
text-transform: uppercase;
font-size: 0.8em;
color: #888;
}

.sites .books a {
text-decoration: none;
}

.username {
font-family: "MunroSmall", Arial, Helvetica, sans-serif;
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;
-webkit-box-shadow: -5px 5px 0px #555;
-moz-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: 72px;
background: url(/images/foxes.png) bottom left no-repeat;);
padding: 65px 0 0 165px;
color: #666;
font-size: 0.55em;
font-weight: bold;
text-transform: uppercase;
}
9 changes: 9 additions & 0 deletions script/switch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env ruby

username = ARGV[0]
`git checkout Gemfile.lock`
puts `git remote add #{username} git://github.com/#{username}/rubycommitters.org`
puts `git fetch #{username}`
puts `git checkout #{username}/master`
puts `bundle install`
exec `script/rails server -p 3099`

0 comments on commit bc1b320

Please sign in to comment.