stable initial
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import KW_ONLY, field
|
||||
from typing import * # type: ignore
|
||||
|
||||
import rio
|
||||
from from_root import from_root
|
||||
|
||||
from .page_builder import build_page
|
||||
from .. import components as comps
|
||||
|
||||
|
||||
class Home(rio.Component):
|
||||
def build(self) -> rio.Component:
|
||||
return build_page(rio.Column(
|
||||
rio.Rectangle(
|
||||
content=rio.Markdown("### Willkommen auf der Homepage der EZ GG e.V.", margin=1),
|
||||
fill=self.session.theme.neutral_color,
|
||||
corner_radius=self.session.theme.corner_radius_medium,
|
||||
shadow_radius=1,
|
||||
shadow_color=self.session.theme.shadow_color,
|
||||
shadow_offset_y=0.2,
|
||||
margin_bottom=1,
|
||||
margin_right=1
|
||||
),
|
||||
comps.NewsPost(
|
||||
header="Voll der Fließtext",
|
||||
article_text=from_root("ezgg_website/assets/demo_article_1.txt"),
|
||||
date="24.05.2024"
|
||||
),
|
||||
comps.NewsPost(
|
||||
header="Lorem Ipsum",
|
||||
article_text=from_root("ezgg_website/assets/demo_article_2.txt"),
|
||||
date="12.02.1884"
|
||||
)
|
||||
))
|
||||
Reference in New Issue
Block a user