-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
michivonah
committed
Apr 4, 2023
1 parent
d6e6181
commit 69f223c
Showing
3 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[theme] | ||
base="light" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="💽") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |