-
Notifications
You must be signed in to change notification settings - Fork 4
/
ui.R
30 lines (29 loc) · 1.56 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
source("sections/ui_overview.R", local = TRUE)
source("sections/ui_plots.R", local = TRUE)
source("sections/ui_about.R", local = TRUE)
source("sections/ui_fullTable.R", local = TRUE)
ui <- fluidPage(
title = "COVID-19 Schweiz - Open Source Version",
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 Schweiz - Open Source Version", style = "padding-left: 10px;"),
collapsible = TRUE,
fluid = TRUE,
tabPanel(HTML("Übersicht"), page_overview, value = "page-overview"),
tabPanel("Tabelle", page_fullTable, value = "page-fullTable"),
tabPanel("Grafiken", page_plots, value = "page-plots"),
tabPanel("Info", 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/chschoenenberger/covid19_dashboard_ch\"><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)")
)
)
)