R/front-page.R

Defines functions frontPage

Documented in frontPage

#' Create a styled front page
#'
#' Create a front page with title, subtitle and background image.
#'
#' @param title The title to display in the front page
#' @param subtitle The subtitle to display in the front page
#' @param background The background to display in the front page
#' @param background_scale Use CSS properties to scale the background image
#' @param ... additional arguments
#'
#' @examples
#' frontPage("Much content", "Very nice")
#'
#' @importFrom shiny div
#'
#' @export
frontPage <- function(title = "My Shiny App", subtitle = NULL, background = NULL, background_scale = TRUE, ...) {
  div(
    class = "front-page",
    frontTitle(title, subtitle),
    frontBackground(background, background_scale),
    ...
  )
}
pachadotdev/shinybird documentation built on Feb. 2, 2022, 12:27 a.m.