Spaces:
Runtime error
Runtime error
def generate_icon(icon): | |
if icon == 'linkedin': | |
unicodigo = '<i style="font-size:24px" class="fa"></i>' | |
elif icon=="github": | |
unicodigo = '<i style="font-size:24px" class="fa"></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 |