20 lines
717 B
Python
20 lines
717 B
Python
from contextlib import contextmanager
|
|
from nicegui import ui
|
|
|
|
|
|
@contextmanager
|
|
def frame(navigation_title: str):
|
|
"""Custom page frame to share the same styling and behavior across all pages"""
|
|
ui.colors(primary='#023047', secondary='#219ebc', accent='#8ecae6', positive='#ffb703', negative='#fb8500')
|
|
with ui.header():
|
|
ui.label('Awana Verse Practice').classes('font-bold font-16')
|
|
ui.space()
|
|
ui.space()
|
|
ui.space()
|
|
ui.space()
|
|
with ui.row():
|
|
ui.link('Admin', '/').classes(replace='text-white')
|
|
ui.link('Dashboard', '/dashboard').classes(replace='text-white')
|
|
with ui.column().classes('absolute-center items-center'):
|
|
yield
|