stable initial

This commit is contained in:
David Rodenkirchen
2024-05-24 17:38:28 +02:00
parent e57d47e38f
commit 1831149e4c
13 changed files with 223 additions and 42 deletions
+29
View File
@@ -0,0 +1,29 @@
from pathlib import Path
import rio
from from_root import from_root
class Header(rio.Component):
def build(self) -> rio.Component:
return rio.Column(
rio.Rectangle(
content=rio.Column(
rio.Link(
rio.Image(from_root("ezgg_website/assets/placeholder_logo.png"), align_x=0, width=8),
"/"
),
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,
),
align_y=0,
margin_top=1,
margin_left=1,
margin_right=1,
height=4
)