Height of avatar image

master
Bob Mottram 2019-07-21 21:36:58 +01:00
parent fe2251b49c
commit 351addbe79
1 changed files with 5 additions and 2 deletions

View File

@ -48,13 +48,15 @@ def htmlProfile(profileJson: {}) -> str:
domainFull=domain
if port:
domainFull=domain+':'+str(port)
profileDescription=profileJson['publicKey']['summary']
profileDescription='A test description'
profileStr= \
' <div class="hero-image">' \
' <div class="hero-text">' \
' <img src="'+profileJson['icon']['url']+'" alt="'+nickname+'@'+domainFull+'" style="width:100%">' \
' <img src="'+profileJson['icon']['url']+'" alt="'+nickname+'@'+domainFull+'">' \
' <h1>'+preferredName+'</h1>' \
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
' <p>'+profileJson['publicKey']['summary']+'</p>' \
' <p>'+profileDescription+'</p>' \
' </div>' \
'</div>' \
'<div class="container">\n' \
@ -92,6 +94,7 @@ def htmlProfile(profileJson: {}) -> str:
'' \
'.hero-text img {' \
' border-radius: 10%;' \
' width: 50%;' \
'}' \
'' \
'.hero-text button {' \