-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
116 lines (114 loc) · 2.72 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
ui <- tagList(
tags$head(
tags$script(src = "js/main.js"),
tags$link(rel = "stylesheet", type = "text/css", href = "styles.css"),
shinyjs::useShinyjs(),
waiter::use_waiter()
),
page_navbar(
id = "tabs",
title = app_title,
collapsible = TRUE,
fillable_mobile = FALSE,
inverse = FALSE,
underline = FALSE,
position = "fixed-top",
bg = "#ffffff",
theme = bs_theme(
font_scale = 0.8,
bootswatch = "minty",
primary = "#4682B4",
"navbar-bg" = "#f8f9fa"
),
mod_travel_analysis_ui("travels"),
nav_panel(
"About",
icon = bsicons::bs_icon("info-circle"),
div(
class = "container bigger-text",
layout_columns(
card(
id = "about-card",
includeMarkdown(here::here("Methodology.md"))
)
)
)
),
# nav images and links
nav_spacer(),
nav_item(
tags$a(
"Developed by Epi-DS",
href = "https://epicentre-msf.github.io/gallery/",
target = "_blank",
class = "text-muted"
)
),
# nav_item(
# tags$a(
# shiny::icon("github"),
# "Report an issue",
# href = "https://github.com/epicentre-msf/carbon-travel-app/issues",
# target = "_blank"
# )
# ),
nav_item(
tags$a(
tags$img(
src = "epicentre_logo.png",
alt = "Epicentre Logo",
height = "35px"
),
class = "py-0 d-none d-lg-block",
title = "Epicentre",
href = "https://epicentre.msf.org/",
target = "_blank"
)
),
nav_item(
tags$a(
tags$img(
src = "climate_msf_logo.png",
alt = "Climate Smart MSF Logo",
height = "35px"
),
class = "py-0 d-none d-lg-block",
title = "Climate Smart MSF",
href = "https://msfintl.sharepoint.com/sites/ClimateSmartMSF/?OR=Teams-HL&CT=1716448053305",
target = "_blank"
)
),
nav_item(
tags$a(
tags$img(
src = "msf_logo.png",
alt = "MSF Logo",
height = "35px"
),
class = "py-0 d-none d-lg-block",
title = "MSF",
href = "https://msf.org/",
target = "_blank"
)
)
),
waiter::waiter_preloader(
html = tags$div(
class = "text-center",
tags$img(
src = "epicentre_logo.png",
width = "100%",
class = "mx-auto d-block p-2 pb-5",
style = "max-width: 500px;"
),
tags$img(
src = "climate_msf_logo.png",
width = "100%",
class = "mx-auto d-block p-2 pb-5",
style = "max-width: 200px;"
),
waiter::spin_3()
),
color = "#ffffff"
)
)