2019-05-16 00:37:48 +02:00
|
|
|
#
|
|
|
|
# Main UI File
|
|
|
|
#
|
|
|
|
|
|
|
|
# Import files
|
|
|
|
source("UI/SidebarPanel.R")
|
|
|
|
source("UI/BalanceComponent.R")
|
|
|
|
|
|
|
|
# UI
|
2019-05-16 01:19:22 +02:00
|
|
|
ui <- navbarPage(
|
|
|
|
title = "Football results 1872-2018",
|
|
|
|
theme = shinytheme("united"),
|
2019-05-16 00:37:48 +02:00
|
|
|
|
2019-05-16 01:19:22 +02:00
|
|
|
# Tab 1
|
|
|
|
tabPanel("Team statistics"),
|
2019-05-16 00:37:48 +02:00
|
|
|
|
2019-05-16 01:19:22 +02:00
|
|
|
# Tab 2
|
|
|
|
tabPanel("Teams comparison",
|
|
|
|
fluidRow(
|
|
|
|
column(4,
|
|
|
|
teamsSidebarPanel()
|
|
|
|
),
|
|
|
|
column(8,
|
2019-05-16 00:37:48 +02:00
|
|
|
balanceComponent(6, 6),
|
|
|
|
fluidRow(
|
|
|
|
DT::dataTableOutput("results_pagination")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2019-05-16 01:19:22 +02:00
|
|
|
),
|
|
|
|
|
|
|
|
# Tab 3
|
|
|
|
tabPanel("World map")
|
2019-05-16 00:37:48 +02:00
|
|
|
)
|