some ui fixes
This commit is contained in:
parent
8c4bd89c0b
commit
5c76fdb324
6 changed files with 63 additions and 50 deletions
|
@ -56,6 +56,8 @@ body {
|
|||
}
|
||||
|
||||
.header {
|
||||
z-index: 5;
|
||||
|
||||
position: sticky;
|
||||
top: 0;
|
||||
display: flex;
|
||||
|
@ -87,7 +89,6 @@ body {
|
|||
}
|
||||
|
||||
.header-img {
|
||||
margin-left: 0.8em;
|
||||
height: 2em;
|
||||
width: 2em;
|
||||
object-fit: cover;
|
||||
|
@ -111,7 +112,8 @@ body {
|
|||
|
||||
.form-input,
|
||||
.comment,
|
||||
.form-button {
|
||||
.form-button,
|
||||
.content {
|
||||
border: solid var(--gray) 3px;
|
||||
background: var(--black);
|
||||
border-radius: var(--border-radius);
|
||||
|
@ -124,6 +126,11 @@ body {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-top: 10px;
|
||||
width: calc(var(--elem-width) - 1rem);
|
||||
}
|
||||
|
||||
.form-button {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -134,6 +141,7 @@ body {
|
|||
}
|
||||
|
||||
.form-message {
|
||||
margin-top: 10px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
@ -221,8 +229,8 @@ video {
|
|||
padding: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
width: 180px;
|
||||
height: 200px;
|
||||
width: 135px;
|
||||
height: 140px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.video div {
|
||||
|
@ -230,8 +238,9 @@ video {
|
|||
overflow: hidden;
|
||||
}
|
||||
.video img {
|
||||
width: 180px;
|
||||
height: 130px;
|
||||
width: 135px;
|
||||
height: 90px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.video-wrapper.full {
|
||||
|
@ -275,3 +284,6 @@ video {
|
|||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
font-family: system-ui, sans-serif;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
<form class='content' enctype='multipart/form-data' method='POST' action='/api/form/comment'>
|
||||
<form enctype='multipart/form-data' method='POST' action='/api/form/comment'>
|
||||
<h1 class='content-header'>Comments</h1>
|
||||
<div class='form-message'></div>
|
||||
<input name='targetId' hidden value='<%= id %>'>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<div class='header'>
|
||||
<img class="header-img" src="/static/img/logo.svg">
|
||||
<a class="header-link" href='/'>BiglyChat</a>
|
||||
<a href='/'><img class="header-img" src="/static/img/logo.svg"></a>
|
||||
<%if (username=='!nobody' ) { %>
|
||||
<a class="header-link" href="/client/login">Login</a>
|
||||
<% } else { %>
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
<div class='banner'><img class='banner-background' src='/static/img/bg.svg'>
|
||||
<div class='banner-content'>
|
||||
<h1>BiglyChat</h1>
|
||||
<p>Join the community for broadcasting videos to your fanbase; there is no more black box
|
||||
moderation where staff aren't involved members.</p>
|
||||
<p>BiglyChat is a niche community for broadcasting videos to your fanbase, with integrated games and active developers.</p>
|
||||
<h2>Community</h2>
|
||||
<%if (username=='!nobody' ) { %>
|
||||
<a class='form-button' href="/client/register">Join the Community</a>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<%- include('header.ejs') -%>
|
||||
<form class='content' enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
|
||||
<h1>Video</h1>
|
||||
<form enctype='multipart/form-data' method='POST' action='/api/form/delete_video'>
|
||||
<div class='video-wrapper'>
|
||||
<video src='/videos/<%= videoData.id %>.webm'></video>
|
||||
<div class="progressbar">
|
||||
|
@ -11,27 +10,29 @@
|
|||
<div class='full'><img src='/static/img/full.svg' class='dark'></div>
|
||||
</div>
|
||||
</div>
|
||||
<p><b>
|
||||
|
||||
<div class='form-input'>
|
||||
<b>
|
||||
<%= videoData.title %>
|
||||
</b>
|
||||
</p>
|
||||
|
||||
<div class='avatar'>
|
||||
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
|
||||
<div>
|
||||
Created by <b><a class='link' href="/client/user?id=<%= videoData.username %>">
|
||||
@<%= videoData.username %></a></b>
|
||||
</a> on
|
||||
<b>
|
||||
<%= (new Date(videoData.date)+'').split(/(GMT|UTC)/g)[0] %>
|
||||
</b>
|
||||
<p>
|
||||
<%= (new Date(videoData.date)+'').split(/(GMT|UTC)/g)[0] %>
|
||||
</p>
|
||||
<div class='avatar'>
|
||||
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
|
||||
<div>
|
||||
<b><a class='link' href="/client/user?id=<%= videoData.username %>">
|
||||
@<%= videoData.username %></a></b>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class='form-input'><%= videoData.desc %></pre>
|
||||
<%if (username==videoData.username) { %>
|
||||
<input class='form-input' type='submit' value="Delete">
|
||||
<% } %>
|
||||
<input name='target' hidden value="<%= id %>">
|
||||
</div>
|
||||
<%- include('comments.ejs') -%>
|
||||
<%- include('footer.ejs') -%>
|
||||
</form>
|
||||
<input name='target' hidden value="<%= id %>">
|
||||
</div>
|
||||
<%- include('comments.ejs') -%>
|
||||
<%- include('footer.ejs') -%>
|
|
@ -2,7 +2,6 @@
|
|||
<form class='banner' enctype='multipart/form-data' method='POST' action='/api/form/follow'>
|
||||
<img class="banner-background" src="/pfp/<%= id %>.png">
|
||||
<div class="banner-content">
|
||||
<h1>User</h1>
|
||||
<div class='form-message'></div>
|
||||
<div class='avatar'>
|
||||
<img src='/pfp/<%= id %>.png' class='avatar-img'>
|
||||
|
@ -12,29 +11,32 @@
|
|||
</div>
|
||||
</div>
|
||||
<input name='target' hidden value="<%= id %>">
|
||||
|
||||
<pre class='form-input'><%= user[0] ? user[0].bio : 'This user has not set a bio.' %></pre>
|
||||
<details>
|
||||
<summary>
|
||||
<%= following.length %> following
|
||||
</summary>
|
||||
<% for (let user of following) { %>
|
||||
<a class='link' href='/client/user?id=<%= user.target %>'>
|
||||
<%= user.target %>
|
||||
</a>
|
||||
<%} %>
|
||||
</details>
|
||||
<details>
|
||||
<summary>
|
||||
<%= followers.length %> followers
|
||||
</summary>
|
||||
<% for (let user of followers) { %>
|
||||
<a class='link' href='/client/user?id=<%= user.username %>'>
|
||||
<%= user.username %>
|
||||
</a>
|
||||
<%} %>
|
||||
</details>
|
||||
</div>
|
||||
</form>
|
||||
<div class='content'>
|
||||
<details>
|
||||
<summary>
|
||||
<%= following.length %> following
|
||||
</summary>
|
||||
<% for (let user of following) { %>
|
||||
<a class='link' href='/client/user?id=<%= user.target %>'>
|
||||
<%= user.target %>
|
||||
</a>
|
||||
<%} %>
|
||||
</details>
|
||||
<details>
|
||||
<summary>
|
||||
<%= followers.length %> followers
|
||||
</summary>
|
||||
<% for (let user of followers) { %>
|
||||
<a class='link' href='/client/user?id=<%= user.username %>'>
|
||||
<%= user.username %>
|
||||
</a>
|
||||
<%} %>
|
||||
</details>
|
||||
</div>
|
||||
<h1 class='content-header'>Uploaded Videos</h1>
|
||||
<div class=' videos'>
|
||||
<%- include('videos.ejs') -%>
|
||||
|
|
Loading…
Reference in a new issue