Spaces:
Running
Running
File size: 2,947 Bytes
95914a4 |
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 |
##### 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:75%;margin: 0 auto;max-width: 1500px;"},
ui.tags.style(
"""
h4 {
margin-top: 1em;font-size:35px;
}
h2{
font-size:25px;
}
"""
),
shinyswatch.theme.darkly(),ui.tags.h4("Stats By Zach"),
ui.tags.i("A website for hockey analytics"),
ui.navset_tab(
ui.nav_control(
ui.a(
"Home",
href="home/"
),
),
ui.nav_menu(
"Skater Charts",
ui.nav_control(
ui.a(
"On-Ice xG Rates",
href="skater-xg-rates/"
),
ui.a(
"On-Ice xGF%",
href="skater-xg-percentages/"
),
),
),
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 Stats By Zach!"),ui.tags.h6("The 2023-24 NHL regular season is here, and the StatsByZach website is officially up and running for it! As I've state before, this website is still a work in progress, with lots of work to be done in terms of styling and compatibility especially. Along with that, I am focusing on finding a new hosting solution, adding more charts, and some prerformace enhancements as well. Thank you for paying the site a visit, and I do hope you can use my data to better understand the NHL. The website gets updated daily, and I try to make improvements on a regular basis, so please do visit the site often, and feel free to reach out to me on Twitter @StatsByZach for any feedback or suggestions. Enjoy the site, and happy hockey season!"))), None)
|