jpdiazpardo's picture
Upload 5 files
b8a333c
raw
history blame
573 Bytes
def generate_icon(icon):
if icon == 'linkedin':
unicodigo = '<i style="font-size:24px" class="fa">&#xf08c;</i>'
elif icon=="github":
unicodigo = '<i style="font-size:24px" class="fa">&#xf09b;</i>'
else:
None
html = ("<html>"
'<head>'
"<title>Font Awesome Icons</title>"
'<meta name="viewport" content="width=device-width, initial-scale=1">'
'<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">'
"</head>"
"<body>"
f"{unicodigo}"
"</body>"
"</html>")
return html