about summary refs log tree commit diff homepage
path: root/templates
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-01 02:09:01 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-01 02:09:01 +0900
commitf23c6ed4f84055551b459d235c4a675faf017cea (patch)
treeb8acbb342591aa959948a7888c15b282c201db02 /templates
parentc2cb66ad1830d1394c5d6c1dfa2e75ef7e23072b (diff)
downloadphylactery-f23c6ed4f84055551b459d235c4a675faf017cea.tar.gz
Draft basic CBZ rendering
Diffstat (limited to 'templates')
-rw-r--r--templates/archive.html19
-rw-r--r--templates/index.html1
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/archive.html b/templates/archive.html
new file mode 100644
index 0000000..d3d8e0b
--- /dev/null
+++ b/templates/archive.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang=en>
+<meta charset=utf-8>
+<link rel=stylesheet href=/static/archive.css>
+<link rel=icon href=/static/favicon.svg>
+<title>{{.Title}}</title>
+<style>
+body { margin: 0 }
+img {
+    display: block;
+    margin: auto;
+    max-width: 100%;
+}
+</style>
+
+<body>{{range .Entries}}
+<img src="?entry={{.Index}}" alt="{{.Name}}">{{end}}
+</body>
+</html>
diff --git a/templates/index.html b/templates/index.html
index 39785aa..67f96fb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,6 +3,7 @@
 <meta charset=utf-8>
 <meta name=viewport content='width=device-width, initial-scale=1'>
 <link rel=stylesheet href=/static/style.css>
+<link rel=icon href=/static/favicon.svg>
 <title>{{.}}</title>
 <body>
 </body>