Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -23,7 +23,26 @@ FF_WHITE <- "#FFFFFF"
|
|
| 23 |
|
| 24 |
# ββ Custom CSS ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 25 |
custom_css <- tags$style(HTML(paste0("
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
body, .shiny-app { font-family: 'Open Sans', sans-serif; background: #F7F9FC; }
|
| 29 |
|
|
@@ -292,7 +311,7 @@ server <- function(input, output, session) {
|
|
| 292 |
# ββ Logo: encode as base64 so it loads on ALL platforms βββββββ
|
| 293 |
# (shinyapps.io, Hugging Face, local β no path issues)
|
| 294 |
logo_b64 <- local({
|
| 295 |
-
logo_file <- file.path("logo.png")
|
| 296 |
tryCatch({
|
| 297 |
if (file.exists(logo_file)) {
|
| 298 |
raw <- readBin(logo_file, "raw", file.info(logo_file)$size)
|
|
@@ -545,7 +564,7 @@ server <- function(input, output, session) {
|
|
| 545 |
|
| 546 |
# ββ Download helpers ββββββββββββββββββββββββββββββββββββββββ
|
| 547 |
logo_path <- reactive({
|
| 548 |
-
normalizePath(file.path("logo.png"), mustWork = FALSE)
|
| 549 |
})
|
| 550 |
|
| 551 |
# ββ ggplot bar chart for PDF β logo colors, thicker lines ββ
|
|
|
|
| 23 |
|
| 24 |
# ββ Custom CSS ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 25 |
custom_css <- tags$style(HTML(paste0("
|
| 26 |
+
@font-face {
|
| 27 |
+
font-family: 'Raleway';
|
| 28 |
+
src: url('raleway-600.woff2') format('woff2');
|
| 29 |
+
font-weight: 600;
|
| 30 |
+
}
|
| 31 |
+
@font-face {
|
| 32 |
+
font-family: 'Raleway';
|
| 33 |
+
src: url('raleway-700.woff2') format('woff2');
|
| 34 |
+
font-weight: 700;
|
| 35 |
+
}
|
| 36 |
+
@font-face {
|
| 37 |
+
font-family: 'Open Sans';
|
| 38 |
+
src: url('opensans-400.woff2') format('woff2');
|
| 39 |
+
font-weight: 400;
|
| 40 |
+
}
|
| 41 |
+
@font-face {
|
| 42 |
+
font-family: 'Open Sans';
|
| 43 |
+
src: url('opensans-600.woff2') format('woff2');
|
| 44 |
+
font-weight: 600;
|
| 45 |
+
}
|
| 46 |
|
| 47 |
body, .shiny-app { font-family: 'Open Sans', sans-serif; background: #F7F9FC; }
|
| 48 |
|
|
|
|
| 311 |
# ββ Logo: encode as base64 so it loads on ALL platforms βββββββ
|
| 312 |
# (shinyapps.io, Hugging Face, local β no path issues)
|
| 313 |
logo_b64 <- local({
|
| 314 |
+
logo_file <- file.path("www","logo.png")
|
| 315 |
tryCatch({
|
| 316 |
if (file.exists(logo_file)) {
|
| 317 |
raw <- readBin(logo_file, "raw", file.info(logo_file)$size)
|
|
|
|
| 564 |
|
| 565 |
# ββ Download helpers ββββββββββββββββββββββββββββββββββββββββ
|
| 566 |
logo_path <- reactive({
|
| 567 |
+
normalizePath(file.path("www", "logo.png"), mustWork = FALSE)
|
| 568 |
})
|
| 569 |
|
| 570 |
# ββ ggplot bar chart for PDF β logo colors, thicker lines ββ
|