mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 08:23:33 -06:00
[frontend] Profile pages upgrade (#640)
* fix css indentation * profile styling update * update status styling to match profile * empty header fix * generate random avatars for thread views * appease the linter gods * upgrade deps * turn profile accent into border + $bg background * upgrade deps * small accessibility tweaks Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com>
This commit is contained in:
parent
8c7945fb78
commit
7c6c0cd547
9 changed files with 1355 additions and 1301 deletions
|
|
@ -1,28 +1,32 @@
|
|||
{{ template "header.tmpl" .}}
|
||||
<main>
|
||||
{{ if .account.Header }}<a href="{{.account.Header}}" class="headerimage"><img src="{{.account.Header}}"></a>{{ end }}
|
||||
<div class="profile">
|
||||
<div class="headerimage">
|
||||
{{ if .account.Header }}
|
||||
<img
|
||||
src="{{.account.Header}}"
|
||||
alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s header"
|
||||
/>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="basic">
|
||||
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}" alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s avatar"></a>
|
||||
<a href="{{.account.URL}}" class="displayname">{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}</a>
|
||||
<a href="{{.account.URL}}" class="username">@{{.account.Username}}</a>
|
||||
<div class="avatar-container">
|
||||
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detailed">
|
||||
<h2>About @{{.account.Username}}</h2>
|
||||
<div class="bio">
|
||||
{{ if .account.Note }}{{ .account.Note | noescape }}{{else}}This GoToSocial user hasn't written a bio yet!{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="accountstats">
|
||||
<div class="entry">Joined <b>{{.account.CreatedAt | timestampShort}}</b></div>
|
||||
<div class="entry">Followed by <b>{{.account.FollowersCount}}</b></div>
|
||||
<div class="entry">Following <b>{{.account.FollowingCount}}</b></div>
|
||||
<div class="entry">Posted <b>{{.account.StatusesCount}}</b></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accountstats">
|
||||
<div class="entry">Joined {{.account.CreatedAt | timestampShort}}</div>
|
||||
<div class="entry">Followed by {{.account.FollowersCount}}</div>
|
||||
<div class="entry">Following {{.account.FollowingCount}}</div>
|
||||
<div class="entry">Posted {{.account.StatusesCount}}</div>
|
||||
</div>
|
||||
<h2>Recent public posts by @{{.account.Username}}</h2>
|
||||
<h2 id="recent">Recent public toots</h2>
|
||||
<div class="thread">
|
||||
{{range .statuses}}
|
||||
<div class="toot expanded">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue