import os import streamlit as st # Hardcoded credentials USERNAME = os.environ["USERNAME"] PASSWORD = os.environ["PASSWORD"] # Sidebar for login with emojis st.sidebar.title("🔒 AIXNet Login") with st.sidebar.form(key='login_form'): username = st.text_input("👤 Username") password = st.text_input("🔑 Password", type="password") login_button = st.form_submit_button(label="🔓 Login") if login_button: if username == USERNAME and password == PASSWORD: st.sidebar.success("🎉 Login successful!") # Display table after successful login st.title("📋 AIXNet Tasks") data = { "📝 Task": ["💻 Code assist"], "🖥️ Instance Type": ["t2.micro"], "💰 Price": ["$0.05 / hour"], "🌐 IPv4": ["some_url_here"] } st.table(data) else: st.sidebar.error("❌ Invalid username or password. Please try again.") else: st.sidebar.info("👉 Please enter your credentials to log in.")