R/mod_00_header.R

Defines functions mod_00_header_server mod_00_header_ui

#' 00_header UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_00_header_ui <- function(id) {
  tagList(
    fluidRow(
      style = "background-color: #005EB8; width: 100%",
      align = "center",
      fluidRow(
        style = "background-color: #005EB8; max-width: 950px",
        align = "left",
        splitLayout(
          cellArgs = list(style = "padding: 15px"),
          tags$a(
            href = "https://www.nhs.uk/",
            target = "_blank",
            img(src = "www/logo.jpg", height = "10%", width = "10%")
          )
        )
      )
    )
  )
}

#' 00_header Server Function
#'
#' @noRd
mod_00_header_server <- function(id) {
  moduleServer(id, function(input, output, session) {

  })
}
MarkMc1089/mongo2shiny documentation built on Dec. 17, 2021, 3:13 a.m.