Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,46 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
-
st.
|
| 5 |
|
| 6 |
-
#
|
| 7 |
st.markdown(
|
| 8 |
"""
|
| 9 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
""",
|
| 11 |
unsafe_allow_html=True,
|
| 12 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Configurazione della pagina
|
| 4 |
+
st.set_page_config(page_title="Smart TV Browser", layout="wide")
|
| 5 |
|
| 6 |
+
# Stile personalizzato per Smart TV
|
| 7 |
st.markdown(
|
| 8 |
"""
|
| 9 |
+
<style>
|
| 10 |
+
.tv-button {
|
| 11 |
+
font-size: 30px;
|
| 12 |
+
padding: 20px;
|
| 13 |
+
width: 100%;
|
| 14 |
+
text-align: center;
|
| 15 |
+
background-color: #4CAF50;
|
| 16 |
+
color: white;
|
| 17 |
+
border: none;
|
| 18 |
+
border-radius: 10px;
|
| 19 |
+
margin: 10px 0;
|
| 20 |
+
cursor: pointer;
|
| 21 |
+
}
|
| 22 |
+
.tv-button:hover {
|
| 23 |
+
background-color: #45a049;
|
| 24 |
+
}
|
| 25 |
+
iframe {
|
| 26 |
+
border: none;
|
| 27 |
+
}
|
| 28 |
+
</style>
|
| 29 |
""",
|
| 30 |
unsafe_allow_html=True,
|
| 31 |
)
|
| 32 |
+
|
| 33 |
+
# Titolo principale
|
| 34 |
+
st.title("🎬 Smart TV Browser")
|
| 35 |
+
|
| 36 |
+
# Pulsante per accedere al sito di streaming
|
| 37 |
+
if st.button("📺 Vai a StreamingCommunity"):
|
| 38 |
+
st.markdown(
|
| 39 |
+
"""
|
| 40 |
+
<iframe src="https://streamingcommunity.paris/" width="100%" height="800px"></iframe>
|
| 41 |
+
""",
|
| 42 |
+
unsafe_allow_html=True,
|
| 43 |
+
)
|
| 44 |
+
else:
|
| 45 |
+
st.write("Premi il pulsante sopra per accedere al sito di StreamingCommunity.")
|
| 46 |
+
|