#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @importFrom bslib bs_theme
#' @importFrom shinyalert useShinyalert
#' @importFrom DT DTOutput
#' @noRd
app_ui <- function(request) {
tagList(
# Leave this function for adding external resources
golem_add_external_resources(),
# Your application UI logic
fluidPage(
#h1("Gospel.pptx"),
theme = bs_theme(version = 5),
fluidRow(class = "logo",
img(src = "www/gospelslides.png"),
),
fluidRow(
column(5, align = "center",
wellPanel(
textInput("search_string", label = "Digite parte do nome ou da letra do Louvor:",
placeholder = "Neste lugar tu \u00e9s real. Vou me entregar...",
width = "70%", value = ""),
radioButtons("search_method", label = "Pesquisar em:",
choices = c("T\u00edtulo (R\u00e1pido)" = "music", "Letra (Lento)" = "lyric"),
selected = "lyric", inline = TRUE),
actionButton("search_btn", "Pesquisar", class = "btn btn-primary")
)
),
column(7, align = "center",
wellPanel(
tabsetPanel(type = "tabs",
tabPanel("Listagem", DTOutput("lyrics_tbl",
width = "650px",
height = "340px")),
tabPanel("Editor",
textAreaInput("lyrics_editor", label = NULL,
width = "650px", height = "287px",
resize = "none"),
fluidRow(
column(5, align = "left", style = "margin-top: 3px;",
checkboxInput("open_slide_cbox", "Abrir Slide",
value = TRUE)),
column(7, align = "left",
actionButton("create_slide_btn", "Criar Slide",
class = "btn btn-primary"))
)
),
tabPanel("B\u00edblia",
fluidRow(
column(12,
style = "display:block ruby;margin-top: 100px;margin-bottom: 107px",
selectInput("book", "Livro", choices = unique(bible$book),
width = "50%"),
selectInput("chapter", "Cap\u00edtulo", choices = NULL,
width = "50%")),
fluidRow(
column(6, style = "margin-top: 3px;",
checkboxInput("open_slide_bible_cbox", "Abrir Slide",
value = TRUE)),
column(6, actionButton("create_slide_bible_btn", "Criar Slide",
class = "btn btn-primary"))
)
)
)
)
)
)
)
)
)
}
#' 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 = 'SlidesGospel'
),
# Add here other external resources
# for example, you can add shinyalert::useShinyalert()
useShinyalert()
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.