nesticot commited on
Commit
ff1fb86
·
verified ·
1 Parent(s): 1905732

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -27
app.py CHANGED
@@ -137,35 +137,32 @@ from shiny import App, reactive, ui, render
137
  from shiny.ui import h2, tags
138
 
139
  # Define the UI layout for the app
140
- app_ui =
141
-
142
  ui.tags.div(
143
- {"style": "width:90%;margin: 0 auto;max-width: 1600px;"},
144
- ui.tags.style(
145
- """
146
- h4 {
147
- margin-top: 1em;font-size:35px;
148
- }
149
- h2{
150
- font-size:25px;
151
- }
152
- """
153
- ),
154
- ui.tags.h4("TJStats"),
155
- ui.tags.i("Baseball Analytics and Visualizations"),
156
- ui.markdown("""<a href='https://x.com/TJStats'>Follow me on Twitter</a><sup>1</sup>"""),
157
- ui.markdown("""<a href='https://www.patreon.com/tj_stats'>Support me on Patreon for Access to 2024 Apps</a><sup>1</sup>"""),
158
- ui.markdown("### MiLB Statcast Batting Summaries"),
159
- ui.markdown("""This Shiny App allows you to generate Baseball Savant-style percentile bars for MiLB players in the 2024 Season.
160
- Currently, MiLB Statcast is only available for AAA and A (Florida State League) level.
161
- """),
162
- ui.markdown("""
163
- For ease of sharing, you can right-click (desktop) or press+hold (mobile) to save/copy the image.
164
- """),
165
  ),
166
- ui.page_sidebar(
167
- # Header content
168
-
 
 
 
 
 
 
 
 
 
169
 
170
  # Sidebar content
171
  ui.sidebar(
 
137
  from shiny.ui import h2, tags
138
 
139
  # Define the UI layout for the app
140
+ app_ui = ui.page_sidebar(
141
+ # Header content
142
  ui.tags.div(
143
+ {"style": "width:90%;margin: 0 auto;max-width: 1600px;"},
144
+ ui.tags.style(
145
+ """
146
+ h4 {
147
+ margin-top: 1em;font-size:35px;
148
+ }
149
+ h2{
150
+ font-size:25px;
151
+ }
152
+ """
 
 
 
 
 
 
 
 
 
 
 
 
153
  ),
154
+ ui.tags.h4("TJStats"),
155
+ ui.tags.i("Baseball Analytics and Visualizations"),
156
+ ui.markdown("""<a href='https://x.com/TJStats'>Follow me on Twitter</a><sup>1</sup>"""),
157
+ ui.markdown("""<a href='https://www.patreon.com/tj_stats'>Support me on Patreon for Access to 2024 Apps</a><sup>1</sup>"""),
158
+ ui.markdown("### MiLB Statcast Batting Summaries"),
159
+ ui.markdown("""This Shiny App allows you to generate Baseball Savant-style percentile bars for MiLB players in the 2024 Season.
160
+ Currently, MiLB Statcast is only available for AAA and A (Florida State League) level.
161
+ """),
162
+ ui.markdown("""
163
+ For ease of sharing, you can right-click (desktop) or press+hold (mobile) to save/copy the image.
164
+ """),
165
+ ),
166
 
167
  # Sidebar content
168
  ui.sidebar(