summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-09-08 16:17:11 +0300
committertzlil <tzlils@protonmail.com>2023-09-08 16:17:11 +0300
commit38cbd10ba1f7c7c0a94444c05e1cc12bab3177ab (patch)
treecd48971bedd6a5a93605325411d9eb15d5a0db02 /templates
initial commit
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html16
-rw-r--r--templates/topic.html30
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..7f7c2cf
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,16 @@
+<html lang="en">
+<title>arXiv randomizer</title>
+<style>
+@media (prefers-color-scheme: dark) {
+    body { background-color: #121212; color: #d4d4d4; }
+    a { color: #7878ff; }
+    a:visited { color: #6464fa; }
+}
+</style>
+<pre>
+all possible categories <a href="https://arxiv.org/category_taxonomy">here</a>
+examples:
+{% for i in taxonomy %}
+  <a href='/{{ i }}'>{{ i }}</a>
+{% endfor %}
+</html>
diff --git a/templates/topic.html b/templates/topic.html
new file mode 100644
index 0000000..b8c9d2c
--- /dev/null
+++ b/templates/topic.html
@@ -0,0 +1,30 @@
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width">
+<title>arXiv randomizer</title>
+<style>
+@media (prefers-color-scheme: dark) {
+    body { background-color: #121212; color: #d4d4d4; }
+    a { color: #7878ff; }
+    a:visited { color: #6464fa; }
+}
+</style>
+<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+<script>
+MathJax = {
+  tex: {
+    inlineMath: [['$', '$'], ['\\(', '\\)']]
+  }
+};
+</script>
+<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
+</head>
+
+<body>
+	<h1>{{title}}</h1>
+	<h2>{{description}}</h2>
+	<a href="{{link}}">{{link}}</a>
+</body>
+</html>
+