aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2021-11-17 22:11:22 -0500
committerMichael McVady <femtonaut@gmail.com>2021-11-17 22:11:22 -0500
commitc9bf7dd9e8465ccb42264589b6ba906bb9805178 (patch)
treed70c4bfb903fd5b79297f101ff77ad82eb6e583b
parent162d818a7e61b71155f57247f4aebad6db472553 (diff)
Add static assets
-rw-r--r--assets/index_begin.html21
-rw-r--r--assets/index_end.html9
-rw-r--r--assets/static/css/default.css198
-rw-r--r--assets/static/favicon.icobin0 -> 894 bytes
-rw-r--r--conf/clog.conf2
5 files changed, 225 insertions, 5 deletions
diff --git a/assets/index_begin.html b/assets/index_begin.html
index 3709210..4b46ec3 100644
--- a/assets/index_begin.html
+++ b/assets/index_begin.html
@@ -1,12 +1,25 @@
-<!DOCTYPE>
-
+<!DOCTYPE html>
<html>
<head>
-<title>clog</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
+<meta name="theme-color" content="#E6E6FF"/>
+<title>bunkergate.org</title>
+<link rel="icon" type="image/vnd.microsoft.icon" href="/static/favicon.ico"/>
+<link rel="stylesheet" type="text/css" href="/static/css/default.css"/>
</head>
<body>
-<h2>clog posts</h2>
+<div id="head"><h1>bunkergate.org</h1></div>
+
+<div id="menu">
+<a href="/">www</a> |
+<a href="http://cgit.bunkergate.org">cgit</a>
+<span class="email-pipe">|</span>
+<a class="email" href="mailto:femtonaut@gmail.com">femtonaut@gmail.com</a>
+</div>
+
+<hr class="hdiv"/>
<table>
<tr><th>id</th><th>title</th><th>body</th></tr>
diff --git a/assets/index_end.html b/assets/index_end.html
index 53fb2b5..ea24b35 100644
--- a/assets/index_end.html
+++ b/assets/index_end.html
@@ -1,4 +1,11 @@
</table>
+<hr class="hdiv"/>
+
+<span id="footmenu">
+<a href="http://validator.w3.org/check/referer">HTML5</a> |
+<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS3</a>
+</span>
+
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/assets/static/css/default.css b/assets/static/css/default.css
new file mode 100644
index 0000000..3db6da0
--- /dev/null
+++ b/assets/static/css/default.css
@@ -0,0 +1,198 @@
+body {
+ font-family: sans-serif;
+ color: rgb(0,0,0);
+ background-color: rgb(230,230,255);
+ font-size: 10pt;
+ min-width: 720px;
+ width: 95%;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.post {
+ position: center;
+ color: rgb(0,0,0);
+ margin-top: 1em;
+ margin-bottom: 1em;
+ border-style: solid;
+ border-width: 1px;
+ border-color: rgb(0,0,0);
+}
+
+.post .head {
+ border-bottom-style: solid;
+ border-width: 1px;
+ padding: 1px;
+}
+
+.post .head h2 {
+ padding: 0.1em;
+}
+
+.post .title {
+ font-weight: bold;
+}
+
+.post .title a {
+ text-decoration: none;
+}
+
+.post .date {
+ font-weight: bold;
+ color: rgb(230,230,255);
+ background-color: rgb(0,0,0);
+ float: right;
+ padding-right: 0.5em;
+ padding-left: 0.5em
+}
+
+.post .tag {
+/* display: none;*/
+ text-align: right;
+ color: rgb(230,230,255);
+}
+
+.post .tag span {
+ background-color: rgb(0,0,0);
+ padding: 0.1em 0.2em;
+ font-weight: bold;
+ color: rgb(230,230,255);
+}
+
+.post .tag a {
+ color: rgb(230,230,255);
+}
+
+.post .body {
+ padding: 0.5em;
+}
+
+.post .body p {
+ margin: 1em;
+}
+
+.post .body code {
+/* background-color: rgb(115,115,127);*/
+/* color: rgb(230,230,255);*/
+}
+
+.post .body pre {
+ background-color: rgb(115,115,127);
+ color: rgb(230,230,255);
+ margin: 1em;
+ padding: 0.5em;
+ overflow-x: auto;
+}
+
+.post .body h3 {
+ margin: 1em;
+}
+
+.post .foot {
+ border-top-style: solid;
+ border-width: 1px;
+ margin: 0em;
+ padding: 0em;
+}
+
+#head {
+ font-family: serif;
+ background-color: rgb(0,0,0);
+ color: rgb(230,230,255);
+ opacity: 0.5;
+ padding: 1px;
+ font-size: 40pt;
+ height: 0.9em;
+ text-shadow: 0.0em 0.0em 0.2em rgb(230,230,255);
+}
+
+#menu {
+ font-weight: bold;
+ color: rgb(230,230,255);
+ background-color: rgb(0,0,0);
+ padding: 0.1em 0.2em;
+}
+
+#menu a {
+ color: rgb(230,230,255);
+}
+
+#menu a.email {
+ float: right;
+}
+
+#menu span.email-pipe
+{
+ visibility: hidden;
+}
+
+#footmenu {
+ font-weight: bold;
+ float: right;
+ color: rgb(230,230,255);
+ background-color: rgb(0,0,0);
+ padding: 0.1em 0.2em;
+}
+
+#footmenu a {
+ color: rgb(230,230,255);
+ text-decoration: none;
+}
+
+#paginate-nav {
+ font-weight: bold;
+ color: rgb(230,230,255);
+ background-color: rgb(0,0,0);
+ padding: 0.1em 0.2em;
+}
+
+#paginate-nav a {
+ color: rgb(230,230,255);
+ text-decoration: none;
+}
+
+h1 {
+ display: inline;
+ font-weight: normal;
+ font-size: 40pt;
+}
+
+h2 {
+ font-size: 10pt;
+ display: inline;
+}
+
+h3 {
+ margin: 0em;
+ font-size: 10pt;
+ display: inline;
+}
+
+a {
+ color: rgb(0,0,0);
+}
+
+hr {
+ display: none;
+}
+
+dl {
+/* padding: 0.5em;*/
+}
+
+dt {
+ float: left;
+/* clear: left;*/
+ width: 6em;
+ text-align: right;
+ font-weight: bold;
+}
+
+dt:after {
+ content: ":";
+}
+
+dd {
+ margin: 0 0 0 7em;
+ padding: 0 0 0.5em 0;
+}
diff --git a/assets/static/favicon.ico b/assets/static/favicon.ico
new file mode 100644
index 0000000..6d358db
--- /dev/null
+++ b/assets/static/favicon.ico
Binary files differ
diff --git a/conf/clog.conf b/conf/clog.conf
index 6171c55..b86712f 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -19,6 +19,8 @@ domain * {
certfile cert/server.pem
certkey cert/key.pem
+ filemap /static/ assets/static
+
route / page
route /posts page