Saklehir commited on
Commit
ab05bfe
Β·
verified Β·
1 Parent(s): e5d1b44

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +22 -3
app.R CHANGED
@@ -23,7 +23,26 @@ FF_WHITE <- "#FFFFFF"
23
 
24
  # ── Custom CSS ────────────────────────────────────────────────
25
  custom_css <- tags$style(HTML(paste0("
26
- /*@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ──