diff --git a/app/static/appsilon-logo.png b/app/static/logo.png similarity index 100% rename from app/static/appsilon-logo.png rename to app/static/logo.png diff --git a/app/view/mod_header.R b/app/view/mod_header.R index e94e1d0..e6a860c 100644 --- a/app/view/mod_header.R +++ b/app/view/mod_header.R @@ -1,5 +1,9 @@ box::use( + config[ + get + ], shiny[ + a, actionLink, div, h2, @@ -12,14 +16,18 @@ box::use( #' @export ui <- function(id) { ns <- NS(id) + branding <- get("branding") div( class = "header", div( class = "left header-section", - img( - src = "static/appsilon-logo.png", - alt = "Appsilon logo", - href = "https://demo.appsilon.com" + a( + img( + src = branding$logo$src, + alt = branding$logo$alt + ), + href = branding$logo$href, + target = "_blank" ), div( class = "vertical-line" diff --git a/config.yml b/config.yml index f47b412..4a6c758 100644 --- a/config.yml +++ b/config.yml @@ -3,8 +3,12 @@ default: rhino_log_file: !expr Sys.getenv("RHINO_LOG_FILE", NA) app_role: "owner" branding: + logo: + src: "static/logo.png" + alt: "Appsilon logo" + href: "https://demo.appsilon.com" colors: - red: "#a50e0e"# + red: "#a50e0e" red-highlight: "#fce8e650" green: "#3a5a40" green-highlight: "#e0f0df50"