Spaces:
Sleeping
Sleeping
File size: 784 Bytes
1ef4e10 0fb23b8 1ef4e10 0fb23b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# components/dashboard_page.py
import gradio as gr
from components.header import Header
class DashboardPage:
"""UI elements + event wiring for the post-login dashboard."""
def __init__(self):
with gr.Column(visible=False) as self.container:
# βββββ header (welcome + logout) βββββ
self.header = Header()
# βββββββββββ main body ββββββββββββ
# βββββββββββββββββββ event wiring ββββββββββββββββββββ
def register_callbacks(self, login_page, session_state):
# Header handles its own logout button
self.header.register_callbacks(login_page, self, session_state)
|