Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,9 @@
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
.css-1d391kg {
|
| 9 |
-
width: 250px;
|
| 10 |
-
}
|
| 11 |
-
.css-1lcbm7u {
|
| 12 |
-
max-width: calc(100% - 300px);
|
| 13 |
-
}
|
| 14 |
-
</style>
|
| 15 |
-
""",
|
| 16 |
-
unsafe_allow_html=True
|
| 17 |
-
)
|
| 18 |
|
| 19 |
st.sidebar.title("Navigation")
|
| 20 |
page = st.sidebar.radio("Go to", ["Home", "About us", "Guidelines & Standarts used"])
|
|
@@ -25,10 +14,26 @@ if page == "Home":
|
|
| 25 |
|
| 26 |
|
| 27 |
left, right = st.columns(2)
|
| 28 |
-
if left.button("Project Developer", use_container_width=True):
|
| 29 |
-
import developer
|
| 30 |
-
developer.run()
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
if right.button("Verification Entity", use_container_width=True):
|
| 33 |
st.write("Verification Entity button clicked.")
|
| 34 |
|
|
@@ -42,4 +47,14 @@ elif page == "About":
|
|
| 42 |
|
| 43 |
elif page == "Guidelines & Standarts used":
|
| 44 |
st.title("Guidelines & Standarts used")
|
| 45 |
-
st.write("The projects relies on the publicly available data provided by Verra. Verra is")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
+
#passcode
|
| 5 |
+
|
| 6 |
+
PASS_CODE = "12345"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
st.sidebar.title("Navigation")
|
| 9 |
page = st.sidebar.radio("Go to", ["Home", "About us", "Guidelines & Standarts used"])
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
left, right = st.columns(2)
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
with left:
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
with st.popover("Project Developer", key="developer_popover"):
|
| 25 |
+
st.write("Enter your access code to proceed.")
|
| 26 |
+
entered_code = st.text_input("Enter your access code:")
|
| 27 |
+
if st.button("Submit", key="developer_submit"):
|
| 28 |
+
if entered_code == SECRET_CODE:
|
| 29 |
+
st.session_state.page_redirect = "developer"
|
| 30 |
+
st.success("Code correct! Redirecting to Project Developer page...")
|
| 31 |
+
st.experimental_rerun() # Refresh to load the new page
|
| 32 |
+
|
| 33 |
+
else:
|
| 34 |
+
st.error("Incorrect code. Please try again.")
|
| 35 |
+
|
| 36 |
+
|
| 37 |
if right.button("Verification Entity", use_container_width=True):
|
| 38 |
st.write("Verification Entity button clicked.")
|
| 39 |
|
|
|
|
| 47 |
|
| 48 |
elif page == "Guidelines & Standarts used":
|
| 49 |
st.title("Guidelines & Standarts used")
|
| 50 |
+
st.write("The projects relies on the publicly available data provided by Verra. Verra is")
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
if 'page_redirect' in st.session_state and st.session_state.page_redirect == "developer":
|
| 56 |
+
st.title("Project Developer Portal")
|
| 57 |
+
st.write("You can submit your project for evaluation here.")
|
| 58 |
+
# Import and run your developer functionality
|
| 59 |
+
import developer
|
| 60 |
+
developer.run()
|