Gen_AI / app.py
Ashar086's picture
Update app.py
ab69122 verified
import streamlit as st
# App Configuration
st.set_page_config(
page_title="Crypto for All",
page_icon="🌐",
layout="wide"
)
# Sidebar: Features and Navigation
st.sidebar.title("Features")
st.sidebar.markdown("""
- **Crypto Basics**: Learn blockchain, wallets, and decentralized finance.
- **Safety First**: Tips to identify scams and secure assets.
- **Simulated Wallet**: Practice creating and using a digital wallet.
- **Real-Time Support**: Get instant help from an AI chatbot.
- **Community Space**: Collaborate and share knowledge.
""")
# App Header
st.title("Crypto for All 🌍")
st.subheader("Making cryptocurrency safe, trustworthy, and accessible to everyone.")
# Main Sections
st.markdown("### 1️⃣ **Learn About Cryptocurrency**")
if st.checkbox("What is Cryptocurrency?"):
st.markdown("""
- Cryptocurrency is a digital or virtual currency secured by cryptography.
- It operates on decentralized networks, such as blockchain.
- Popular examples include Bitcoin, Ethereum, and Litecoin.
""")
if st.checkbox("How Do Digital Wallets Work?"):
st.markdown("""
- A digital wallet stores your private and public keys.
- It allows you to send and receive cryptocurrency securely.
- Always use trusted wallets and back up your keys.
""")
st.markdown("### 2️⃣ **Safety and Security**")
st.markdown("#### Protect Yourself in the Crypto World")
st.info("**Tips to Stay Safe**")
st.write("""
- Use strong, unique passwords for your wallets.
- Be cautious of unsolicited messages offering 'investment opportunities.'
- Always double-check wallet addresses before sending funds.
""")
st.markdown("### 3️⃣ **Simulated Wallet**")
st.text_input("Enter a Wallet Name:", placeholder="E.g., MySecureWallet")
if st.button("Create Mock Wallet"):
st.success("πŸŽ‰ Wallet created successfully! Explore safely before going live.")
st.markdown("### 4️⃣ **Ask Questions in Real-Time**")
st.text_area("Type your question here:", placeholder="E.g., What is blockchain?")
if st.button("Submit Question"):
st.success("Your question has been submitted. Our AI chatbot will assist you shortly.")
st.markdown("### 5️⃣ **Community Space**")
st.write("Join discussions, share knowledge, and connect with experts on our [Community Forum](#).")
# Footer
st.markdown("---")
st.caption("🌟 **This is a demo app showcasing how to make cryptocurrency accessible and secure.**")