Nothing
#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
# htis is the padding definition for all panels to respect navbar and footer
navbar_padding <- "56px"
footer_padding <- "48px"
nps <- paste0("padding-top: ", navbar_padding, "; padding-bottom: ", footer_padding)
tagList(
# Leave this function for adding external resources
golem_add_external_resources(),
# Erzeuge einen Startbildschirm
waiter::waiter_preloader(html = tagList(waiter::spin_fading_circles(), h2("Preloader..."))),
# Your application UI logic
bslib::page_navbar(
id = "navbarpage",
title = list(
shiny::img(src = "www/bam_logo_200px_transparent.png", height = "40px", position = "absolute", margin = "auto", alt = "BAM Logo"),
shiny::strong("BAM", style = "color: rgb(210,0,30);"),
shiny::em(get_golem_config("golem_name"), style = "color: rgb(0,175,240);")
),
selected = "Predict",
navbar_options = list(
bg = "black",
position = "fixed-top"
),
footer = shiny::div(
style = "padding-left: var(--bslib-spacer, 1rem); font-family: var(--bs-font-monospace); position: fixed; bottom: 0; background-color: black; color: white; width: 100%",
shiny::HTML(
get_golem_config("golem_name"), "|",
get_golem_config("app_version"), "|",
get_golem_config("app_date"), "|",
'<a href="mailto:jan.lisec@bam.de">jan.lisec@bam.de</a>'#,
#ifelse(get_golem_config("bam_server"), '| <a href="https://www.bam.de/Navigation/EN/Services/Privacy-Policy/privacy-policy.html" target="_blank" rel="noopener noreferrer">BAM Privacy Policy</a>', "")
)
),
bslib::nav_panel(
id = "panel_fioRa",
title = "Predict",
icon = shiny::icon("angle-right"),
shiny::div(style = nps, page_fioRa_ui("fioRa"))
),
# bslib::nav_panel(
# id = "panel_tools",
# title = "Tools",
# icon = shiny::icon("angle-right"),
# shiny::div(style = nps, shiny::HTML("Auxilliary tools, <i>i.e.</i> to retrieve a SMILES for a compound name or similar..."))
# ),
bslib::nav_panel(
id = "panel_help",
title = "Help",
icon = shiny::icon("angle-right"),
shiny::div(style = nps, shiny::HTML('Please go to the <a href="https://github.com/janlisec/fioRa" target="_blank" rel="noopener noreferrer">fioRa GitHub page</a> to read the documentation.'))
)
)
)
}
#' Add external Resources to the Application
#'
#' This function is internally used to add external
#' resources inside the Shiny application.
#'
#' @noRd
golem_add_external_resources <- function() {
golem::add_resource_path("www", app_sys("app/www"))
tags$head(
golem::favicon(ico = "BAMLogo"),
golem::bundle_resources(
path = app_sys("app/www"),
app_title = get_golem_config("golem_name")
),
waiter::use_waiter(),
shinyjs::useShinyjs()
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.