Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
"customizations": {
"codespaces": {
"openFiles": [
"README.md",
"streamlit_app.py"
]
},
"vscode": {
"settings": {},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},
"updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'",
"postAttachCommand": {
"server": "streamlit run streamlit_app.py --server.enableCORS false --server.enableXsrfProtection false"
},
"portsAttributes": {
"8501": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [
8501
]
}
2 changes: 1 addition & 1 deletion .streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ primaryColor="#F63366"
backgroundColor="#FFFFFF"
secondaryBackgroundColor="#F0F2F6"
textColor="#262730"
font="sans serif"
font="monospace"
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.84.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
49 changes: 47 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
import streamlit as st
st.title("Hope4Her")
st.header("Your guide to be aware and get help on gender inequality related issues")
st.write("If you need help, click on the button and read the tips at the bottom:")
sexualAbuse = st.button("Sexual Abuse")
onlineAbuse = st.button("Online Abuse")
harassment = st.button("Harassment")
employment = st.button("Employment")
payRate = st.button("Pay Rate")
other = st.button("Other")
if sexualAbuse:
st.write("Ways to get help:")
st.write("Call 800-656-4673")
st.write("Talk to your friends and family and see if they can help")
st.write("Seek madical help")
st.write("Create an exit plan")
if onlineAbuse:
st.write("Ways to get help:")
st.write("Block/Report person")
st.write("Ignore the comments")
st.write("Seek help")
if employment:
st.write("Ways to get help:")
st.write("Talk to your lawyer/agent")
st.write("Talk to the person in charge of employment")
if harassment:
st.write("Ways to get help:")
st.write("Create distance from person")
st.write("Stand up for what is right")
st.write("Ignore")
if payRate:
st.write("Ways to get help:")
st.write("Talk to the boss")
st.write("Find out more about your true pay")
st.write("File a case at labor, commissioner office")
if other:
st.write("Try to talk to friends and family about the issue")
st.write("If it is necessary, call 911")
st.write("You can look at this [link]""(https://www.legalmomentum.org/get-help-form#:~:text=The%20Syms%20Legal%20Momentum%20Gender,gender%20discrimination%2C%20violence%20and%20harassment)")

st.header("If you want to learn more about gender inequality, keep scrolling!")

st.title('🎈 App Name')
st.write("Gender inequality oftens happens in families, realationships, public places, and at work")
st.write("The #1 cause of gender inequality is uneven acesses to education")
st.write("The state of Maryland has the lowest rate of gender inequality in the USA")
st.write("Lousiana has the highest rate of gender inequality in the USA")
st.write("Kenya has the highest rate of gender inequality worldwide")
st.write("Yemen has the lowest rate of gender inequality worldwide")

st.write('Hello world!')
#www.statisa.com