Skip to content

Commit

Permalink
switch to streamlint #3
Browse files Browse the repository at this point in the history
  • Loading branch information
michivonah committed Apr 4, 2023
1 parent d6e6181 commit 69f223c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[theme]
base="light"
34 changes: 22 additions & 12 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
from nicegui import ui
import streamlit as st

ui.markdown('''
st.set_page_config(
page_title="Helpdesk by Michi",
page_icon="🎟️",
layout="wide",
initial_sidebar_state="expanded",
menu_items={
'About': "# Helpdesk by Michi von Ah"
}
)

st.write("""
# Helpdesk
This is a simple helpdesk tool.
''')
ui.link('View on GitHub', 'https://github.com/michivonah/helpdesk')

ui.button('Load tickets!', on_click=lambda: ui.notify('Please connect to a database!', close_button='OK'))
[View on Github](https://github.com/michivonah/helpdesk)
""")

st.sidebar.markdown("# Helpdesk")

st.button('Load tickets')

ui.input(label='Username')
username = st.text_input('Username')

ui.input(label='Password')
password = st.text_input('Password')

ui.button('Sign in')
st.button('Sign in')

# Start App
ui.colors(primary='#9b59b6', secondary='#8e44ad', accent='#f1c40f')
ui.run(title='Helpdesk by Michi', dark='false')
st.error('Please connect to a database!', icon="💽")

7 changes: 7 additions & 0 deletions pages/tickets.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import streamlit as st

st.write("""
# My tickets
""")

st.sidebar.markdown("# My tickets")

0 comments on commit 69f223c

Please sign in to comment.