-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
31 lines (30 loc) · 1.55 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
source("UI/ui_overview.R", local = TRUE)
source("UI/ui_plots.R", local = TRUE)
source("UI/ui_about.R", local = TRUE)
source("UI/ui_fullTable.R", local = TRUE)
ui <- fluidPage(
title = "COVID-19 Worldwide Cases",
tags$head(
tags$link(rel = "shortcut icon", type = "image/png", href = "logo.png")
),
tags$style(type = "text/css", ".container-fluid {padding-left: 0px; padding-right: 0px !important;}"),
tags$style(type = "text/css", ".navbar {margin-bottom: 0px;}"),
tags$style(type = "text/css", ".content {padding: 0px;}"),
tags$style(type = "text/css", ".row {margin-left: 0px; margin-right: 0px;}"),
tags$style(HTML(".col-sm-12 { padding: 5px; margin-bottom: -15px; }")),
tags$style(HTML(".col-sm-6 { padding: 5px; margin-bottom: -15px; }")),
navbarPage(
title = div("COVID-19 Data Analysis Application", style = "padding-left: 10px"),
inverse = TRUE,
collapsible = TRUE,
fluid = TRUE,
tabPanel("Home", page_overview, value = "page-overview"),
tabPanel("Tabular Analysis", page_fullTable, value = "page-fullTable"),
tabPanel("Graphical Analysis", page_plots, value = "page-plots"),
tabPanel("Developer", page_about, value = "page-about"),
tags$script(HTML("var header = $('.navbar > .container-fluid');
header.append('<div style=\"float:right\"><a target=\"_blank\" href=\"https://github.com/satviktiwari\"><img src=\"logo.png\" alt=\"alt\" style=\"float:right;width:33px;padding-top:10px;margin-top:-50px;margin-right:10px\"> </a></div>');
console.log(header)")
)
)
)