aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-01 23:05:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-01 23:05:29 +0100
commit96c6f2154007649c32fa5c29e04bb686df00dfff (patch)
treeea0337f1f162ec17daa60579f9087faedd12e0f6 /templates
downloadcats-radio-node-96c6f2154007649c32fa5c29e04bb686df00dfff.tar.gz
cats-radio-node-96c6f2154007649c32fa5c29e04bb686df00dfff.tar.bz2
cats-radio-node-96c6f2154007649c32fa5c29e04bb686df00dfff.zip
Create scaffolding
Diffstat (limited to 'templates')
-rw-r--r--templates/dashboard.html6
-rw-r--r--templates/foot.html4
-rw-r--r--templates/head.html40
3 files changed, 50 insertions, 0 deletions
diff --git a/templates/dashboard.html b/templates/dashboard.html
new file mode 100644
index 0000000..b2cc5f4
--- /dev/null
+++ b/templates/dashboard.html
@@ -0,0 +1,6 @@
+{% include "head.html" %}
+<div class="">
+ Dashboard!
+</div>
+{% include "foot.html" %}
+{# vi:set et sw=2 ts=2: #}
diff --git a/templates/foot.html b/templates/foot.html
new file mode 100644
index 0000000..c3aa9b4
--- /dev/null
+++ b/templates/foot.html
@@ -0,0 +1,4 @@
+ </main>
+ </body>
+</html>
+{# vi:set et sw=2 ts=2: #}
diff --git a/templates/head.html b/templates/head.html
new file mode 100644
index 0000000..49beebd
--- /dev/null
+++ b/templates/head.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CATS Radio Node - {{ title }}</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/static/style.css" type="text/css">
+ <link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
+ <!-- <script src="/static/index.js" defer></script> -->
+ </head>
+ <body>
+ <nav>
+ <div class="h-full p-3 space-y-2 w-60 bg-white text-gray-800">
+ <div class="h-full p-3 space-y-2 bg-white text-gray-800">
+ <p class="text-lg font-semibold">CATS Radio Node {{ callsign }}</p>
+ </div>
+
+ <div class="divide-y divide-gray-300">
+ <ul class="pt-2 pb-4 space-y-1 text-sm">
+ <li class="{% if page == ActivePage::Dashboard %} bg-gray-100 text-gray-900 {% endif %}">
+ <a href="/" class="flex items-center p-2 space-x-3 rounded-md">
+ <i class="fa fa-home" aria-hidden="true"></i><span>Dashboard</span>
+ </a>
+ </li>
+ <li class="{% if page == ActivePage::Incoming %} bg-gray-100 text-gray-900 {% endif %}">
+ <a href="/incoming" class="flex items-center p-2 space-x-3 rounded-md">
+ <i class="fa fa-inbox" aria-hidden="true"></i><span>Incoming</span>
+ </a>
+ </li>
+ <li class="{% if page == ActivePage::Send %} bg-gray-100 text-gray-900 {% endif %}">
+ <a href="/send" class="flex items-center p-2 space-x-3 rounded-md">
+ <i class="fa fa-paper-plane-o" aria-hidden="true"></i><span>Send</span>
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </nav>
+ <main>
+{# vi:set et sw=2 ts=2: #}