-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomepage.py
52 lines (46 loc) · 1.48 KB
/
homepage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from nicegui import ui
from design import frame
from menu import create_menu
def create() -> None:
@ui.page("/")
def page_home():
create_menu("Home Page")
with frame("Home Page"):
# message("Home Page")
ui.label("This page is defined in a function.")
ui.button(
color="primary",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
ui.button(
color="secondary",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
ui.button(
color="accent",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
ui.button(
color="positive",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
ui.button(
color="negative",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
ui.button(
color="warning",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
ui.button(
color="info",
text="Click me!",
on_click=lambda: ui.notify("Hello, World!"),
)
# ui.left_drawer().add_slot(ui.link("Home", "/"))