A-O98 commited on
Commit
81fdf47
·
verified ·
1 Parent(s): a17d024

Delete main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -53
main.py DELETED
@@ -1,53 +0,0 @@
1
- # main.py
2
- import streamlit as st
3
- import authentication
4
- import streamlit as st
5
- from pag import add_field, edit, monitor
6
-
7
-
8
- def authenticate_user():
9
- st.title("Welcome to :orange[Field Monitoring App]")
10
- st.markdown("""
11
- <style>
12
- .stSelectbox > div > div {cursor: pointer;}
13
- </style>
14
- """, unsafe_allow_html=True)
15
-
16
- if not st.session_state.authenticated:
17
- choice = st.selectbox("Interested? Sign up or log in if you have an account",options=["Home","Login","SignUp"])
18
-
19
- if choice == "Home":
20
- st.write("App Description")
21
-
22
- elif choice == "Login":
23
- authentication.login()
24
- elif choice == "SignUp":
25
- authentication.signup()
26
-
27
- return False
28
-
29
- def main():
30
-
31
- if "authenticated" not in st.session_state:
32
- st.session_state.authenticated = False
33
-
34
- if st.session_state.authenticated:
35
- st.sidebar.title("Navigation")
36
- options = st.sidebar.radio("Choose an option:",
37
- ("Add Field", "Manage Fields", "Monitor Fields"))
38
-
39
- if options == "Add Field":
40
- st.title("Welcome to :orange[Field Monitoring App]")
41
-
42
- add_field.add_drawing()
43
-
44
- elif options == "Manage Fields":
45
- st.title("Welcome to :orange[Field Monitoring App]")
46
- edit.edit_fields()
47
- elif options == "Monitor Fields":
48
- st.title("Welcome to :orange[Field Monitoring App]")
49
- monitor.monitor_fields()
50
- else:
51
- authenticate_user()
52
- if __name__ == "__main__":
53
- main()