Homepage/ezgg_website/__init__.py
David Rodenkirchen 1831149e4c stable initial
2024-05-24 17:38:28 +02:00

34 lines
667 B
Python

from __future__ import annotations
from pathlib import Path
import rio
from . import pages
from . import components as comps
theme = rio.Theme.from_colors(
primary_color=rio.Color.from_hex("01dffdff"),
secondary_color=rio.Color.from_hex("0083ffff"),
light=False,
)
async def on_session_start(s: rio.Session) -> None:
await s.set_title("EZ GG e.V.")
# Create the Rio app
app = rio.App(
name='ezgg-website',
pages=[
rio.Page(
name="Home",
page_url='',
build=pages.Home,
),
],
theme=theme,
assets_dir=Path(__file__).parent / "assets",
on_session_start=on_session_start
)