mirror of
https://github.com/natankeddem/bale.git
synced 2026-04-23 06:50:41 +00:00
46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
from nicegui import ui
|
|
from snapper import elements as el
|
|
from snapper.drawer import Drawer
|
|
from snapper.content import Content
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
def build():
|
|
@ui.page("/")
|
|
def page():
|
|
ui.add_head_html(
|
|
"""
|
|
<style>
|
|
.full-size-stepper,
|
|
.full-size-stepper .q-stepper__content,
|
|
.full-size-stepper .q-stepper__step-content,
|
|
.full-size-stepper .q-stepper__step-inner {
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.multi-line-notification {
|
|
white-space: pre-line;
|
|
}
|
|
</style>
|
|
"""
|
|
)
|
|
ui.colors(
|
|
primary=el.orange,
|
|
secondary=el.orange,
|
|
accent="#d946ef",
|
|
dark=el.dark,
|
|
positive="#21ba45",
|
|
negative="#c10015",
|
|
info="#31ccec",
|
|
warning="#f2c037",
|
|
)
|
|
column = ui.column()
|
|
content = Content()
|
|
drawer = Drawer(column, content.host_selected, content.hide)
|
|
drawer.build()
|
|
content.build()
|