From 2404f7b5507393bf2f8dcb60ba6886f3cda799aa Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Fri, 21 Feb 2025 06:55:30 +0100 Subject: Add wireframe of web interface, mock implementation in nicegui --- web-project/src/solo_tool_web.py | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 web-project/src/solo_tool_web.py (limited to 'web-project/src') 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() -- cgit v1.2.3