2022-11-06 01:04:34 +05:30
|
|
|
{{ template "header" .}}
|
|
|
|
|
|
|
|
<main>
|
|
|
|
{{ if .user }}
|
|
|
|
{{ range $key, $value := .user}}
|
|
|
|
<div class="userProfile">
|
|
|
|
<img src="{{ .AvatarUrl }}" alt="{{.Login}}'s avatar" class="avatar" width="150" height="150">
|
|
|
|
{{ if .Name }}
|
|
|
|
<h1>{{.Name}}</h1>
|
|
|
|
{{ end }}
|
|
|
|
<h2>{{.Login}}</h2>
|
|
|
|
{{ if eq .Type "User" }}
|
|
|
|
<p><b>{{.Followers}}</b> followers - <b>{{.Following}}</b> following</p>
|
|
|
|
{{ else }}
|
|
|
|
<p><b>{{.Followers}}</b> followers</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Location }}
|
|
|
|
<p>🌍 {{.Location}}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Link }}
|
|
|
|
<p>🔗 <a href="https://{{.Link}}" target="_blank">{{.Link}}</a></p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .Company }}
|
|
|
|
<p>🏢 {{.Company}}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ if .EwTwitter }}
|
|
|
|
<p>🐦 <a href="https://twitter.com/{{.EwTwitter}}" target="_blank">{{.EwTwitter}}</a></p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .Bio }}
|
|
|
|
<div class="userBio">
|
|
|
|
<h3>Bio</h3>
|
|
|
|
<p class="userBioText">{{.Bio}}</p>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-11-29 22:29:04 +05:30
|
|
|
{{ if .Readme }}
|
|
|
|
<div class="userReadme">
|
|
|
|
<h3>README</h3>
|
|
|
|
<div class="userReadmeText">{{ unescape .Readme}}</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-11-06 01:04:34 +05:30
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<h2>User not found</h2>
|
|
|
|
<p>That user doesn't exist.</p>
|
|
|
|
{{ end }}
|
|
|
|
</main>
|