Skip to content

Commit ee52ff7

Browse files
committed
cleaned interface
1 parent 12a78bd commit ee52ff7

File tree

3 files changed

+85
-56
lines changed

3 files changed

+85
-56
lines changed

R/mod_about_UI.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ mod_about_UI <- function(id, i18n){
4848

4949
br(),
5050

51-
"Workflow, package list, Link to Arena"
51+
#"Workflow, package list, Link to Arena"
5252

5353
) ## END tagList
5454

R/mod_home_UI.R

Lines changed: 74 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,40 +13,40 @@ mod_home_UI <- function(id, i18n){
1313
## UI Elements ######
1414
##
1515

16-
card1 <- card(
17-
card_header("Open Foris Arena"),
18-
p("text"),
19-
tags$a(
20-
href = "https://openforis.org/solutions/arena/",
21-
alt = "",
22-
"More on OF Arena",
23-
bsicons::bs_icon("box-arrow-up-right", class = "text-primary"),
24-
.noWS = "before-end"
25-
)
26-
)
27-
28-
card2 <- card(
29-
card_header(tags$code("arena-helpers")),
30-
p("text"),
31-
tags$a(
32-
href = "https://openforis.github.io/arena-helpers/",
33-
alt = "",
34-
"More on OF Arena",
35-
bsicons::bs_icon("box-arrow-up-right", class = "text-primary"),
36-
.noWS = "before-end"
37-
)
38-
)
39-
40-
card3 <- card(
41-
card_header("{mocaredd}"),
42-
p("text"),
43-
p(
44-
"More on {mocaredd} in:", HTML("&nbsp;"),
45-
actionButton(inputId = ns("to_about"), label = "About")
46-
)
47-
)
48-
49-
cards <- list(card1, card2, card3)
16+
# card1 <- card(
17+
# card_header("Open Foris Arena"),
18+
# p("text"),
19+
# tags$a(
20+
# href = "https://openforis.org/solutions/arena/",
21+
# alt = "",
22+
# "More on OF Arena",
23+
# bsicons::bs_icon("box-arrow-up-right", class = "text-primary"),
24+
# .noWS = "before-end"
25+
# )
26+
# )
27+
#
28+
# card2 <- card(
29+
# card_header(tags$code("arena-helpers")),
30+
# p("text"),
31+
# tags$a(
32+
# href = "https://openforis.github.io/arena-helpers/",
33+
# alt = "",
34+
# "More on OF Arena",
35+
# bsicons::bs_icon("box-arrow-up-right", class = "text-primary"),
36+
# .noWS = "before-end"
37+
# )
38+
# )
39+
#
40+
# card3 <- card(
41+
# card_header("{mocaredd}"),
42+
# p("text"),
43+
# p(
44+
# "More on {mocaredd} in:", HTML("&nbsp;"),
45+
# actionButton(inputId = ns("to_about"), label = "About")
46+
# )
47+
# )
48+
#
49+
# cards <- list(card1, card2, card3)
5050

5151

5252

@@ -56,37 +56,64 @@ mod_home_UI <- function(id, i18n){
5656

5757
tagList(
5858

59-
h2(i18n$t("Welcome to {mocaredd}")),
59+
h2(i18n$t("Welcome to {mocaredd}!")),
6060

61-
br(),
61+
br(), br(),
6262

63-
p(
63+
div(
6464
"
6565
{mocaredd} is a R package and a Shiny application designed to help you with
6666
running Monte Carlo Simulations for REDD+ uncertainty analysis.
67-
"
67+
", style = "font-size: x-large; text-align: center; font-style: italic;font-family: serif;"
6868
),
69+
br(), br(),
6970
p(
7071
"
71-
{mocaredd} is part of arena-helpers: a collection of tools to assist
72+
This app is developed in the context of the REDD+ mechanism (Reducing emission from Deforestation
73+
and forest Degradation 'plus') and carbon accounting calculations to estimate emission reductions
74+
and removal increases of greenhouse gas (GHG) in the forestry sector.
7275
"
7376
),
77+
# p(
78+
# "
79+
# Emission reductions are estimated by quantifying the amount of greenhouse gas emissions between a
80+
# reference level (i.e baseline) and a monitorig period. These estimates come with a level of uncertainty
81+
# due to the sampling methods and models used to generate the estimations.
82+
# "
83+
# ),
84+
# p(
85+
# "
86+
# High integrity REDD+ standards, that set rules for the quantification of emissions and removals, and their uncertainties,
87+
# increasingly require the use of Monte Carlo simulations for REDD+ uncertainties. These simulations are often run in spreadsheet
88+
# tools, but the lack of structure and inherent disadvantage of spreadsheets for this task (error prone, difficulty to handle large
89+
# amount of data) is becoming a barrier for the quality, reproducibility and verification of uncertainties based on simulations.
90+
# "
91+
# ),
92+
# br(),
7493
p(
75-
"
76-
Openforis Arena is a ...
77-
"
94+
"
95+
{mocaredd} provides a template for organizing data, and a tool that (1) takes the data, (2) runs Monte Carlo Simulations and (3) produces improved
96+
estimates of and confidence intervals around greenhouse gas emissions and emission reductions for REDD+.
97+
"
7898
),
7999

80-
layout_columns(
81-
col_widths = c(4, 4, 4),
82-
!!!cards
83-
),
100+
# layout_columns(
101+
# col_widths = c(4, 4, 4),
102+
# !!!cards
103+
# ),
84104

85105
br(),
86106

87107
h4(
88-
icon("arrow-right"), "Continue to the:", HTML("&nbsp;"),
108+
icon("arrow-right"), "To start exploring, continue to the:", HTML("&nbsp;"),
89109
actionButton(inputId = ns("to_tool"), label = "Tool")
110+
),
111+
112+
br(),
113+
114+
div(
115+
"{mocaredd} v1.0. Development supported by FAO and the Aim4Forest Programme",
116+
style = "font-size: large; text-align: right; font-style: italic;font-family: serif;"
90117
)
91118

92119
) ## END tagList

R/shiny_run_mocaredd.R

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ shiny_run_mocaredd <- function(...) {
124124
language_selector <- shinyWidgets::pickerInput(
125125
inputId = "language",
126126
label = NULL,
127-
choices = c("en", "fr", "sp"),
128-
choicesOpt = list(content = c('<i class="fi fi-gb"></i> EN', '<i class="fi fi-fr"></i> FR', '<i class="fi fi-es"></i> ES')),
127+
choices = c("en"),
128+
choicesOpt = list(content = c('<i class="fi fi-gb"></i> EN')),
129+
# choices = c("en", "fr", "sp"),
130+
# choicesOpt = list(content = c('<i class="fi fi-gb"></i> EN', '<i class="fi fi-fr"></i> FR', '<i class="fi fi-es"></i> ES')),
129131
selected = "en",
130132
width = "auto",
131133
option = shinyWidgets::pickerOptions(style = "z-index:10000;")
@@ -206,12 +208,12 @@ shiny_run_mocaredd <- function(...) {
206208
mod_tool_UI("tab_tool", i18n = i18n)
207209
),
208210

209-
nav_panel(
210-
title = i18n$t("About"),
211-
value = "about",
212-
#icon = icon("info"),
213-
mod_about_UI("tab_about", i18n = i18n)
214-
),
211+
# nav_panel(
212+
# title = i18n$t("About"),
213+
# value = "about",
214+
# #icon = icon("info"),
215+
# mod_about_UI("tab_about", i18n = i18n)
216+
# ),
215217

216218
nav_item(language_selector)
217219

0 commit comments

Comments
 (0)