Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -2,22 +2,110 @@ library(shiny)
|
|
| 2 |
library(dplyr)
|
| 3 |
|
| 4 |
ui <- fluidPage(
|
| 5 |
-
tags$head(
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
tags$div(class="header",
|
| 22 |
tags$div(
|
| 23 |
tags$h1("Butler Baseball Transfer Portal Dashboard"),
|
|
@@ -26,7 +114,7 @@ ui <- fluidPage(
|
|
| 26 |
tags$img(src="Butler-Bulldogs-Logo-1990.png", height="52px")
|
| 27 |
),
|
| 28 |
|
| 29 |
-
# ββ Filters βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 30 |
tags$div(class="filters",
|
| 31 |
tags$div(
|
| 32 |
tags$div("Level", class="filter-label"),
|
|
|
|
| 2 |
library(dplyr)
|
| 3 |
|
| 4 |
ui <- fluidPage(
|
| 5 |
+
tags$head(
|
| 6 |
+
tags$style(HTML("
|
| 7 |
+
body { margin:0; font-family:'Segoe UI',Arial,sans-serif; background:#f5f5f5; }
|
| 8 |
+
.header { background:#002147; padding:14px 24px;
|
| 9 |
+
display:flex; align-items:center; justify-content:space-between; }
|
| 10 |
+
.header h1 { color:white; margin:0; font-size:26px; font-weight:700; }
|
| 11 |
+
.header p { color:#aabbcc; margin:0; font-size:13px; }
|
| 12 |
+
.filters { display:flex; gap:24px; align-items:flex-end;
|
| 13 |
+
padding:16px 24px; background:white;
|
| 14 |
+
border-bottom:1px solid #e0e0e0; flex-wrap:wrap; }
|
| 15 |
+
.filter-label { font-weight:600; font-size:11px; text-transform:uppercase;
|
| 16 |
+
letter-spacing:0.4px; color:#555; margin-bottom:4px; }
|
| 17 |
+
.main { padding:20px 24px; }
|
| 18 |
+
.form-control { border:1px solid #d0d0d0; border-radius:4px; }
|
| 19 |
|
| 20 |
+
/* ββ Splash βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 21 |
+
#splash {
|
| 22 |
+
position:fixed; top:0; left:0; width:100%; height:100%;
|
| 23 |
+
background:#002147;
|
| 24 |
+
display:flex; flex-direction:column;
|
| 25 |
+
align-items:center; justify-content:center;
|
| 26 |
+
z-index:9999;
|
| 27 |
+
opacity:1;
|
| 28 |
+
transition:opacity 0.8s ease;
|
| 29 |
+
}
|
| 30 |
+
#splash.fade-out {
|
| 31 |
+
opacity:0;
|
| 32 |
+
pointer-events:none;
|
| 33 |
+
}
|
| 34 |
+
#splash img {
|
| 35 |
+
width:140px;
|
| 36 |
+
animation:logoIn 0.7s ease forwards;
|
| 37 |
+
opacity:0;
|
| 38 |
+
}
|
| 39 |
+
#splash h1 {
|
| 40 |
+
color:white;
|
| 41 |
+
font-size:28px;
|
| 42 |
+
font-weight:700;
|
| 43 |
+
margin:18px 0 6px 0;
|
| 44 |
+
animation:textIn 0.7s ease 0.3s forwards;
|
| 45 |
+
opacity:0;
|
| 46 |
+
letter-spacing:0.5px;
|
| 47 |
+
}
|
| 48 |
+
#splash p {
|
| 49 |
+
color:#aabbcc;
|
| 50 |
+
font-size:14px;
|
| 51 |
+
margin:0;
|
| 52 |
+
animation:textIn 0.7s ease 0.5s forwards;
|
| 53 |
+
opacity:0;
|
| 54 |
+
}
|
| 55 |
+
#splash .bar-track {
|
| 56 |
+
width:200px;
|
| 57 |
+
height:3px;
|
| 58 |
+
background:rgba(255,255,255,0.2);
|
| 59 |
+
border-radius:2px;
|
| 60 |
+
margin-top:28px;
|
| 61 |
+
animation:textIn 0.7s ease 0.6s forwards;
|
| 62 |
+
opacity:0;
|
| 63 |
+
}
|
| 64 |
+
#splash .bar-fill {
|
| 65 |
+
height:3px;
|
| 66 |
+
width:0%;
|
| 67 |
+
background:white;
|
| 68 |
+
border-radius:2px;
|
| 69 |
+
animation:barFill 1.8s ease 0.8s forwards;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
@keyframes logoIn {
|
| 73 |
+
from { opacity:0; transform:translateY(-20px); }
|
| 74 |
+
to { opacity:1; transform:translateY(0); }
|
| 75 |
+
}
|
| 76 |
+
@keyframes textIn {
|
| 77 |
+
from { opacity:0; transform:translateY(10px); }
|
| 78 |
+
to { opacity:1; transform:translateY(0); }
|
| 79 |
+
}
|
| 80 |
+
@keyframes barFill {
|
| 81 |
+
from { width:0%; }
|
| 82 |
+
to { width:100%; }
|
| 83 |
+
}
|
| 84 |
+
")),
|
| 85 |
+
|
| 86 |
+
tags$script(HTML("
|
| 87 |
+
$(document).ready(function() {
|
| 88 |
+
setTimeout(function() {
|
| 89 |
+
$('#splash').addClass('fade-out');
|
| 90 |
+
setTimeout(function() {
|
| 91 |
+
$('#splash').remove();
|
| 92 |
+
}, 800);
|
| 93 |
+
}, 2800);
|
| 94 |
+
});
|
| 95 |
+
"))
|
| 96 |
+
),
|
| 97 |
+
|
| 98 |
+
# ββ Splash screen βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 99 |
+
tags$div(id="splash",
|
| 100 |
+
tags$img(src="Butler-Bulldogs-Logo-1990.png"),
|
| 101 |
+
tags$h1("Butler Baseball Transfer Portal"),
|
| 102 |
+
tags$p("Butler Baseball Analytics"),
|
| 103 |
+
tags$div(class="bar-track",
|
| 104 |
+
tags$div(class="bar-fill")
|
| 105 |
+
)
|
| 106 |
+
),
|
| 107 |
+
|
| 108 |
+
# ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 109 |
tags$div(class="header",
|
| 110 |
tags$div(
|
| 111 |
tags$h1("Butler Baseball Transfer Portal Dashboard"),
|
|
|
|
| 114 |
tags$img(src="Butler-Bulldogs-Logo-1990.png", height="52px")
|
| 115 |
),
|
| 116 |
|
| 117 |
+
# ββ Filters βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 118 |
tags$div(class="filters",
|
| 119 |
tags$div(
|
| 120 |
tags$div("Level", class="filter-label"),
|