diff --git a/app/assets/stylesheets/themes/dc_repository.scss b/app/assets/stylesheets/themes/dc_repository.scss index 98cc23f0..22f7fe7a 100644 --- a/app/assets/stylesheets/themes/dc_repository.scss +++ b/app/assets/stylesheets/themes/dc_repository.scss @@ -234,9 +234,17 @@ body.dc_repository { } .background-container { - height: 90%; + height: 100%; z-index: 0; align-self: flex-end; + background-size: cover; + background-position: center; + opacity: 0; + transition: opacity 2s ease-in-out; + } + + .background-container.active { + opacity: 1; } .circle-container { diff --git a/app/controllers/sites_controller.rb b/app/controllers/sites_controller.rb index dd90273f..5393a8b9 100644 --- a/app/controllers/sites_controller.rb +++ b/app/controllers/sites_controller.rb @@ -24,7 +24,7 @@ def set_site end def update_params - params.permit(:remove_banner_image, + params.permit(:remove_banner_images, :remove_logo_image, :remove_directory_image, :remove_default_collection_image, @@ -37,7 +37,7 @@ def site_theme_params REMOVE_TEXT_MAPS = { "remove_logo_image" => "logo_image_text", - "remove_banner_image" => "banner_image_text", + "remove_banner_images" => "banner_image_text", "remove_directory_image" => "directory_image_text", "remove_default_collection_image" => "default_collection_image_text", "remove_default_work_image" => "default_work_image_text" diff --git a/app/helpers/hyrax_helper.rb b/app/helpers/hyrax_helper.rb index 1fa738b9..7131a5bf 100644 --- a/app/helpers/hyrax_helper.rb +++ b/app/helpers/hyrax_helper.rb @@ -23,8 +23,8 @@ def institution_name_full Site.institution_name_full || super end - def banner_image - Site.instance.banner_image? ? Site.instance.banner_image.url : super + def banner_images + Site.instance.banner_images.any? ? Site.instance.banner_images.map(&:url) : [banner_image] end def logo_image diff --git a/app/views/hyrax/admin/appearances/_banner_image_form.html.erb b/app/views/hyrax/admin/appearances/_banner_image_form.html.erb index c92d3b4c..07a953d7 100644 --- a/app/views/hyrax/admin/appearances/_banner_image_form.html.erb +++ b/app/views/hyrax/admin/appearances/_banner_image_form.html.erb @@ -1,19 +1,31 @@ <%= simple_form_for @form, url: admin_appearance_path do |f| %>