slightly improve home view

This commit is contained in:
Jill 2023-11-20 04:58:22 +03:00
parent cddcfee26e
commit fcc7956b4d
1 changed files with 4 additions and 1 deletions

View File

@ -19,9 +19,12 @@
<div id="login" onclick="window.location = '/profile'"> <div id="login" onclick="window.location = '/profile'">
{{#if signedIn}} {{#if signedIn}}
<div class="username">{{username}}</div> <div class="username">{{username}}</div>
<img class="avatar" src="{{avatar}}" width="128" height="128">
{{else}} {{else}}
<div class="username logged-out">log in</div> <div class="username logged-out">log in</div>
{{/if}}
{{#if avatar}}
<img class="avatar" src="{{avatar}}" width="128" height="128">
{{else}}
<img class="avatar" src="/assets/avatar.png" width="128" height="128"> <img class="avatar" src="/assets/avatar.png" width="128" height="128">
{{/if}} {{/if}}
</div> </div>