Skip to content

Instantly share code, notes, and snippets.

@jaehyeon-kim
Created April 14, 2016 23:13
Show Gist options
  • Save jaehyeon-kim/ddc0b0764dd3b47790a35ce7c16c8dfc to your computer and use it in GitHub Desktop.
Save jaehyeon-kim/ddc0b0764dd3b47790a35ce7c16c8dfc to your computer and use it in GitHub Desktop.
Shiny login trial
ui_login <- function() {
fluidRow(
tags$head(tags$style(HTML(".container-fluid {margin: 25px;}"))),
column(2, offset = 5,
div(id = "login_div",
wellPanel(
h4("LOGIN"),
textInput("username", "User name"),
passwordInput("password", "Password"),
br(),
actionButton("login", "Log in", icon = icon("user"))
)
)
)
)
}
ui_main <- function() {
fluidRow(
column(2, offset = 5,
wellPanel(h1("Hello!"))
)
)
}
ui <- (htmlOutput("page"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment