Spaces:
Sleeping
Sleeping
Update app.py
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253import streamlit as st# --- Page Config ---st.set_page_config(page_title="Top Gun Sport",page_icon="π±",layout="wide")# --- Header ---st.title("π± Top Gun Sport")st.subheader("The Home of Snooker Excellence in Malaysia")# --- Navigation (simple) ---menu = st.sidebar.radio("Navigate", ["Home", "Tournaments", "Rankings", "Shop", "About"])if menu == "Home":st.image("https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Snooker_table.jpg/640px-Snooker_table.jpg",use_column_width=True)st.write("""Welcome to **Top Gun Sport** β the next generation of snooker in Malaysia.π Professional tournamentsπ― Junior & womenβs championshipsπ Live rankings & resultsπ Original cue sports gear""")elif menu == "Tournaments":st.header("π Tournaments")st.write("""- Masters of 6- King of Kings- Junior Cue Masters- Div B & Div C- Cleo Masters- The Showdown""")st.info("Stay tuned for upcoming fixtures!")elif menu == "Rankings":st.header("π Player Rankings")st.write("Live ranking system for Top Gun Sport series (coming soon).")elif menu == "Shop":st.header("π Official Shop")st.write("Browse our professional cues, chalks, cases, and Top Gun Sport merchandise.")elif menu == "About":st.header("βΉοΈ About Top Gun Sport")st.write("""Top Gun Sport is redefining cue sports in Malaysia with world-class tournaments,AI-powered scoring system""")1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192import streamlit as stimport pandas as pd# Page setupst.set_page_config(page_title="Top Gun Sport", layout="wide")# ---- HEADER ----st.markdown("""<style>.main-title {font-size: 2.5rem;font-weight: 800;text-align: center;color: #1E88E5;}.sub-title {text-align: center;font-size: 1.2rem;color: #555;margin-bottom: 30px;}.card {background: white;border-radius: 12px;padding: 20px;box-shadow: 0px 4px 8px rgba(0,0,0,0.1);}</style><div class="main-title">π Top Gun Sport</div><div class="sub-title">Malaysia's Premier Snooker & Billiard Platform</div>""",unsafe_allow_html=True)# ---- TOURNAMENT HIGHLIGHT ----st.header("π₯ Upcoming Tournament")col1, col2 = st.columns([2,1])with col1:st.image("https://upload.wikimedia.org/wikipedia/commons/1/1e/Snooker_Table.jpg", use_container_width=True)with col2:st.markdown("""### King of Kings Showdownπ Date: 31 August 2025π Venue: SR Cue Sports Academy, Kuala LumpurποΈ Title Sponsor: Light GreenGet ready for Malaysia's **biggest snooker event of the year!**""")st.button("π Register Now")# ---- RANKINGS ----st.header("π Player Rankings")data = {"Rank": [1,2,3,4,5],"Player": ["John Tan", "Ali Rahman", "David Lee", "Marcus Ong", "Kelvin Chan"],"Points": [1200, 1150, 1080, 970, 940]}df = pd.DataFrame(data)st.dataframe(df, use_container_width=True)# ---- NEWS SECTION ----st.header("π° Latest News")news_col1, news_col2, news_col3 = st.columns(3)with news_col1:st.markdown('<div class="card">', unsafe_allow_html=True)st.image("https://picsum.photos/300/200?random=1")st.subheader("Junior Cue Masters Launched")st.caption("The new youth tournament is open for U16, U18 & U21 categories.")st.markdown('</div>', unsafe_allow_html=True)with news_col2:st.markdown('<div class="card">', unsafe_allow_html=True)st.image("https://picsum.photos/300/200?random=2")st.subheader("Cleo Masters Announced")st.caption("Malaysia's first-ever womenβs snooker championship goes live.")st.markdown('</div>', unsafe_allow_html=True)with news_col3:st.markdown('<div class="card">', unsafe_allow_html=True)st.image("https://picsum.photos/300/200?random=3")st.subheader("AI Auto-Scoring by Supervisions")st.caption("Clubs upgrade with the latest snooker scoring tech.")st.markdown('</div>', unsafe_allow_html=True)# ---- FOOTER ----st.markdown("---")st.caption("Β© 2025 Top Gun Sport. Powered by Hugging Face Spaces.")
app.py+88-49