diff --git a/Changelog.md b/Changelog.md index 045c33bd4e1a889cdcd7466f5b9a9877eed9ab0f..86bea926ec576cd28e383e76d66ced4eb0bc9380 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ * Refactor people_controller#show and photos_controller#index [#4002](https://github.com/diaspora/diaspora/issues/4002) * Modularize layout [#3944](https://github.com/diaspora/diaspora/pull/3944) +* Add header to the sign up page [#3944](https://github.com/diaspora/diaspora/pull/3944) ## Features diff --git a/app/assets/stylesheets/new_styles/_registration.scss b/app/assets/stylesheets/new_styles/_registration.scss index 3be120d60de0bfbce1e0db19def46f062055944d..16717ea9d282dbee5660957be85ea3b2bfbe8d5a 100644 --- a/app/assets/stylesheets/new_styles/_registration.scss +++ b/app/assets/stylesheets/new_styles/_registration.scss @@ -1,6 +1,5 @@ #registration { position : absolute; - top : 0; left : 0; background-color : #afc652; min-height : 100%; @@ -8,10 +7,6 @@ color : #fff; - .container { - margin-top : 100px; - } - #create-something-text { font-family : Roboto-Light; font-size : 100px; @@ -52,3 +47,55 @@ } } } + +ul#landing_nav { + margin: 0; + padding: 0; + + position: absolute; + top: 10px; + right: 20px; + + > li { + display: inline; + margin-right: 0.5em; + + &:last-child { + margin-right: 0; + } + + a { + color: $blue; + + &.login { + @include border-radius(5px); + @include box-shadow(0,1px,1px,#666); + + padding: 5px 8px; + + background-color: #000; + + border-top: 1px solid #000; + + &:hover { + background-color: #222; + } + } + } + + text-shadow: 0 1px 0 #000; + } +} + + +body > header { + @include box-shadow(0,1px,3px,rgba(0,0,0,0.9)); + + background-color: rgb(40,35,35); + background-image: image-url('header-bg.png'); + + z-index: 1001; + padding: 6px 0; + color: #CCC; + height: 26px; +} diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 6a6c99f6cd1a28540503e4fb4237267158576524..b1fbd635bc48dd4360c2b7577f33cb6d493c3de2 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -5,7 +5,7 @@ class RegistrationsController < Devise::RegistrationsController before_filter :check_registrations_open_or_vaild_invite!, :check_valid_invite! - layout "application", :only => [:new] + layout "with_header", :only => [:new] before_filter -> { @css_framework = :bootstrap }, only: [:new] def create diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index 862a6e3156810922b12a996398d598351c91590a..e34632f1323c3a605915057c77e494ebe27e96d6 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -5,7 +5,7 @@ %header - unless current_user .container{:style => "position:relative;"} - = link_to image_tag('branding/logo_small.png', :height => "16px", :width => "161px", :style => 'position:relative;top:5px;'), root_path + = link_to image_tag('branding/logo_small.png', :height => "16px", :width => "161px", :style => 'margin-left: 10px'), root_path %ul#landing_nav %li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"