Permalink
Browse files

prettiness

  • Loading branch information...
1 parent 865ac2b commit 7aa7e750916a0840b766bc96185b19747cc0f815 @chrisb committed Nov 6, 2010
Showing with 23 additions and 9 deletions.
  1. BIN public/images/logo.png
  2. +15 −3 public/stylesheets/application.css
  3. +6 −3 refuddle.rb
  4. +2 −3 views/login.haml
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -11,13 +11,24 @@ html, body {
}
#login {
+ background-image: url(/images/logo.png);
+ background-position: center 16px;
+ background-repeat: no-repeat;
+ padding: 14px;
+ padding-top: 175px;
width: 450px;
- background-color: #fafafa;
- border: 1px solid #f2f2f2;
+ background-color: #f8f8f8;
+ border: 1px solid #eaeaea;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
- padding: 14px;
+ border-radius: 10px;
+}
+
+#login input[type=text], #login input[type=password] {
+ padding: 4px;
+ border: 1px solid #eaeaea;
+ border-radius: 4px;
}
#login p.submit {
@@ -79,6 +90,7 @@ html, body {
color: #525252;
font-size: 0.9em;
line-height: 2em;
+ text-align: center;
margin-bottom: 50px !important;
}
View
@@ -19,9 +19,12 @@ def unfuddle_base_url
# enable :sessions # we meed more than 4K of data
use Rack::Session::Pool
-get '/login' do
- haml(:login)
-end
+[ '/login', '/login/:subdomain' ].each { |route|
+ get route do
+ haml(:login)
+ end
+}
+
get '/logout' do
[ :subdomain, :username, :password ].each { |k| session[k] = nil }
View
@@ -1,9 +1,8 @@
%form#login{ :action => '/login', :method => 'post' }
- %h1 Refuddle
- %p.info This is a tool I built to provide a better interface to Unfuddle. Due to the nature of the Unfuddle API I will need your username and password. If you're not comfortable providing this info... well, that sucks. Perhaps try changing your Unfuddle password to something else?
+ %p.info Due to the nature of the Unfuddle API I will need your username and password. If you're not comfortable providing this info... well, that sucks. Perhaps try changing your Unfuddle password to something else?
%p
%label{ :for => 'subdomain' } Unfuddle URL:
- %input{ :type => 'text', :name => 'subdomain' }
+ %input{ :type => 'text', :name => 'subdomain', :value => params[:subdomain] }
\.unfuddle.com
%p
%label{ :for => 'username' } Username:

0 comments on commit 7aa7e75

Please sign in to comment.