import streamlit as st
from streamlit.components.v1 import html
# Configurazione della pagina
st.set_page_config(page_title="Smart TV Browser", layout="wide", initial_sidebar_state="collapsed")
# CSS per personalizzare lo stile Smart TV
st.markdown("""
""", unsafe_allow_html=True)
# Titolo principale
st.markdown('
Smart TV Streaming Interface
', unsafe_allow_html=True)
# Pulsanti per selezionare contenuti
st.markdown('', unsafe_allow_html=True)
col1, col2, col3 = st.columns(3)
with col1:
if st.button("Sito Ufficiale"):
url = "https://streamingcommunity.paris/"
with col2:
if st.button("YouTube"):
url = "https://www.youtube.com"
with col3:
if st.button("Netflix"):
url = "https://www.netflix.com"
st.markdown('
', unsafe_allow_html=True)
# Contenitore iframe per il sito selezionato
if 'url' in locals():
st.markdown(f'', unsafe_allow_html=True)
else:
st.write("Seleziona un contenuto sopra per visualizzarlo.")