Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated styles and added logos to the homepage

  • Loading branch information...
commit dfa1261a44ca8c3547c7ef0a07b2cf7a497e5096 1 parent 0d56416
@kaiwren kaiwren authored
View
1  Gemfile
@@ -6,6 +6,7 @@ gem 'rack-test', '~> 0.5.6', :require => 'rack/test'
group :web do
gem 'sinatra', '~> 1.1.2'
+ gem 'sinatra-static-assets', '~> 0.5.0'
gem 'haml', '~> 3.0.25'
gem 'sinatra-outputbuffer', '~> 0.1'
end
View
1  lib/goldberg_api.rb
@@ -4,6 +4,7 @@
Bundler.require(:web)
require "sinatra/outputbuffer"
+require 'sinatra/static_assets'
set :views, File.join(File.dirname(__FILE__), 'views')
set :public, File.join(File.dirname(__FILE__), '..', 'public')
View
28 lib/views/layout.haml
@@ -1,8 +1,9 @@
%html
%head
%title Goldberg
- %script{:type => "text/javascript", :src => "/js/jquery-1.5.min.js"}
- %link{:rel => 'stylesheet', :href => '/stylesheets/blueprint/screen.css', :type => 'text/css'}
+ = javascript_script_tag '/js/jquery-1.5.min.js'
+ = stylesheet_link_tag '/stylesheets/blueprint/screen.css'
+ = stylesheet_link_tag '/stylesheets/layout.css'
- if defined?(keep_refreshing) && keep_refreshing
:javascript
$(document).ready(function(){
@@ -14,8 +15,21 @@
= yield_content :head
%body
.container
- %h1
- %a{:href => '/'} Goldberg
- %hr
-
- = yield
+ .header
+ .title
+ %h1
+ %a{:href => '/'} Goldberg
+ %h4 Lightweight Continuous Integration in Ruby
+
+ .page
+ = yield
+ .footer
+ .logo
+ %a{:href => 'http://c42.in'}
+ = image_tag '/images/c42-engineering-logo.png'
+ .message
+ .author
+ %a{:href => 'http://c42.in'} C42 Engineering
+ Open Source
+ .version
+ = "Version #{Goldberg::VERSION::STRING}"
View
BIN  public/images/c42-engineering-logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
4 public/stylesheets/dashboard.css
@@ -1,4 +1,3 @@
-#all_projects a, a:visited { color: black; }
#all_projects tr.headings td { font-weight: bold; }
#all_projects tr.project_row td { border-top: white solid 1em; background-color: white; }
@@ -29,5 +28,4 @@
#all_projects tr.project_row td.number_of_tests {
width: 20%;
-}
-
+}
View
42 public/stylesheets/layout.css
@@ -0,0 +1,42 @@
+html {
+ height: 100%;
+ min-height: 100%;
+ width: 100%;
+}
+
+body {
+ height: 100%;
+ min-height: 100%;
+ width: 100%;
+}
+
+a, a:visited { color: black; }
+
+div.container div.header {
+ border-bottom: 1px #ddd solid;
+}
+
+div.container div.header div.title a {
+ text-decoration: none;
+}
+
+div.container div.footer {
+ width: inherit;
+ position: absolute;
+ bottom: 0;
+ border-top: 1px #ddd solid;
+ text-align: right;
+ padding-top: .25em;
+}
+
+div.container div.footer div.logo {
+ float: left;
+}
+
+div.container div.footer div.logo img{
+ width: 50px;
+}
+
+div.container div.footer div.author {
+ font-size: 1.3em;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.