#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
tagList(
tags$html(lang = "en"),
# Leave this function for adding external resources
golem_add_external_resources(),
# List the first level UI elements here
navbarPage(title = div(img(src = "www/main-logo.png", height = "60px", alt = "MetCouncil logo")),
# title = img(src="www/main-logo.png", height = "70px"),
id = "navBar",
# theme = "www/style.css",
collapsible = TRUE,
# inverse = TRUE,
# windowTitle = "EVA",
position = "fixed-top",
header = tags$style(
".navbar-right {
float: right !important;
}",
"body {padding-top: 75px;}"),
tabPanel("HOME",
mod_home_ui("home_ui_1"), br(), br(),
mod_intro_ui("intro_ui_1"),
h1('Visualize regional "opportunity zones"'),br(),
HTML("<p>Select variables of interest at the left and update map to view results. Warm and bright (yellow, orange) values and high ranks correspond to 'opportunity zones' where economic investments could have disporportionately positive impacts for the future prosperity of the entire region. Cool and dark colors (black, purple) correspond to lower opportunity areas. Click on any tract to get more information.</p>"),
br(),
sidebarPanel(width = 3,
mod_map_selections_ui("map_selections_ui_1")),
mainPanel(width = 9,
fluidRow(mod_map_overview_ui("map_overview_ui_1"))),
hr(), br(), br(),
# h1("Download tract scores"), br(),
# mod_download_scores_ui("download_scores_ui_1"),
# hr(), br(), br(),
h1("Tract-specific information"), br(),
HTML("<p>Click on a specific tract in the map above in order to view how it compares to the average tract. The plot shows the standardized and scaled scores. The following table shows raw values (units vary across variables).</p>"), br(),
HTML("<p> You can also download the compiled final scores (based on your selected variables, above) for all the tracts by clicking the download button.</p>"),
fluidRow(column(width = 12, align = "center",
mod_download_scores_ui("download_scores_ui_1"))),
br(),
fluidRow(column(width = 12,
mod_plot_tract_ui("plot_tract_ui_1"),
hr()
# mod_evabar_ui("evabar_ui_1")
)),
fluidRow(
column(width = 12,
mod_table_ui("table_ui_1")
))
),
tabPanel("Notes",
mod_notes_ui("notes_ui_1")
# navbarMenu("Notes",
# tabPanel("Data Sources", HTML("<br><br><br>"), mod_notes_ui("notes_ui_1")),
# "----",
# "Future steps",
# tabPanel("Example", HTML("<br><br><br>A place holder to show how we might want to add information.")),
# tabPanel("Example2", HTML("<br><br><br>And more info could be added in a fashion similar to this."))
)
))
}
#' Add external Resources to the Application
#'
#' This function is internally used to add external
#' resources inside the Shiny application.
#'
#' @import shiny
#' @importFrom golem add_resource_path activate_js favicon bundle_resources
#' @noRd
golem_add_external_resources <- function(){
add_resource_path(
'www', app_sys('app/www')
)
tags$head(
favicon(),
bundle_resources(
path = app_sys('app/www'),
app_title = 'eva.app'
)
# Add here other external resources
# for example, you can add shinyalert::useShinyalert()
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.