Spaces:
Sleeping
Sleeping
Update app.py
Browse files7 unmodified lines8910111213141516171819202122232425262 unmodified lines293031323334353 unmodified lines39404142434445464748495051525354555657585960616263646566676811 unmodified lines8081828384857 unmodified linespage_icon="🌡️",layout="centered")# -----------------------------# NEON + ANIMATED UI (ONLY ADDITION)# -----------------------------st.markdown("""<style>/* Animated Background */.stApp {background: linear-gradient(-45deg, #0f172a, #1e293b, #0b1220, #1e3a8a);background-size: 400% 400%;animation: gradientMove 10s ease infinite;color: white;}@keyframes gradientMove {2 unmodified lines100% {background-position: 0% 50%;}}/* Title Glow */h1 {text-align: center;color: white;3 unmodified lines0 0 40px #3b82f6;}/* 🔥 SEPARATE COMPONENT GLOW BOXES */div[data-testid="stNumberInput"],div[data-testid="stRadio"],div[data-testid="stSelectbox"],div[data-testid="stTextInput"] {background: rgba(255,255,255,0.06);padding: 15px;border-radius: 15px;margin-bottom: 15px;backdrop-filter: blur(10px);box-shadow: 0 0 15px rgba(59,130,246,0.25);transition: 0.3s ease;}/* Hover glow per component */div[data-testid="stNumberInput"]:hover,div[data-testid="stRadio"]:hover,div[data-testid="stSelectbox"]:hover,div[data-testid="stTextInput"]:hover {box-shadow: 0 0 25px rgba(56,189,248,0.6);transform: scale(1.01);}/* Button Styling */.stButton>button {width: 100%;background: linear-gradient(90deg, #06b6d4, #3b82f6);11 unmodified linesbox-shadow: 0 0 25px rgba(59,130,246,0.9);}</style>""", unsafe_allow_html=True)7 unmodified lines8910111213141516171819202122232425262728292 unmodified lines323334353637383 unmodified lines42434445464748495051525354555657585911 unmodified lines7172737475767778798081828384858687888990919293947 unmodified linespage_icon="🌡️",layout="centered").stApp {text-align: center;}# -----------------------------# NEON + ANIMATED UI (ONLY ADDITION)# -----------------------------st.markdown("""<style>/* ---------------- BACKGROUND ---------------- */.stApp {background: linear-gradient(-45deg, #0f172a, #1e293b, #0b1220, #1e3a8a);background-size: 400% 400%;animation: gradientMove 10s ease infinite;color: white;text-align: center; /* ✅ CENTER EVERYTHING */}@keyframes gradientMove {2 unmodified lines100% {background-position: 0% 50%;}}/* ---------------- TITLE ---------------- */h1 {text-align: center;color: white;3 unmodified lines0 0 40px #3b82f6;}/* ---------------- INPUT BOXES ---------------- */div[data-testid="stNumberInput"],div[data-testid="stRadio"] {background: rgba(255,255,255,0.06);padding: 15px;border-radius: 15px;margin-bottom: 15px;backdrop-filter: blur(10px);box-shadow: 0 0 15px rgba(59,130,246,0.25);}/* ---------------- BUTTON ---------------- */.stButton>button {width: 100%;background: linear-gradient(90deg, #06b6d4, #3b82f6);11 unmodified linesbox-shadow: 0 0 25px rgba(59,130,246,0.9);}/* ---------------- SUCCESS / OUTPUT BOX ---------------- */div[data-testid="stSuccess"] {background: rgba(0, 255, 120, 0.08); /* light green glow */border: 2px solid white; /* white border */border-radius: 15px;padding: 20px;color: #00ff99 !important; /* GREEN TEXT */font-size: 20px;font-weight: bold;box-shadow: 0 0 20px rgba(255,255,255,0.6);text-align: center;}/* Make success text green */div[data-testid="stSuccess"] * {color: #00ff99 !important;}</style>""", unsafe_allow_html=True)
app.py+27-18