Ashar086 commited on
Commit
ab69122
Β·
verified Β·
1 Parent(s): 165ecc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -45
app.py CHANGED
@@ -2,68 +2,63 @@ import streamlit as st
2
 
3
  # App Configuration
4
  st.set_page_config(
5
- page_title="Beginner-Friendly Digital Wallet",
6
- page_icon="πŸ’°",
7
  layout="wide"
8
  )
9
 
10
- # Sidebar with Features
11
  st.sidebar.title("Features")
12
  st.sidebar.markdown("""
13
- - **Secure Transactions**: Powered by blockchain for unmatched security.
14
- - **Beginner-Friendly Interface**: Intuitive wallet setup and usage.
15
- - **Educational Support**: Tutorials and FAQs for learning.
16
- - **Community Engagement**: Live support and forums for guidance.
17
- - **Transparency**: Real-time transaction tracking.
18
- - **Multi-Language Support**: Available in various languages.
19
- - **Offline Resources**: Access essential guides anytime.
20
  """)
21
 
22
- # Main Content
23
- st.title("Welcome to Your Beginner-Friendly Digital Wallet App")
24
- st.subheader("Empowering communities to securely and confidently use blockchain technology.")
25
 
26
- # Sections
27
- st.markdown("### **1. Set Up Your Wallet**")
28
- wallet_name = st.text_input("Enter a Wallet Name:")
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
- - Blockchain is a distributed ledger technology.
39
- - Transactions are secure and transparent.
40
- - Each block contains a list of verified transactions.
41
  """)
42
 
43
- if st.checkbox("Show How Digital Wallets Work"):
44
  st.markdown("""
45
- - Wallets store your private keys securely.
46
- - They allow you to send and receive cryptocurrency.
47
- - Always back up your wallet to avoid losing access.
48
  """)
49
 
50
- st.markdown("### **3. Mock Transactions**")
51
- sender = st.text_input("Sender Address:")
52
- receiver = st.text_input("Receiver Address:")
53
- amount = st.number_input("Amount to Send:", min_value=0.0, step=0.01)
 
 
 
 
54
 
55
- if st.button("Send"):
56
- if sender and receiver and amount > 0:
57
- st.success(f"Transaction Successful! Sent {amount} from {sender} to {receiver}.")
58
- else:
59
- st.error("Please fill out all fields to process the transaction.")
60
 
61
- st.markdown("### **4. Community Support**")
62
- st.text_area("Ask a Question:", placeholder="Type your question here...")
63
  if st.button("Submit Question"):
64
- st.success("Your question has been submitted! Our support team will get back to you.")
 
 
 
65
 
66
  # Footer
67
  st.markdown("---")
68
- st.markdown("πŸ”’ **Note**: This is a demo app and does not process actual transactions.")
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.**")