classes fixed

This commit is contained in:
Akif9748 2022-08-11 15:36:28 +03:00
parent c5ecfb42c2
commit faeb832fdd
13 changed files with 21 additions and 20 deletions

View File

@ -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. 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 😭 Python is only for testing 😭
And, you can learn about API in `util/APIDOCS.md`. And, you can learn about API in `util/APIDOCS.md`.
## Credits ## Credits

View File

@ -110,7 +110,7 @@ button, input {
} }
button.buyuk { button.big {
width: 150px; width: 150px;
height: 50px; height: 50px;
} }
@ -198,7 +198,7 @@ button:hover {
IMAGES IMAGES
***************************** *****************************
*/ */
img.yuvarlak { img.circle {
border-radius: 50%; border-radius: 50%;
height: 30px; height: 30px;
width: 30px; width: 30px;

View File

@ -44,7 +44,7 @@ document.getElementById("send").addEventListener("submit", async e => {
<h3 style="float:right;">${new Date(message.time).toLocaleString()}</h3> <h3 style="float:right;">${new Date(message.time).toLocaleString()}</h3>
<h2> <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>: <a href="/users/${message.author.id}"> ${message.author.name}</a>:
</h2> </h2>

View File

@ -13,7 +13,7 @@
<h2>Write an ID to give someone admin permissions:</h2> <h2>Write an ID to give someone admin permissions:</h2>
<input name="userid"></input> <input name="userid"></input>
<hr> <hr>
<button class="buyuk" type="submit">Give admin permissions!</button> <button class="big" type="submit">Give admin permissions!</button>
</form> </form>
<script type="module"> <script type="module">

View File

@ -18,7 +18,7 @@
<textarea rows="4" cols="50" name="content"></textarea> <textarea rows="4" cols="50" name="content"></textarea>
<hr> <hr>
<button class="buyuk" type="submit">Create Thread!</button> <button class="big" type="submit">Create Thread!</button>
</form> </form>

View File

@ -17,9 +17,9 @@
<!-- Navbar: --> <!-- Navbar: -->
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a><br> <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> <hr>
<!-- Navbar end --> <!-- Navbar end -->

View File

@ -22,7 +22,7 @@
<div style="float: right;" class="user" id="user"> <div style="float: right;" class="user" id="user">
<a href=<%=user.getLink() %>> <a href=<%=user.getLink() %>>
<h1> <h1>
<%= user.name %><img class="yuvarlak" src=<%=user.avatar %> alt=<%= user.name %>> <%= user.name %><img class="circle" src=<%=user.avatar %> alt=<%= user.name %>>
</h1> </h1>
</a> </a>
</div> </div>

View File

@ -8,17 +8,17 @@
<% if (user) { %> <% if (user) { %>
<h1>Welcome, <a href=<%=user.getLink() %>> <%= user.name %></a> <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> <br>
You can log out of the site here: You can log out of the site here:
<button onclick="window.location.href = '/login/'">LOGOUT</button> <a href="/login/"><button>LOGOUT</button> </a>
</h1> </h1>
<br> <br>
<% } else { %> <% } else { %>
<h1>Welcome, Guest!<br>You can press the button to register: <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>
<% } %> <% } %>
<h1>Statistics:</h1> <h1>Statistics:</h1>

View File

@ -7,7 +7,7 @@
<!-- Navbar: --> <!-- Navbar: -->
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a> <a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
<br> <br>
<button class="buyuk" onclick="window.location.href = '/register'">REGISTER SECTION</button> <a href="/register/"> <button class="big">REGISTER</button> </a>
<hr> <hr>

View File

@ -10,7 +10,7 @@
<a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a> <a href="/"><img class="logo" src="/images/logo.jpg" alt="AKF-FORUM"></a>
<br> <br>
<button class="buyuk" onclick="window.location.href = '/login'">LOGIN PAGE</button> <a href="/login/"> <button class="big">LOGIN</button> </a>
<hr> <hr>

View File

@ -13,7 +13,7 @@
</h1> </h1>
<h2 style="display:inline;">By <a href=<%="/users/" + thread.author.id %>> <%= thread.author.name %></a> <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> </h2>
<% if (user && !thread.deleted){ %> <% if (user && !thread.deleted){ %>
@ -36,7 +36,7 @@
</h3> </h3>
<h2> <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>: <a href=<%="/users/" + message.author.id %>> <%= message.author.name %></a>:
</h2> </h2>

View File

@ -42,11 +42,11 @@
<% if (user?.admin && !member.deleted) {%> <% if (user?.admin && !member.deleted) {%>
<form id="admin"> <form id="admin">
<button class="buyuk" type="submit">Give admin permissions!</button> <button class="big" type="submit">Give admin permissions!</button>
</form> </form>
<form id="delete"> <form id="delete">
<button class="buyuk" type="submit">Delete user!</button> <button class="big" type="submit">Delete user!</button>
</form> </form>
<script type="module"> <script type="module">

View File

@ -13,7 +13,7 @@
<% users.forEach(user=>{ %> <% users.forEach(user=>{ %>
<li> <li>
<h1><a href=<%= user.getLink() %> > <%= user.name %> <%= user.deleted ? "(DELETED)" :"" %></a> <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> </h1>
</li> </li>
<% }); %> <% }); %>