forked from indymedia/epicyon
Height of avatar image
parent
fe2251b49c
commit
351addbe79
|
@ -48,13 +48,15 @@ def htmlProfile(profileJson: {}) -> str:
|
||||||
domainFull=domain
|
domainFull=domain
|
||||||
if port:
|
if port:
|
||||||
domainFull=domain+':'+str(port)
|
domainFull=domain+':'+str(port)
|
||||||
|
profileDescription=profileJson['publicKey']['summary']
|
||||||
|
profileDescription='A test description'
|
||||||
profileStr= \
|
profileStr= \
|
||||||
' <div class="hero-image">' \
|
' <div class="hero-image">' \
|
||||||
' <div class="hero-text">' \
|
' <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>' \
|
' <h1>'+preferredName+'</h1>' \
|
||||||
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
|
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
|
||||||
' <p>'+profileJson['publicKey']['summary']+'</p>' \
|
' <p>'+profileDescription+'</p>' \
|
||||||
' </div>' \
|
' </div>' \
|
||||||
'</div>' \
|
'</div>' \
|
||||||
'<div class="container">\n' \
|
'<div class="container">\n' \
|
||||||
|
@ -92,6 +94,7 @@ def htmlProfile(profileJson: {}) -> str:
|
||||||
'' \
|
'' \
|
||||||
'.hero-text img {' \
|
'.hero-text img {' \
|
||||||
' border-radius: 10%;' \
|
' border-radius: 10%;' \
|
||||||
|
' width: 50%;' \
|
||||||
'}' \
|
'}' \
|
||||||
'' \
|
'' \
|
||||||
'.hero-text button {' \
|
'.hero-text button {' \
|
||||||
|
|
Loading…
Reference in New Issue