first working commit; todo: fix default ui

This commit is contained in:
hexlocation's laptop (asiago) 2024-03-28 14:33:58 -04:00
parent 160f473b29
commit e9fde119d8
11 changed files with 3133 additions and 0 deletions

3
templates/footer.ejs Normal file
View file

@ -0,0 +1,3 @@
<div id="footer-content">
<a href="https://git.clatter.cc/hexlocation/disseminate">powered by Disseminate</a>
</div>

View file

@ -0,0 +1,35 @@
<style>
@import url(https://fonts.bunny.net/css?family=alef:400);
#main-content, #header-content {
margin-top: 50px;
margin: auto;
width: 50%;
}
#main-content {
text-align: left;
}
#header-content {
text-align: center;
}
* {
color:white;
font-family: 'Arial', sans-serif;
}
#main-content a {
font-size: 20px;
}
a {
text-decoration: none;
decoration: none;
color: orange;
}
#footer-content {
position: fixed;
bottom: 5;
text-align: center;
}
body {
background-color: #171717;
}
</style>

4
templates/header.ejs Normal file
View file

@ -0,0 +1,4 @@
<div id="header-content">
<h1>disseminate</h1>
<hr>
</div>

8
templates/index.ejs Normal file
View file

@ -0,0 +1,8 @@
<%- include('header') %>
<div id="main-content">
<% for(const post of posts) { %>
<a class="post" href="/post/<%= post.file %>"><%= post.title %></a><br>
<% } %>
</div>
<%- include('global-style'); %>
<%- include('footer') %>

6
templates/post.ejs Normal file
View file

@ -0,0 +1,6 @@
<%- include('header') %>
<div id="main-content">
<%- parsedPost %>
</div>
<%- include('global-style') %>
<%- include('footer') %>