stable initial
This commit is contained in:
@@ -1,27 +1,22 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
from typing import * # type: ignore
|
||||
|
||||
import rio
|
||||
|
||||
from . import pages
|
||||
from . import components as comps
|
||||
|
||||
# Define a theme for Rio to use.
|
||||
#
|
||||
# You can modify the colors here to adapt the appearance of your app or website.
|
||||
# The most important parameters are listed, but more are available! You can find
|
||||
# them all in the docs
|
||||
#
|
||||
# https://rio.dev/docs/api/theme
|
||||
theme = rio.Theme.from_colors(
|
||||
primary_color=rio.Color.from_hex("01dffdff"),
|
||||
secondary_color=rio.Color.from_hex("0083ffff"),
|
||||
light=True,
|
||||
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',
|
||||
@@ -29,10 +24,10 @@ app = rio.App(
|
||||
rio.Page(
|
||||
name="Home",
|
||||
page_url='',
|
||||
build=pages.SamplePage,
|
||||
build=pages.Home,
|
||||
),
|
||||
],
|
||||
theme=theme,
|
||||
assets_dir=Path(__file__).parent / "assets",
|
||||
on_session_start=on_session_start
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user