diff --git a/app/assets/images/brand_logo.png b/app/assets/images/brand_logo.png new file mode 100644 index 00000000000..1abd7d68d65 Binary files /dev/null and b/app/assets/images/brand_logo.png differ diff --git a/app/assets/stylesheets/sections/login.scss b/app/assets/stylesheets/sections/login.scss index a78a9cd4879..b3c21a8917d 100644 --- a/app/assets/stylesheets/sections/login.scss +++ b/app/assets/stylesheets/sections/login.scss @@ -6,11 +6,18 @@ } .login-box{ - max-width: 304px; position: relative; - @include border-radius(5px); margin: auto; - background: white; + padding: 20px; + background: #f5f5f5; + border: 1px solid #EEE; + } + + .brand-image { + margin-bottom: 20px; + img { + max-width: 100%; + } } .login-logo{ @@ -19,7 +26,7 @@ } .form-control { - background-color: #f1f1f1; + background-color: #FFF; font-size: 16px; padding: 14px 10px; width: 100%; diff --git a/app/helpers/brand_helper.rb b/app/helpers/brand_helper.rb new file mode 100644 index 00000000000..103468a8ce3 --- /dev/null +++ b/app/helpers/brand_helper.rb @@ -0,0 +1,23 @@ +module BrandHelper + def brand_title + 'GitLab Community Edition' + end + + def brand_image + image_tag 'brand_logo.png' + end + + def brand_text + default_text =<