Compare commits

...

2 Commits

Author SHA1 Message Date
1d1e4d863e Untracked robots.txt 2025-10-25 11:32:28 +01:00
3b47701c18 Made some divs consistent, the header was a div type with id='header'
and the footer was a footer type with no id, so now they are both both.
Also added some margins at the top and bottom of the page in CSS
2025-10-25 11:31:08 +01:00
7 changed files with 24 additions and 18 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ hitcount.txt
data data
images/* images/*
webroot/custom.css webroot/custom.css
webroot/robots.txt

View File

@@ -4,9 +4,9 @@
<%- include('../partials/head'); %> <%- include('../partials/head'); %>
</head> </head>
<body> <body>
<div id="header"> <header id="header">
<%- include("../headers/site_wide") %> <%- include("../headers/site_wide") %>
</div> </header>
<div id="comment"> <div id="comment">
<%- include("../partials/comment"); %> <%- include("../partials/comment"); %>
</div> </div>

View File

@@ -4,13 +4,13 @@
<%- include('../partials/head'); %> <%- include('../partials/head'); %>
</head> </head>
<body> <body>
<div id="header"> <header id="header">
<%- include("../headers/site_wide") %> <%- include("../headers/site_wide") %>
</div> </header>
<div id="posts"> <div id="posts">
<%- include('../posts/post'); %> <%- include('../posts/post'); %>
</div> </div>
<footer> <footer id='footer'>
<%- include('../partials/footer'); %> <%- include('../partials/footer'); %>
</footer> </footer>
</body> </body>

View File

@@ -4,10 +4,10 @@
<%- include('../partials/head'); %> <%- include('../partials/head'); %>
</head> </head>
<body> <body>
<div id="header"> <header id="header">
<%- include('../headers/site_wide'); %> <%- include('../headers/site_wide'); %>
<%- include('../headers/tag'); %> <%- include('../headers/tag'); %>
</div> </header>
<div id="posts"> <div id="posts">
<% for (let index = posts.length - 1; index >= 0; index--) { %> <% for (let index = posts.length - 1; index >= 0; index--) { %>
<% if ( posts[index].deleted != true) { %> <% if ( posts[index].deleted != true) { %>
@@ -19,7 +19,7 @@
<% } %> <% } %>
<% } %> <% } %>
</div> </div>
<footer> <footer id='footer'>
<%- include('../partials/footer'); %> <%- include('../partials/footer'); %>
</footer> </footer>
</body> </body>

View File

@@ -4,10 +4,10 @@
<%- include('../partials/head'); %> <%- include('../partials/head'); %>
</head> </head>
<body> <body>
<div id="header"> <header id="header">
<%- include("../headers/site_wide") %> <%- include("../headers/site_wide") %>
<%- include('../headers/timeline'); %> <%- include('../headers/timeline'); %>
</div> </header>
<form method="POST" action="/submit_nothing" style="display:none"> <form method="POST" action="/submit_nothing" style="display:none">
<!-- Form is used to help mitigate spam as it is the first form on the front page --> <!-- Form is used to help mitigate spam as it is the first form on the front page -->
<input type="hidden" name="post_index" value="0"> <input type="hidden" name="post_index" value="0">
@@ -29,7 +29,7 @@
<textarea placeholder="comment" name="content"></textarea><br/> <textarea placeholder="comment" name="content"></textarea><br/>
<button type="submit">Submit</button> <button type="submit">Submit</button>
</form> </form>
<footer> <footer id='footer'>
<%- include('../partials/footer'); %> <%- include('../partials/footer'); %>
</footer> </footer>
</body> </body>

View File

@@ -4,10 +4,10 @@
<%- include('../partials/head'); %> <%- include('../partials/head'); %>
</head> </head>
<body> <body>
<div id="header"> <header id="header">
<%- include("../headers/site_wide") %> <%- include("../headers/site_wide") %>
<%- include('../headers/user'); %> <%- include('../headers/user'); %>
</div> </header>
<div id="posts"> <div id="posts">
<% for (let index = posts.length - 1; index >= 0; index--) { %> <% for (let index = posts.length - 1; index >= 0; index--) { %>
<% if (posts[index].userID == userID) { %> <% if (posts[index].userID == userID) { %>
@@ -15,7 +15,7 @@
<% } %> <% } %>
<% } %> <% } %>
</div> </div>
<footer> <footer id='footer'>
<%- include('../partials/footer'); %> <%- include('../partials/footer'); %>
</footer> </footer>
</body> </body>

View File

@@ -3,14 +3,19 @@ body {
margin: auto; margin: auto;
} }
#header { #header {
margin-top: 10px;
text-align: center; text-align: center;
} }
#footer {
margin-bottom: 10px;
}
.icon { .icon {
width: 20px; width: 15px;
} }
input, textarea, button { input, textarea, button {
border: none; border: none;
border-radius: 5px; border-radius: 5px;
field-sizing: content; /* Only supported by Chromium */
} }
a { a {
text-decoration: none; text-decoration: none;