GRN2-134: Added Color Input for lighten and darken (#529)

* Added Color Input for lighten and darken

* rspec
This commit is contained in:
farhatahmad
2019-05-22 13:34:37 -04:00
committed by Jesus Federico
parent 1a5cecc0c5
commit 9638ebcbc5
12 changed files with 192 additions and 35 deletions

View File

@ -116,6 +116,12 @@ module Greenlight
# Default primary color if the user does not specify one
config.primary_color_default = "#467fcf"
# Default primary color lighten if the user does not specify one
config.primary_color_lighten_default = "#e8eff9"
# Default primary color darken if the user does not specify one
config.primary_color_darken_default = "#316cbe"
# Default registration method if the user does not specify one
config.registration_method_default = config.registration_methods[:open]

View File

@ -29,8 +29,11 @@ en:
placeholder: Image Url...
title: Branding Image
color:
info: Change the primary color used across the website
info: Changing the Regular Color will change both Lighten and Darken. Lighten and Darken can then be changed individually
title: Primary Color
regular: Regular
lighten: Lighten
Darken: Darken
registration:
info: Change the way that users register to the website
title: Registration Method

View File

@ -39,6 +39,8 @@ Rails.application.routes.draw do
scope '/admins' do
post '/branding', to: 'admins#branding', as: :admin_branding
post '/coloring', to: 'admins#coloring', as: :admin_coloring
post '/coloring_lighten', to: 'admins#coloring_lighten', as: :admin_coloring_lighten
post '/coloring_darken', to: 'admins#coloring_darken', as: :admin_coloring_darken
post '/signup', to: 'admins#signup', as: :admin_signup
get '/edit/:user_uid', to: 'admins#edit_user', as: :admin_edit_user
post '/promote/:user_uid', to: 'admins#promote', as: :admin_promote