Add more social links

This commit is contained in:
David Rodenkirchen 2024-06-06 19:39:00 +00:00
commit 476726ce2a
2 changed files with 22 additions and 6 deletions

View File

@ -17,7 +17,7 @@ class MemberCard(rio.Component):
social_links_grid
)
for i, social_link in enumerate(self.info.socials):
for i, social_link in enumerate(sorted(self.info.socials, key=lambda s: s.platform.value)):
social_links_grid.add(
rio.Link(
rio.Icon(SOCIAL_PLATFORM_ICON_MAP[social_link.platform], height=1.3, width=1.3, fill="primary"),

View File

@ -39,28 +39,44 @@ class DatabaseService:
position="Schatzmeisterin",
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.TWITCH, "https://twitch.tv/jessysixx88/home")
SocialLink(SocialPlatform.MAIL, "mailto://jessysixx@ezgg-ev.de"),
SocialLink(SocialPlatform.TWITCH, "https://twitch.tv/jessysixx88/home"),
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/id/JessySixx"),
SocialLink(SocialPlatform.INSTAGRAM, "https://www.instagram.com/jessykrumel/"),
SocialLink(SocialPlatform.FACEBOOK, "https://www.facebook.com/krumelcore.untherapierbar")
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/tim.png"),
name="Tim \"Matschwicht\" B.",
position="Mitglied",
entry_date="29.10.2023"
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198247114792"),
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/dennis.png"),
name="Dennis \"Goodman\" P.",
position="Mitglied",
entry_date="29.10.2023"
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198160425987"),
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/tom.png"),
name="Tom \"Tcprod\" C.",
position="Mitglied",
entry_date="29.10.2023"
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198118936378"),
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/chris.png"),
name="Chris \"Meliodas\" K.",
position="Mitglied",
entry_date="29.10.2023"
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198299462425"),
]
)
]