add pfps, some polish

This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent 351b9f2bc8
commit 85b3e55e3d
16 changed files with 142 additions and 230 deletions

View file

@ -3,24 +3,38 @@
<h1>User</h1>
<div class='form-message'></div>
<div class='user'>
<p>
<b>@<%= id %></b>
</p>
<details>
<summary> <%= following.length %> following</summary>
<% for (let user of following) { %>
<a href='/client/user?id=<%= user.target %>'><%= user.target %></a>
<%} %>
</details>
<details>
<summary> <%= followers.length %> followers</summary>
<% for (let user of followers) { %>
<a href='/client/user?id=<%= user.username %>'><%= user.username %></a>
<%} %>
</details>
<input name='target' hidden value="<%= id %>">
<input type='submit' value="Follow">
<div class='pfp-wrapper'>
<img src='/pfp/<%= id %>.png' class='avatar'>
<div>
<p>
<b>@<%= id %></b>
</p>
<details>
<summary>
<%= following.length %> following
</summary>
<% for (let user of following) { %>
<a href='/client/user?id=<%= user.target %>'>
<%= user.target %>
</a>
<%} %>
</details>
<details>
<summary>
<%= followers.length %> followers
</summary>
<% for (let user of followers) { %>
<a href='/client/user?id=<%= user.username %>'>
<%= user.username %>
</a>
<%} %>
</details>
<input name='target' hidden value="<%= id %>">
<input type='submit' value="Follow">
</div>
</div>
</div>
<pre><%= user[0].bio %></pre>
</form>
<div class='area'>
<h1>Uploaded Videos</h1>