-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path2_column_c.py
More file actions
29 lines (23 loc) · 977 Bytes
/
2_column_c.py
File metadata and controls
29 lines (23 loc) · 977 Bytes
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
from nicegui import ui
def app():
ui.colors(
base_100="oklch(100% 0 0)",
base_200="oklch(93% 0 0)",
base_300="oklch(86% 0 0)",
)
ui.query(".nicegui-content").style("padding: 0; overflow: hidden;")
with ui.element("div").classes("flex w-full h-screen"):
# Sidebar
with ui.element("div").classes("w-[30%] max-w-xs bg-base-200 p-4"):
ui.label("Sidebar").classes("text-xl")
# Main
with ui.element("div").classes("flex flex-col grow h-full"):
# Header
with ui.element("header").classes("min-h-[4%] bg-base-300 p-4"):
ui.label("Header").classes("text-xl")
# Content
with ui.element("div").classes("grow bg-base-100 p-4"):
ui.label("Content").classes("text-xl")
# Footer
with ui.element("footer").classes("min-h-[4%] bg-base-300 p-4"):
ui.label("Footer").classes("text-xl")