diff --git a/Gemfile b/Gemfile index b98554cae..77cd667d9 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,8 @@ gem 'rails', '3.0.1' gem 'bundler', '>= 1.0.0' gem "chef", :require => false +gem "nokogiri", "1.4.3.1" + #Security gem 'devise', '1.1.3' gem 'devise-mongo_mapper', :git => 'git://github.com/collectiveidea/devise-mongo_mapper' diff --git a/Gemfile.lock b/Gemfile.lock index b64c58475..99c54a70b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -219,7 +219,7 @@ GEM multi_json (0.0.5) multipart-post (1.0.1) net-ldap (0.1.1) - nokogiri (1.4.4) + nokogiri (1.4.3.1) oa-basic (0.1.6) multi_json (~> 0.0.2) nokogiri (~> 1.4.2) @@ -298,7 +298,7 @@ GEM rspec-core (2.1.0) rspec-expectations (2.1.0) diff-lcs (~> 1.1.2) - rspec-instafail (0.1.3) + rspec-instafail (0.1.4) rspec-mocks (2.1.0) rspec-rails (2.1.0) rspec (~> 2.1.0) @@ -375,6 +375,7 @@ DEPENDENCIES mocha mongo_mapper! mongrel + nokogiri (= 1.4.3.1) omniauth pubsubhubbub rails (= 3.0.1) diff --git a/app/views/devise/sessions/new.html.haml b/app/views/devise/sessions/new.html.haml index 3a6a47cdc..732521ff9 100644 --- a/app/views/devise/sessions/new.html.haml +++ b/app/views/devise/sessions/new.html.haml @@ -1,34 +1,26 @@ -.span-10.append-1.last - .floating - %h3 - = t('.login') - = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| - #user - %p.username - = f.label :username , t('username') - = f.text_field :username - %p.user_network - ="@#{APP_CONFIG[:terse_pod_url]}" +/%h1 This is a technology preview, do not provide any private information. +/%h3 your account may be deleted until we move into a more stable development period. +/%h3 USE AT YOUR OWN RISK!! - %p - = f.label :password , t('password') - = f.password_field :password - /%p - /- if devise_mapping.rememberable? - / = f.check_box :remember_me - / = f.label :remember_me , t('.remember_me') - = f.submit t('.sign_in') - - %p - = render :partial => "devise/shared/links" - %p - = link_to t('.have_a_problem'), 'http://diaspora.shapado.com/' +.span-22.prepend-1.last -.span-13.last - %h1 - This is a technology preview, do not provide any private information. - %h3 - your account may be deleted until we move into a more stable development period. - %h3 - USE AT YOUR OWN RISK!! + #landing_content + + #diaspora_description.section + %p + Share what you want, with who you want. + + #signup_field.section + = render 'shared/mail_signup_form' + + #login_field.section + already have an account? + = link_to "log in here", "#" + +.span-24.last{:style=>"text-align:center;"} + %ul#press_logos + %li= image_tag "press_logos/nyt.png" + %li= image_tag "press_logos/nymag.gif" + %li= image_tag "press_logos/mashable.jpeg" + %li= image_tag "press_logos/techcrunch.gif" diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index a3d81c164..657f0497c 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -53,17 +53,23 @@ - flash.each do |name, msg| = content_tag :div, msg, :id => "flash_#{name}" - %header + %header.landing_page .container{:style => "position:relative;"} #notification #diaspora_text - = link_to "DIASPORA", (current_user ? root_path : new_user_session_path) + = link_to "DIASPORA*", (current_user ? root_path : new_user_session_path) %span.sub_text - PREVIEW + ALPHA - - if current_user + - unless current_user + .right{:style => "top:70px;"} + %ul#landing_nav + %li= link_to "blog", "http://blog.joindiaspora.com" + %li= link_to "developers", "https://github.com/diaspora/diaspora" + %li= link_to "login", "#" + - else #global_search = form_tag(people_path, :method => 'get') do = text_field_tag 'q', nil, :placeholder => t('search'), :type => 'search', :results => 5 @@ -83,8 +89,17 @@ .span-24.last = yield - .span-24.last - = render "posts/debug" + /.span-24.last + /= render "posts/debug" + .clearfix + + %footer + .container + .brandon POWERED BY DIASPORA* + %ul#footer_nav + %li= link_to "blog", "http://blog.joindiaspora.com" + %li= link_to "developers", "https://github.com/diaspora/diaspora" + :javascript var is_ssl = ("https:" == document.location.protocol); var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/"; @@ -98,3 +113,4 @@ feedback_widget_options.color = "#222"; feedback_widget_options.style = "idea"; var feedback_widget = new GSFN.feedback_widget(feedback_widget_options); + diff --git a/app/views/shared/_mail_signup_form.erb b/app/views/shared/_mail_signup_form.erb new file mode 100644 index 000000000..86d81338d --- /dev/null +++ b/app/views/shared/_mail_signup_form.erb @@ -0,0 +1,133 @@ + + + + + + +