Create app.py
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869import streamlit as st
# App Configurationst.set_page_config( page_title="Beginner-Friendly Digital Wallet", page_icon="π°", layout="wide")
# Sidebar with Featuresst.sidebar.title("Features")st.sidebar.markdown("""- **Secure Transactions**: Powered by blockchain for unmatched security.- **Beginner-Friendly Interface**: Intuitive wallet setup and usage.- **Educational Support**: Tutorials and FAQs for learning.- **Community Engagement**: Live support and forums for guidance.- **Transparency**: Real-time transaction tracking.- **Multi-Language Support**: Available in various languages.- **Offline Resources**: Access essential guides anytime.""")
# Main Contentst.title("Welcome to Your Beginner-Friendly Digital Wallet App")st.subheader("Empowering communities to securely and confidently use blockchain technology.")
# Sectionsst.markdown("### **1. Set Up Your Wallet**")wallet_name = st.text_input("Enter a Wallet Name:")if st.button("Create Wallet"): if wallet_name: st.success(f"π Wallet '{wallet_name}' created successfully!") else: st.error("Please provide a wallet name.")
st.markdown("### **2. Educational Resources**")if st.checkbox("Show Blockchain Basics"): st.markdown(""" - Blockchain is a distributed ledger technology. - Transactions are secure and transparent. - Each block contains a list of verified transactions. """)
if st.checkbox("Show How Digital Wallets Work"): st.markdown(""" - Wallets store your private keys securely. - They allow you to send and receive cryptocurrency. - Always back up your wallet to avoid losing access. """)
st.markdown("### **3. Mock Transactions**")sender = st.text_input("Sender Address:")receiver = st.text_input("Receiver Address:")amount = st.number_input("Amount to Send:", min_value=0.0, step=0.01)
if st.button("Send"): if sender and receiver and amount > 0: st.success(f"Transaction Successful! Sent {amount} from {sender} to {receiver}.") else: st.error("Please fill out all fields to process the transaction.")
st.markdown("### **4. Community Support**")st.text_area("Ask a Question:", placeholder="Type your question here...")if st.button("Submit Question"): st.success("Your question has been submitted! Our support team will get back to you.")
# Footerst.markdown("---")st.markdown("π **Note**: This is a demo app and does not process actual transactions.")
app.pyAdded+69