Initial commit

This commit is contained in:
jultty 2024-02-23 20:00:34 -03:00
commit 93330ddc28
9 changed files with 145 additions and 0 deletions

Binary file not shown.

11
assets/js/data.js Normal file
View file

@ -0,0 +1,11 @@
function get_data() {
return {
posts: [
{
title: "Scripts em OCaml",
slug: "scripts-em-ocaml",
},
]
}
}

13
assets/js/main.js Normal file
View file

@ -0,0 +1,13 @@
const data = get_data()
const post_list = document.getElementById("posts")
document.addEventListener("DOMContentLoaded", function() {
data.posts.forEach(post => {
const item = document.createElement("li")
const anchor = document.createElement("a")
anchor.innerText = post.title
anchor.href = 'posts/html/' + post.slug + '.md.html'
item.appendChild(anchor)
post_list.appendChild(item)
})
})

57
assets/style.css Normal file
View file

@ -0,0 +1,57 @@
* {
margin: 0px;
}
@font-face {
font-family: 'ShareTech';
src: url('Share Tech Mono 400.ttf'), format('truetype');
}
body {
background-color: #222222;
font-family: 'ShareTech', monospace;
}
p {
color: #F1E9E5;
margin: 30px;
}
a {
text-decoration: underline dotted #888;
color: #AEDBCE;
}
a:hover {
color: #39AEA9;
text-decoration: underline dotted #fff;
transition: 1500ms;
}
h1 {
font-size: 25px;
font-weight: bold;
color: #ccc;
font-size: 25px;
margin: 20px 0px 10px 20px;
}
h2 {
font-size: 25px;
font-weight: bold;
color: #ccc;
font-size: 25px;
margin: 20px 0px 10px 20px;
}
ul {
margin-top: 10px;
color: #F1E9E5;
}
li {
margin-bottom: 10px;
}
.sourceCode { color: #ccc; }
.sourceCode span { margin-left: 20px; }