36 lines
777 B
Python
36 lines
777 B
Python
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"
|
|
}
|