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