-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
31 lines (31 loc) · 1.15 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
page_navbar(
title = "Package Reviewer",
header = tagList(
shinyjs::useShinyjs(),
shiny::includeCSS('www/stylesheet.css')
),
theme = bs_theme(bootswatch = "pulse"),
sidebar = sidebar(id = "login",
textInput('username', 'Username'),
passwordInput('password', 'Password', placeholder = 'Enter your password'),
actionButton('login_btn', 'Login'),
br(),
p("Don't have an account? Sign up below!"),
div(class = "sign_up_btn", id = "sign_up_btn", actionButton("sign_up", "Sign Up!"))
),
bslib::nav_panel(title = "Reviews",
card(
selectizeInput('selected_package', 'Select a package to view the reviews.', choices = NULL),
shinycssloaders::withSpinner(uiOutput("avg_box")),
uiOutput('your_review'),
h3("User Reviews : "),
shinycssloaders::withSpinner(dataTableOutput('review_table'))
)
),
bslib::nav_panel(title = "About",about_text()),
bslib::nav_panel(title = "What's Next?",next_text()),
nav_spacer(),
nav_item(
input_dark_mode(id = "dark_mode", mode = "light")
),
)