mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-22 23:59:08 +03:00
classes fixed
This commit is contained in:
parent
c5ecfb42c2
commit
faeb832fdd
13 changed files with 21 additions and 20 deletions
|
@ -15,6 +15,7 @@ Run `node util/reset` to **reset the database**, and run `node util/admin` for g
|
|||
Akf-forum has got an API for other clients etc. You can test api with python files in `test` folder.
|
||||
|
||||
Python is only for testing 😭
|
||||
|
||||
And, you can learn about API in `util/APIDOCS.md`.
|
||||
|
||||
## Credits
|
||||
|
|
|
@ -110,7 +110,7 @@ button, input {
|
|||
|
||||
}
|
||||
|
||||
button.buyuk {
|
||||
button.big {
|
||||
width: 150px;
|
||||
height: 50px;
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ button:hover {
|
|||
IMAGES
|
||||
*****************************
|
||||
*/
|
||||
img.yuvarlak {
|
||||
img.circle {
|
||||
border-radius: 50%;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
|
|
|
@ -44,7 +44,7 @@ document.getElementById("send").addEventListener("submit", async e => {
|
|||
<h3 style="float:right;">${new Date(message.time).toLocaleString()}</h3>
|
||||
|
||||
<h2>
|
||||
<img class="yuvarlak" src=${message.author.avatar} alt=${message.author.name}>
|
||||
<img class="circle" src=${message.author.avatar} alt=${message.author.name}>
|
||||
<a href="/users/${message.author.id}"> ${message.author.name}</a>:
|
||||
</h2>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<h2>Write an ID to give someone admin permissions:</h2>
|
||||
<input name="userid"></input>
|
||||
<hr>
|
||||
<button class="buyuk" type="submit">Give admin permissions!</button>
|
||||
<button class="big" type="submit">Give admin permissions!</button>
|
||||
</form>
|
||||
|
||||
<script type="module">
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<textarea rows="4" cols="50" name="content"></textarea>
|
||||
|
||||
<hr>
|
||||
<button class="buyuk" type="submit">Create Thread!</button>
|
||||
<button class="big" type="submit">Create Thread!</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
<!-- Navbar: -->
|
||||
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a><br>
|
||||
<button class="buyuk"
|
||||
onclick="window.location.href = '/'">MAIN PAGE</button>
|
||||
|
||||
|
||||
<a href="/"> <button class="big">MAIN PAGE</button> </a>
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- Navbar end -->
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<div style="float: right;" class="user" id="user">
|
||||
<a href=<%=user.getLink() %>>
|
||||
<h1>
|
||||
<%= user.name %><img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
<%= user.name %><img class="circle" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -8,17 +8,17 @@
|
|||
|
||||
<% if (user) { %>
|
||||
<h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a>
|
||||
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
<img class="circle" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
<br>
|
||||
You can log out of the site here:
|
||||
<button onclick="window.location.href = '/login/'">LOGOUT</button>
|
||||
|
||||
<a href="/login/"><button>LOGOUT</button> </a>
|
||||
</h1>
|
||||
|
||||
<br>
|
||||
<% } else { %>
|
||||
<h1>Welcome, Guest!<br>You can press the button to register:
|
||||
<button class="buyuk" onclick= "window.location.href = '/register'">REGISTER</button>
|
||||
<a href="/register/"> <button class="big">REGISTER</button> </a>
|
||||
|
||||
</h1>
|
||||
<% } %>
|
||||
<h1>Statistics:</h1>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<!-- Navbar: -->
|
||||
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
||||
<br>
|
||||
<button class="buyuk" onclick="window.location.href = '/register'">REGISTER SECTION</button>
|
||||
<a href="/register/"> <button class="big">REGISTER</button> </a>
|
||||
<hr>
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
|
||||
<br>
|
||||
|
||||
<button class="buyuk" onclick="window.location.href = '/login'">LOGIN PAGE</button>
|
||||
<a href="/login/"> <button class="big">LOGIN</button> </a>
|
||||
|
||||
<hr>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</h1>
|
||||
|
||||
<h2 style="display:inline;">By <a href=<%="/users/" + thread.author.id %>> <%= thread.author.name %></a>
|
||||
<img class="yuvarlak" src=<%= thread.author.avatar %> alt=<%= thread.author.name %>>
|
||||
<img class="circle" src=<%= thread.author.avatar %> alt=<%= thread.author.name %>>
|
||||
</h2>
|
||||
|
||||
<% if (user && !thread.deleted){ %>
|
||||
|
@ -36,7 +36,7 @@
|
|||
</h3>
|
||||
|
||||
<h2>
|
||||
<img class="yuvarlak" src=<%=message.author.avatar %> alt=<%= message.author.name %>>
|
||||
<img class="circle" src=<%=message.author.avatar %> alt=<%= message.author.name %>>
|
||||
<a href=<%="/users/" + message.author.id %>> <%= message.author.name %></a>:
|
||||
</h2>
|
||||
|
||||
|
|
|
@ -42,11 +42,11 @@
|
|||
|
||||
<% if (user?.admin && !member.deleted) {%>
|
||||
<form id="admin">
|
||||
<button class="buyuk" type="submit">Give admin permissions!</button>
|
||||
<button class="big" type="submit">Give admin permissions!</button>
|
||||
</form>
|
||||
|
||||
<form id="delete">
|
||||
<button class="buyuk" type="submit">Delete user!</button>
|
||||
<button class="big" type="submit">Delete user!</button>
|
||||
</form>
|
||||
|
||||
<script type="module">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<% users.forEach(user=>{ %>
|
||||
<li>
|
||||
<h1><a href=<%= user.getLink() %> > <%= user.name %> <%= user.deleted ? "(DELETED)" :"" %></a>
|
||||
<img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
<img class="circle" src=<%=user.avatar %> alt=<%= user.name %>>
|
||||
</h1>
|
||||
</li>
|
||||
<% }); %>
|
||||
|
|
Loading…
Reference in a new issue