Skip to content

Commit

Permalink
Finish adding the Dev Notes blog page
Browse files Browse the repository at this point in the history
  • Loading branch information
EmpressAutumn committed Apr 22, 2024
1 parent bf4be5e commit b936423
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
9 changes: 9 additions & 0 deletions devnotes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@
<meta charset="UTF-8">
<title>Dev Notes | Atom596.com</title>
<script type="text/javascript" src="/script/topbar.js"></script>
<script type="module" src="https://md-block.verou.me/md-block.js"></script>
<script>
latest = "latest"
window.addEventListener("load", function() {
document.getElementById("article").src = latest + ".md"
})
</script>
<link rel="stylesheet" href="/style/main.css">
<link rel="stylesheet" href="/style/devnotes.css">
</head>
<body>
<h1>Dev Notes</h1>
<div id="topbar"></div>
<div class="article"><md-block id="article"></md-block></div>
</body>
</html>
4 changes: 2 additions & 2 deletions script/topbar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
window.onload = function() {
window.addEventListener('load', function() {
fetch("/topbar.html")
.then(response => response.text())
.then((data) => {
document.getElementById("topbar").innerHTML = data
})
}
})
8 changes: 8 additions & 0 deletions style/devnotes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.article {
text-align: left;
margin: 12px auto 0;
width: 70%;
padding-inline: 10px;
border: 4px solid darkred;
background-color: palevioletred;
}
3 changes: 1 addition & 2 deletions style/home.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.plans {
padding: 10px;
margin: 12px auto 0;
width: 70%;
margin: 0 auto;
}

.subtitle {
Expand Down

0 comments on commit b936423

Please sign in to comment.