Spaces:
Running
Running
File size: 2,502 Bytes
95914a4 6c19697 95914a4 6c19697 95914a4 6c19697 95914a4 6c19697 95914a4 6c19697 95914a4 6c19697 95914a4 6c19697 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
##### home.py #####
# Home page
# Thomas Nestico
# Import modules
from shiny import *
import shinyswatch
import plotly.express as px
from shinywidgets import output_widget, render_widget
import pandas as pd
from configure import base_url
# Create app
home = App(ui.page_fluid(
ui.tags.base(href=base_url),
ui.tags.div(
{"style": "width:90%;margin: 0 auto;max-width: 1600px;"},
ui.tags.style(
"""
h4 {
margin-top: 1em;font-size:35px;
}
h2{
font-size:25px;
}
"""
),
shinyswatch.theme.simplex(),
ui.tags.h4("TJStats"),
ui.tags.i("Baseball Analytics and Visualizations"),
ui.navset_tab(
ui.nav_control(
ui.a(
"Home",
href="home/"
),
),
ui.nav_menu(
"Batter Charts",
ui.nav_control(
ui.a(
"Spray",
href="spray/"
),
ui.a(
"Decision Value",
href="decision_value/"
),
ui.a(
"Damage Model",
href="damage_model/"
),
ui.a(
"Batter Scatter",
href="batter_scatter/"
),
ui.a(
"EV vs LA Plot",
href="ev_angle/"
)
),
),
ui.nav_menu(
"Goalie Charts",
ui.nav_control(
ui.a(
"GSAx Timeline",
href="gsax-timeline/"
),
ui.a(
"GSAx Leaderboard",
href="gsax-leaderboard/"
),
ui.a(
"GSAx Comparison",
href="gsax-comparison/"
)
),
),ui.nav_menu(
"Team Charts",
ui.nav_control(
ui.a(
"Team xG Rates",
href="team-xg-rates/"
),
),
),ui.nav_control(
ui.a(
"Games",
href="games/"
),
),ui.nav_control(
ui.a(
"About",
href="about/"
),
),ui.nav_control(
ui.a(
"Articles",
href="articles/"
),
)),ui.tags.br(),ui.tags.h5("Welcome to TJStats!"),ui.tags.h6(""))), None)
|