|
|
import streamlit as st |
|
|
|
|
|
|
|
|
st.set_page_config( |
|
|
page_title="Crypto for All", |
|
|
page_icon="π", |
|
|
layout="wide" |
|
|
) |
|
|
|
|
|
|
|
|
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. |
|
|
""") |
|
|
|
|
|
|
|
|
st.title("Crypto for All π") |
|
|
st.subheader("Making cryptocurrency safe, trustworthy, and accessible to everyone.") |
|
|
|
|
|
|
|
|
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](#).") |
|
|
|
|
|
|
|
|
st.markdown("---") |
|
|
st.caption("π **This is a demo app showcasing how to make cryptocurrency accessible and secure.**") |
|
|
|