feat: init dashboard

This commit is contained in:
2024-07-27 15:55:20 +02:00
parent 226ce84dce
commit a533443caf
3 changed files with 43 additions and 0 deletions

17
dashboard/pages/config.py Normal file
View File

@@ -0,0 +1,17 @@
import dash
from dash import html
from dotenv import dotenv_values
import os
env = {
**dotenv_values(".env"),
**os.environ,
}
dash.register_page(__name__, path='/config')
layout = html.Div([
html.H1('This is our Config page'),
html.Ul(children = [html.Li(f"{k} = {v}") for k,v in env.items()]),
])

9
dashboard/pages/home.py Normal file
View File

@@ -0,0 +1,9 @@
import dash
from dash import html
dash.register_page(__name__, path='/')
layout = html.Div([
html.H1('This is our Home page'),
html.Div('This is our Home page content.'),
])