-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
78 lines (68 loc) · 1.95 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
ui <- fluidPage(
tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=Open+Sans:400,700"),
useShinyjs(),
# Allow user to search using enter button:
tags$head(HTML('
<script>
window.onload = function() {
document.getElementById("search_bar-query_text_text").focus();
};
</script>
')),
fluidRow(
column(
a(img(src = "text_depot_icon/TextDepotIcon_Image_S.jpg", width = 105, style = "float: left; padding: 10px 10px 0 0"),
href = "https://github.com/CityofEdmonton/text_depot"),
span("TEXT DEPOT", style = sprintf('font-weight: 700;
font-size: 35px;
font-family: "Open Sans";
margin: 20px 0 20px 0;
color: %s', main_text_color())),
br(),
span(paste0("A simplified way to search and analyze topics of interest related to ",
get_configs()$location_name),
style = sprintf("color: %s", main_text_color())),
br(),
actionLink("more_info", paste0("Click for More Info")),
width = 12
)
),
br(),
searchBarUI("search_bar"),
br(),
fluidRow(
column(
textOutput("query_summary"),
width = 6
)
),
br(),
tabsetPanel(
id = "main_tabset",
tabPanel("Matching Documents",
br(),
searchResultsTableUI("search_results_table"),
icon = icon("list")
),
tabPanel("Timeline",
br(),
volumeTimelineUI("volume_timeline"),
icon = icon("chart-line")
),
tabPanel("Sentiment",
sentimentUI("sentiment"),
icon = icon("heartbeat")
),
tabPanel("Neighbourhoods",
br(),
neighbourhoodMapUI("neighbourhood_map"),
icon = icon("city")
),
tabPanel("Download",
br(),
dataDownloadUI("data_download"),
icon = icon("download")
)
),
br()
)