add news 060624
This commit is contained in:
parent
476726ce2a
commit
8c3ef14769
BIN
ezgg_website/assets/a38.png
Normal file
BIN
ezgg_website/assets/a38.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 328 KiB |
3
ezgg_website/assets/news_06_06_24.md
Normal file
3
ezgg_website/assets/news_06_06_24.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Passierschein A38 erhalten, gestempelt und unterschrieben!
|
||||||
|
|
||||||
|
Ab heute wird die EZ GG e.V. offiziell unter dem Aktenzeichen _VR 5837_ im Vereinsregister der Stadt Marburg geführt.
|
||||||
@ -1,4 +1,5 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
import rio
|
import rio
|
||||||
|
|
||||||
@ -7,6 +8,7 @@ class NewsPost(rio.Component):
|
|||||||
header: str
|
header: str
|
||||||
date: str
|
date: str
|
||||||
article_text_path_or_text: str | Path
|
article_text_path_or_text: str | Path
|
||||||
|
images: list[Path]
|
||||||
article_text = ""
|
article_text = ""
|
||||||
|
|
||||||
@rio.event.on_populate
|
@rio.event.on_populate
|
||||||
@ -22,6 +24,9 @@ class NewsPost(rio.Component):
|
|||||||
self.article_text = f.read()
|
self.article_text = f.read()
|
||||||
|
|
||||||
def build(self) -> rio.Component:
|
def build(self) -> rio.Component:
|
||||||
|
image_column = rio.Column(margin=0.5)
|
||||||
|
for image_path in self.images:
|
||||||
|
image_column.add(rio.Image(image_path, fill_mode="fit", width=18, height=18, align_x=0.01))
|
||||||
return rio.Rectangle(
|
return rio.Rectangle(
|
||||||
content=rio.Column(
|
content=rio.Column(
|
||||||
rio.Row(
|
rio.Row(
|
||||||
@ -31,7 +36,8 @@ class NewsPost(rio.Component):
|
|||||||
),
|
),
|
||||||
rio.Column(
|
rio.Column(
|
||||||
rio.Markdown(self.article_text, margin=1)
|
rio.Markdown(self.article_text, margin=1)
|
||||||
)
|
),
|
||||||
|
image_column
|
||||||
),
|
),
|
||||||
fill=self.session.theme.neutral_color,
|
fill=self.session.theme.neutral_color,
|
||||||
corner_radius=self.session.theme.corner_radius_medium,
|
corner_radius=self.session.theme.corner_radius_medium,
|
||||||
@ -41,10 +47,13 @@ class NewsPost(rio.Component):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def build_news_post(header: str, article_text_path_or_text: str | Path, date: str) -> NewsPost:
|
def build_news_post(header: str, article_text_path_or_text: str | Path, date: str, images: Optional[list[Path]] = None) -> NewsPost:
|
||||||
|
if images is None:
|
||||||
|
images = []
|
||||||
return NewsPost(
|
return NewsPost(
|
||||||
header=header,
|
header=header,
|
||||||
article_text_path_or_text=article_text_path_or_text,
|
article_text_path_or_text=article_text_path_or_text,
|
||||||
|
images=images,
|
||||||
date=date,
|
date=date,
|
||||||
align_y=0,
|
align_y=0,
|
||||||
margin_top=0,
|
margin_top=0,
|
||||||
|
|||||||
@ -31,6 +31,12 @@ class Home(rio.Component):
|
|||||||
margin_bottom=1,
|
margin_bottom=1,
|
||||||
margin_right=1
|
margin_right=1
|
||||||
),
|
),
|
||||||
|
comps.build_news_post(
|
||||||
|
header="Eintragung abgeschlossen!",
|
||||||
|
article_text_path_or_text=from_root("ezgg_website/assets/news_06_06_24.md"),
|
||||||
|
images=[from_root("ezgg_website/assets/a38.png")],
|
||||||
|
date="06.06.2024"
|
||||||
|
),
|
||||||
comps.build_news_post(
|
comps.build_news_post(
|
||||||
header="Beitrittsformular verfügbar",
|
header="Beitrittsformular verfügbar",
|
||||||
article_text_path_or_text=from_root("ezgg_website/assets/news_02_06_24.md"),
|
article_text_path_or_text=from_root("ezgg_website/assets/news_02_06_24.md"),
|
||||||
|
|||||||
@ -29,7 +29,7 @@ Als Mitglied hast du die Möglichkeit, aktiv an unseren Veranstaltungen teilzune
|
|||||||
|
|
||||||
Um Mitglied zu werden, fülle bitte das untenstehende Formular aus und sende es uns [per Mail an den Vorstand](./member) oder [per Post](./imprint). Wir freuen uns darauf, dich bald in unserer Gemeinschaft begrüßen zu dürfen!
|
Um Mitglied zu werden, fülle bitte das untenstehende Formular aus und sende es uns [per Mail an den Vorstand](./member) oder [per Post](./imprint). Wir freuen uns darauf, dich bald in unserer Gemeinschaft begrüßen zu dürfen!
|
||||||
|
|
||||||
[Beitrittserklärung (Stand 02.06.24)](https://verwaltung.ezgg-ev.de/adm_program/modules/documents-files/get_file.php?file_uuid=7770a5f5-4847-46dd-93aa-3c538772bee8)
|
[Beitrittserklärung (Stand 06.06.24)](https://verwaltung.ezgg-ev.de/adm_program/modules/documents-files/get_file.php?file_uuid=dbdf7d6d-3732-482c-9b80-152106dbe0c0)
|
||||||
|
|
||||||
Bei Fragen oder weiteren Informationen kannst du dich jederzeit an unseren Vorstand wenden. Die Kontaktdaten findest du auf [hier](./member). Wir freuen uns auf dich!
|
Bei Fragen oder weiteren Informationen kannst du dich jederzeit an unseren Vorstand wenden. Die Kontaktdaten findest du auf [hier](./member). Wir freuen uns auf dich!
|
||||||
""",
|
""",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user