summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2022-06-08 00:03:08 -0400
committerOwen Jacobson <owen@grimoire.ca>2022-06-08 00:43:44 -0400
commit63ff3d96d329db74f1703a6dc775cefcaa617823 (patch)
tree1218878195a8cd0977612b4c69480e4e0a5f2264 /templates/index.html
parent9fa89e735859d008673663b740c217d0731e71e1 (diff)
Move to Askama templates.
The author of maud seems to be slow on updating to newer actix releases, and the syntax, while clever, is ultimately less tool-friendly than "HTML with some weird characters" is. I do still like the idea, but I also want to use Actix 4.
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..b439116
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <title>{{ thing.markdown }}</title>
+ <style>
+ body {
+ background: #dddde7;
+ font-family: Helvetica, sans-serif;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ height: 100vh;
+ margin: 0;
+ }
+
+ section {
+ width: 600px;
+ margin: auto;
+ }
+
+ p {
+ font-size: 24px;
+ }
+
+ a {
+ text-decoration: none;
+ }
+ </style>
+ <meta property="og:type" content="website">
+ <meta property="og:title" content="Troubleshooting suggestion">
+ <meta property="og:description" content="{{ thing.markdown }}">
+</head>
+
+<body>
+ <section>
+ {{ thing.html|safe }}
+ <p><a href="{{ req.new_suggestion()? }}">That wasn't it, suggest something else.</a></p>
+ <p><a href="{{ req.suggestion(index)? }}">Share this troubleshooting suggestion.</a></p>
+ </section>
+ <a href=" https://github.com/ojacobson/things-to-check"><img
+ style="position: absolute; top: 0; right: 0; border: 0;"
+ src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
+ alt="Fork me on GitHub"
+ data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
+</body>
+
+</html> \ No newline at end of file