Spaces:
Building
Building
import streamlit as st | |
# Configurazione della pagina | |
st.set_page_config(page_title="Smart TV Browser", layout="wide") | |
# Stile personalizzato per Smart TV | |
st.markdown( | |
""" | |
<style> | |
.tv-button { | |
font-size: 30px; | |
padding: 20px; | |
width: 100%; | |
text-align: center; | |
background-color: #4CAF50; | |
color: white; | |
border: none; | |
border-radius: 10px; | |
margin: 10px 0; | |
cursor: pointer; | |
} | |
.tv-button:hover { | |
background-color: #45a049; | |
} | |
iframe { | |
border: none; | |
} | |
</style> | |
""", | |
unsafe_allow_html=True, | |
) | |
# Titolo principale | |
st.title("π¬ Smart TV Browser") | |
# Pulsante per accedere al sito di streaming | |
if st.button("πΊ Vai a StreamingCommunity"): | |
st.markdown( | |
""" | |
<iframe src="https://streamingcommunity.paris/" width="100%" height="800px"></iframe> | |
""", | |
unsafe_allow_html=True, | |
) | |
else: | |
st.write("Premi il pulsante sopra per accedere al sito di StreamingCommunity.") | |