Update app.py
Browse files
app.py
CHANGED
|
@@ -2,68 +2,63 @@ import streamlit as st
|
|
| 2 |
|
| 3 |
# App Configuration
|
| 4 |
st.set_page_config(
|
| 5 |
-
page_title="
|
| 6 |
-
page_icon="
|
| 7 |
layout="wide"
|
| 8 |
)
|
| 9 |
|
| 10 |
-
# Sidebar
|
| 11 |
st.sidebar.title("Features")
|
| 12 |
st.sidebar.markdown("""
|
| 13 |
-
- **
|
| 14 |
-
- **
|
| 15 |
-
- **
|
| 16 |
-
- **
|
| 17 |
-
- **
|
| 18 |
-
- **Multi-Language Support**: Available in various languages.
|
| 19 |
-
- **Offline Resources**: Access essential guides anytime.
|
| 20 |
""")
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
st.title("
|
| 24 |
-
st.subheader("
|
| 25 |
|
| 26 |
-
# Sections
|
| 27 |
-
st.markdown("###
|
| 28 |
-
|
| 29 |
-
if st.button("Create Wallet"):
|
| 30 |
-
if wallet_name:
|
| 31 |
-
st.success(f"π Wallet '{wallet_name}' created successfully!")
|
| 32 |
-
else:
|
| 33 |
-
st.error("Please provide a wallet name.")
|
| 34 |
-
|
| 35 |
-
st.markdown("### **2. Educational Resources**")
|
| 36 |
-
if st.checkbox("Show Blockchain Basics"):
|
| 37 |
st.markdown("""
|
| 38 |
-
-
|
| 39 |
-
-
|
| 40 |
-
-
|
| 41 |
""")
|
| 42 |
|
| 43 |
-
if st.checkbox("
|
| 44 |
st.markdown("""
|
| 45 |
-
-
|
| 46 |
-
-
|
| 47 |
-
- Always
|
| 48 |
""")
|
| 49 |
|
| 50 |
-
st.markdown("### **
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
st.error("Please fill out all fields to process the transaction.")
|
| 60 |
|
| 61 |
-
st.markdown("###
|
| 62 |
-
st.text_area("
|
| 63 |
if st.button("Submit Question"):
|
| 64 |
-
st.success("Your question has been submitted
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
# Footer
|
| 67 |
st.markdown("---")
|
| 68 |
-
st.
|
| 69 |
-
|
|
|
|
| 2 |
|
| 3 |
# App Configuration
|
| 4 |
st.set_page_config(
|
| 5 |
+
page_title="Crypto for All",
|
| 6 |
+
page_icon="π",
|
| 7 |
layout="wide"
|
| 8 |
)
|
| 9 |
|
| 10 |
+
# Sidebar: Features and Navigation
|
| 11 |
st.sidebar.title("Features")
|
| 12 |
st.sidebar.markdown("""
|
| 13 |
+
- **Crypto Basics**: Learn blockchain, wallets, and decentralized finance.
|
| 14 |
+
- **Safety First**: Tips to identify scams and secure assets.
|
| 15 |
+
- **Simulated Wallet**: Practice creating and using a digital wallet.
|
| 16 |
+
- **Real-Time Support**: Get instant help from an AI chatbot.
|
| 17 |
+
- **Community Space**: Collaborate and share knowledge.
|
|
|
|
|
|
|
| 18 |
""")
|
| 19 |
|
| 20 |
+
# App Header
|
| 21 |
+
st.title("Crypto for All π")
|
| 22 |
+
st.subheader("Making cryptocurrency safe, trustworthy, and accessible to everyone.")
|
| 23 |
|
| 24 |
+
# Main Sections
|
| 25 |
+
st.markdown("### 1οΈβ£ **Learn About Cryptocurrency**")
|
| 26 |
+
if st.checkbox("What is Cryptocurrency?"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
st.markdown("""
|
| 28 |
+
- Cryptocurrency is a digital or virtual currency secured by cryptography.
|
| 29 |
+
- It operates on decentralized networks, such as blockchain.
|
| 30 |
+
- Popular examples include Bitcoin, Ethereum, and Litecoin.
|
| 31 |
""")
|
| 32 |
|
| 33 |
+
if st.checkbox("How Do Digital Wallets Work?"):
|
| 34 |
st.markdown("""
|
| 35 |
+
- A digital wallet stores your private and public keys.
|
| 36 |
+
- It allows you to send and receive cryptocurrency securely.
|
| 37 |
+
- Always use trusted wallets and back up your keys.
|
| 38 |
""")
|
| 39 |
|
| 40 |
+
st.markdown("### 2οΈβ£ **Safety and Security**")
|
| 41 |
+
st.markdown("#### Protect Yourself in the Crypto World")
|
| 42 |
+
st.info("**Tips to Stay Safe**")
|
| 43 |
+
st.write("""
|
| 44 |
+
- Use strong, unique passwords for your wallets.
|
| 45 |
+
- Be cautious of unsolicited messages offering 'investment opportunities.'
|
| 46 |
+
- Always double-check wallet addresses before sending funds.
|
| 47 |
+
""")
|
| 48 |
|
| 49 |
+
st.markdown("### 3οΈβ£ **Simulated Wallet**")
|
| 50 |
+
st.text_input("Enter a Wallet Name:", placeholder="E.g., MySecureWallet")
|
| 51 |
+
if st.button("Create Mock Wallet"):
|
| 52 |
+
st.success("π Wallet created successfully! Explore safely before going live.")
|
|
|
|
| 53 |
|
| 54 |
+
st.markdown("### 4οΈβ£ **Ask Questions in Real-Time**")
|
| 55 |
+
st.text_area("Type your question here:", placeholder="E.g., What is blockchain?")
|
| 56 |
if st.button("Submit Question"):
|
| 57 |
+
st.success("Your question has been submitted. Our AI chatbot will assist you shortly.")
|
| 58 |
+
|
| 59 |
+
st.markdown("### 5οΈβ£ **Community Space**")
|
| 60 |
+
st.write("Join discussions, share knowledge, and connect with experts on our [Community Forum](#).")
|
| 61 |
|
| 62 |
# Footer
|
| 63 |
st.markdown("---")
|
| 64 |
+
st.caption("π **This is a demo app showcasing how to make cryptocurrency accessible and secure.**")
|
|
|