yiff art gallery
Drop files here
or click to upload
import streamlit as st
from PIL import Image
import io
st.title("🎨 Digital Art Gallery")
# Add some fun interactivity
if st.button("✨ Celebrate Art!"):
st.snow()
# Create tabs for different gallery sections
abstract_tab, nature_tab, portrait_tab = st.tabs(["Abstract", "Nature", "Portraits"])
with abstract_tab:
st.header("Abstract Art")
st.write("This section features vibrant abstract digital artworks")
col1, col2 = st.columns(2)
with col1:
st.write("Abstract Waves")
st.image("https://picsum.photos/400/300?random=1", caption="Waves in Motion")
with col2:
st.write("Geometric Dreams")
st.image("https://picsum.photos/400/300?random=2", caption="Sacred Geometry")
with nature_tab:
st.header("Nature Gallery")
st.write("Beautiful landscapes and natural scenes")
col1, col2 = st.columns(2)
with col1:
st.write("Forest Path")
st.image("https://picsum.photos/400/300?random=3", caption="Mystic Woods")
with col2:
st.write("Mountain Vista")
st.image("https://picsum.photos/400/300?random=4", caption="Mountain Peak")
with portrait_tab:
st.header("Portrait Collection")
st.write("Stunning digital portraits and character art")
col1, col2 = st.columns(2)
with col1:
st.write("The Dreamer")
st.image("https://picsum.photos/400/300?random=5", caption="Lost in Thought")
with col2:
st.write("The Wanderer")
st.image("https://picsum.photos/400/300?random=6", caption="Adventure Awaits")
# Add an interactive component
st.sidebar.title("Gallery Controls")
color_theme = st.sidebar.selectbox("Choose Theme", ["Light", "Dark"])
if color_theme == "Dark":
st.markdown("""
<style>
.stApp {
background-color: #1a1a1a;
color: white;
}
</style>
""", unsafe_allow_html=True)
# Add a feedback section
st.sidebar.markdown("---")
st.sidebar.subheader("Feedback")
feedback = st.sidebar.text_area("Share your thoughts:")
if st.sidebar.button("Submit Feedback"):
st.sidebar.success("Thank you for your feedback!")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?