From e3548223b895d21ca6ce481348a2e02e7df45ed5 Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Mon, 28 Sep 2009 10:39:04 -0400 Subject: [PATCH] Sprucing up the footer and reorganizing static pages a bit --- app/views/layouts/application.html.erb | 11 +++++------ app/views/pages/about.html.erb | 19 +++++++++++++++++++ app/views/pages/docs.html.erb | 16 ++++++++++++++++ public/stylesheets/screen.css | 12 ++++++++++++ 4 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 app/views/pages/about.html.erb create mode 100644 app/views/pages/docs.html.erb diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index e9c9bc4aa8c..1ad3525e039 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -54,16 +54,15 @@ diff --git a/app/views/pages/about.html.erb b/app/views/pages/about.html.erb new file mode 100644 index 00000000000..d2629f8427b --- /dev/null +++ b/app/views/pages/about.html.erb @@ -0,0 +1,19 @@ +<% @title = "About" %> +<% @subtitle = "what this is" %> +

+ Welcome to Gemcutter, the Ruby community's new way to host gems. The purpose of this project is three-fold: +

+
    +
  1. * Provide a better API for dealing with gems
  2. +
  3. * Create more transparent and accessible project pages
  4. +
  5. * Enable the community to improve and enhance the site
  6. +
+

+ The project was started in April 2009 by Nick Quaranto, and has since grown to include the contributions of over 15 Rubyists and thousands of gem downloads. +

+

+ Although Gemcutter is not run by one specific company, plenty have helped us out so far. The current design of the site was sponsored by <%= link_to "Thoughtbot", "http://thoughtbot.com" %>. The site itself is hosted on <%= link_to "Heroku", "http://heroku.com" %>, and they have donated resources for us to use. <%= link_to "GitHub", "http://github.com" %> has also been invaluable for helping us collaborate and share code easily. +

+

+Some insights into the technical aspects of the site: It's 100% Ruby. The main site is a <%= link_to "Rails", "http://rubyonrails.org" %> application, and the RubyGem serving is done through <%= link_to "Sinatra", "http://www.sinatrarb.com" %>. Gems are hosted on <%= link_to "Amazon S3", "http://aws.amazon.com/s3/" %>, and the time between publishing a new gem and having it ready for installation is minimal. For more info, <%= link_to "please check out the code", "http://github.com/qrush/gemcutter" %>, which is <%= link_to "MIT licensed", "http://www.opensource.org/licenses/mit-license.php" %> over at GitHub. +

diff --git a/app/views/pages/docs.html.erb b/app/views/pages/docs.html.erb new file mode 100644 index 00000000000..5980b8287fa --- /dev/null +++ b/app/views/pages/docs.html.erb @@ -0,0 +1,16 @@ +<% @title = "Docs" %> +<% @subtitle = "yeah, we got 'em" %> +

+ <%= link_to "Gem Docs", page_url("gem_docs") %> Use the Gemcutter gem to publish your own RubyGems and more. +

+

+ <%= link_to "API Docs", page_url("api_docs") %> + Learn to use the Gemcutter API to interact in new ways with your RubyGems. +

+

+ <%= link_to "RubyGem Docs", "http://docs.rubygems.org" %> + Read up on the RubyGem specification and how to use RubyGems. +

+

+ Know of more great RubyGem documentation sources? <%= link_to "Fork away", "http://github.com/qrush/gemcutter" %> and add your own! +

diff --git a/public/stylesheets/screen.css b/public/stylesheets/screen.css index 4ff01c8c33b..60341c8c956 100644 --- a/public/stylesheets/screen.css +++ b/public/stylesheets/screen.css @@ -739,14 +739,26 @@ body { .footer .links #thoughtbot { float: right; + font-size: 0.9em; + text-align: right; + margin-top: -25px; } .footer .links #heroku { + text-align: right; + margin-top: -25px; + font-size: 1em; float: right; margin-right: 25px; margin-bottom: 20px; } +.footer .links #thoughtbot img, +.footer .links #heroku img { + padding-top: 5px; + display: block; +} + .footer a:hover { text-decoration: underline; }