Skip to content

Commit

Permalink
work at login section #3 #4
Browse files Browse the repository at this point in the history
  • Loading branch information
michivonah committed Apr 6, 2023
1 parent 1207593 commit 8f441af
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,24 @@
[View on Github](https://github.com/michivonah/helpdesk)
""")
st.sidebar.markdown("# Login")

loginTab, registerTab = st.sidebar.tabs(["Login", "Register"])

username = st.sidebar.text_input('Username')
with loginTab:
st.markdown("# Login")

password = st.sidebar.text_input('Password')
with registerTab:
st.markdown("# Register")

st.sidebar.button('Sign in')
email = st.sidebar.text_input('Mail')
password = st.sidebar.text_input('Password')
loginBtn = st.sidebar.button('Sign in')

st.error('Please connect to a database!', icon="💽")
if loginBtn:
st.sidebar.info('Logged in', icon="ℹ️")
else:
st.sidebar.info('Logged out', icon="ℹ️")


st.warning('Currently in development. This is a early version.', icon="🐞")

0 comments on commit 8f441af

Please sign in to comment.