File size: 574 Bytes
f3b023a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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