diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-02-21 06:55:30 +0100 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-02-21 06:55:30 +0100 |
commit | 2404f7b5507393bf2f8dcb60ba6886f3cda799aa (patch) | |
tree | 8a8f8f070665efe70902befa334a61c59542b7bf /web-project/src/solo_tool_web.py | |
parent | 655f5b87c43f4ac5cfaef6be482d652c532edc23 (diff) |
Add wireframe of web interface, mock implementation in nicegui
Diffstat (limited to 'web-project/src/solo_tool_web.py')
-rw-r--r-- | web-project/src/solo_tool_web.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/web-project/src/solo_tool_web.py b/web-project/src/solo_tool_web.py new file mode 100644 index 0000000..859dba2 --- /dev/null +++ b/web-project/src/solo_tool_web.py @@ -0,0 +1,49 @@ +from nicegui import ui + +def main(): + with ui.splitter(value=30) as splitter: + splitter.style('width: 100%; height: 100%;') + with splitter.before: + with ui.list().props('dense separator'): + ui.item('Sweet Child o\' Mine') + ui.item('Elembivos') + ui.item('Tears of the Dragon') + ui.item('Victory Song') + with splitter.after: + with ui.column() as column: + column.style('width: 100%;') + + ui.slider(min=0, max=120, value=100) + + with ui.row(): + ui.button('-5') + ui.slider(min=50, max=120, step=5, value=100) + ui.button('+5') + + ui.slider(min=0, max=100, value=0) + + with ui.row(): + ui.button('Prev') + ui.button('-25%') + ui.button('-5%') + ui.button('-1%') + ui.button('+1%') + ui.button('+5%') + ui.button('+25%') + ui.button('Next') + + with ui.row(): + ui.button('Set A') + ui.button('Set B') + ui.button('Previous AB') + ui.button('Next AB') + + with ui.row(): + ui.button('Toggle AB') + ui.button('Stop') + ui.button('Start') + ui.button('Jump to A') + ui.run() + +if __name__ in {'__main__', '__mp_main__'}: + main() |