first working commit; todo: fix default ui
This commit is contained in:
parent
160f473b29
commit
e9fde119d8
11 changed files with 3133 additions and 0 deletions
3
templates/footer.ejs
Normal file
3
templates/footer.ejs
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div id="footer-content">
|
||||
<a href="https://git.clatter.cc/hexlocation/disseminate">powered by Disseminate</a>
|
||||
</div>
|
35
templates/global-style.ejs
Normal file
35
templates/global-style.ejs
Normal 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
4
templates/header.ejs
Normal file
|
@ -0,0 +1,4 @@
|
|||
<div id="header-content">
|
||||
<h1>disseminate</h1>
|
||||
<hr>
|
||||
</div>
|
8
templates/index.ejs
Normal file
8
templates/index.ejs
Normal 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
6
templates/post.ejs
Normal file
|
@ -0,0 +1,6 @@
|
|||
<%- include('header') %>
|
||||
<div id="main-content">
|
||||
<%- parsedPost %>
|
||||
</div>
|
||||
<%- include('global-style') %>
|
||||
<%- include('footer') %>
|
Reference in a new issue