Permalink
Browse files

Initial changes

  • Loading branch information...
1 parent 89a36f7 commit 95290b32ad1e50b1008582eb2e6a1eaac363e4a7 @joemsak joemsak committed Jan 4, 2011
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm use --create 1.9.2@rails3
View
61 app/views/accounts/_account.html.erb
@@ -1,63 +1,23 @@
-<li>
- <table>
- <tr>
- <td>Account:</td>
- <td><%= account.username %></td>
- </tr>
+<li class="account">
+ <% unless account.portraits.empty? %>
+ <%= render :partial => 'portrait', :collection => account.portraits %>
+ <% end %>
+ <h2><%= account.username %></h2>
<% unless account.names.empty? %>
- <tr>
- <td>Names:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.names %>
- </ul>
- </td>
- </tr>
+ <p><%= render :partial => 'name', :collection => account.names %></p>
<% end %>
<% unless account.nicks.empty? %>
- <tr>
- <td>Nicknames:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.nicks %>
- </ul>
- </td>
- </tr>
+ <p>AKA: <%= render :partial => 'name', :collection => account.nicks %></p>
<% end %>
<% unless account.sites.empty? %>
- <tr>
- <td>Sites:</td>
- <td>
- <ul>
- <%= render :partial => 'site', :collection => account.sites %>
- </ul>
- </td>
- </tr>
+ <p>Sites: <%= render :partial => 'site', :collection => account.sites %></p>
<% end %>
<% unless account.services.empty? %>
- <tr>
- <td>Services:</td>
- <td>
- <ul>
- <%= render :partial => 'service', :collection => account.services %>
- </ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.portraits.empty? %>
- <tr>
- <td>Portraits:</td>
- <td>
- <ul>
- <%= render :partial => 'portrait', :collection => account.portraits %>
- </ul>
- </td>
- </tr>
+ <p>Services: <%= render :partial => 'service', :collection => account.services %></p>
<% end %>
<!-- FIXME: unsure how to link to ISBN. :-( -->
@@ -75,5 +35,4 @@
</tr>
<% end %>
-->
- </table>
-</li>
+</li>
View
2 app/views/accounts/_name.html.erb
@@ -1 +1 @@
-<li><%= name.value %></li>
+<%= name.value %><br>
View
4 app/views/accounts/_service.html.erb
@@ -1,3 +1 @@
-<li>
- <%= link_to_service service.name, service %>
-</li>
+<%= link_to_service service.name, service %><br>
View
2 app/views/accounts/_site.html.erb
@@ -1 +1 @@
-<li><%= link_to site.title, site.url %></li>
+<%= link_to site.title, site.url %><br>
View
6 app/views/accounts/index.html.erb
@@ -1,5 +1,3 @@
-<h1>Ruby Committers</h1>
-<%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org' %>
-<ul>
-<%= render :partial => 'account', :collection => @accounts %>
+<ul id="accounts">
+ <%= render :partial => 'account', :collection => @accounts %>
</ul>
View
22 app/views/layouts/application.html.erb
@@ -3,13 +3,29 @@
<head>
<title>Ruby Committers</title>
<%= stylesheet_link_tag :all %>
- <%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
<%= analytics_tag %>
</head>
<body>
+ <div class="ribbon">
+ <%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org', :id => 'fork-link' %>
+ </div>
-<%= yield %>
-
+ <div id="container">
+ <header id="site-header">
+ <h1 id="logo">Ruby Committers</h1>
+ </header>
+ <section id="content">
+ <%= yield %>
+ </section>
+ <div id="footer-padding"></div>
+ </div>
+ <footer id="site-footer">
+ &copy; <%= Time.now.strftime('%Y') %> Ruby Committers? MIT License? Who knows?
+ </footer>
+ <%= javascript_include_tag 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js',
+ 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js',
+ 'jquery.equalheights',
+ 'application' %>
</body>
</html>
View
5 public/javascripts/application.js
@@ -1,2 +1,3 @@
-// Place your application-specific JavaScript functions and classes here
-// This file is automatically included by javascript_include_tag :defaults
+$(document).ready(function(){
+ $('.account').equalHeights();
+});
View
33 public/javascripts/jquery.equalheights.js
@@ -0,0 +1,33 @@
+/**
+ * Equal Heights Plugin
+ * Equalize the heights of elements. Great for columns or any elements
+ * that need to be the same size (floats, etc).
+ *
+ * Version 1.0
+ * Updated 12/10/2008
+ *
+ * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com)
+ *
+ * Usage: $(object).equalHeights([minHeight], [maxHeight]);
+ *
+ * Example 1: $(".cols").equalHeights(); Sets all columns to the same height.
+ * Example 2: $(".cols").equalHeights(400); Sets all cols to at least 400px tall.
+ * Example 3: $(".cols").equalHeights(100,300); Cols are at least 100 but no more
+ * than 300 pixels tall. Elements with too much content will gain a scrollbar.
+ *
+ */
+
+(function($) {
+ $.fn.equalHeights = function(minHeight, maxHeight) {
+ tallest = (minHeight) ? minHeight : 0;
+ this.each(function() {
+ if($(this).height() > tallest) {
+ tallest = $(this).height();
+ }
+ });
+ if((maxHeight) && tallest > maxHeight){ tallest = maxHeight; }
+ return this.each(function() {
+ $(this).height(tallest);
+ });
+ }
+})(jQuery);
View
140 public/stylesheets/site.css
@@ -1,7 +1,147 @@
+/* v1.0 | 20080212 */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-size: 100%;
+ vertical-align: baseline;
+ background: transparent;
+}
+body {
+ line-height: 1;
+}
+ol, ul {
+ list-style: none;
+}
+blockquote, q {
+ quotes: none;
+}
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: '';
+ content: none;
+}
+
+/* remember to define focus styles! */
+:focus {
+ outline: 0;
+}
+
+/* remember to highlight inserts somehow! */
+ins {
+ text-decoration: none;
+}
+del {
+ text-decoration: line-through;
+}
+
+/* tables still need 'cellspacing="0"' in the markup */
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+
+html, body {
+ height: 100%;
+}
+
+body{
+ font:normal 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+
.image-wrapper {
height: 100px;
+ float:left;
+ margin:0 10px 10px 0;
}
.image-wrapper img {
height: 100%;
}
+
+.ribbon {
+ background-color: #a00;
+ overflow: hidden;
+ /* top left corner */
+ position: absolute;
+ left: -3em;
+ top: 2.5em;
+ /* 45 deg ccw rotation */
+ -moz-transform: rotate(-45deg);
+ -webkit-transform: rotate(-45deg);
+ /* shadow */
+ -moz-box-shadow: 0 0 1em #888;
+ -webkit-box-shadow: 0 0 1em #888;
+}
+.ribbon a {
+ border: 1px solid #faa;
+ color: #fff;
+ display: block;
+ font-weight: bold;
+ margin: 0.05em 0 0.075em 0;
+ padding: 0.5em 3.5em;
+ text-align: center;
+ text-decoration: none;
+ /* shadow */
+ text-shadow: 0 0 0.5em #444;
+}
+
+#container {
+ clear: both;
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ margin-bottom: -160px;
+ margin:0 auto;
+ width:960px;
+ padding:10px;
+}
+
+#site-header{
+
+}
+
+#logo{
+ font-size:48px;
+ font-weight:bold;
+}
+
+#accounts{
+ overflow:hidden;
+}
+#accounts li.account{
+ width:190px;
+ float:left;
+ margin:0 10px 10px 0;
+ padding:5px;
+ border:1px solid #ccc;
+ border-radius:5px;
+ -moz-border-radius:5px;
+ -o-border-radius:5px;
+ -khtml-border-radius:5px;
+}
+
+#footer-padding {
+ height: 70px;
+}
+
+#site-footer {
+ clear: both;
+ position: relative;
+ height: 50px;
+ background:#000;
+ color:#fff;
+ padding:10px;
+}
+

0 comments on commit 95290b3

Please sign in to comment.