implement more social links, change naming of e.V.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class SocialPlatform(Enum):
|
||||
MAIL = 0
|
||||
STEAM = 1
|
||||
DISCORD = 2
|
||||
X = 3
|
||||
FACEBOOK = 4
|
||||
YOUTUBE = 5
|
||||
TWITCH = 6
|
||||
INSTAGRAM = 7
|
||||
LINKEDIN = 8
|
||||
GIT = 9
|
||||
|
||||
|
||||
@dataclass
|
||||
class SocialLink:
|
||||
platform: SocialPlatform
|
||||
url: str
|
||||
|
||||
|
||||
SOCIAL_PLATFORM_ICON_MAP = {
|
||||
SocialPlatform.MAIL: "material/mail",
|
||||
SocialPlatform.STEAM: "custom/steam",
|
||||
SocialPlatform.DISCORD: "custom/discord",
|
||||
SocialPlatform.X: "custom/x",
|
||||
SocialPlatform.FACEBOOK: "custom/facebook",
|
||||
SocialPlatform.YOUTUBE: "custom/youtube",
|
||||
SocialPlatform.TWITCH: "custom/twitch",
|
||||
SocialPlatform.INSTAGRAM: "custom/instagram",
|
||||
SocialPlatform.LINKEDIN: "custom/linkedin",
|
||||
SocialPlatform.GIT: "custom/git"
|
||||
}
|
||||
Reference in New Issue
Block a user