diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-01 23:05:29 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-01-01 23:05:29 +0100 |
commit | 96c6f2154007649c32fa5c29e04bb686df00dfff (patch) | |
tree | ea0337f1f162ec17daa60579f9087faedd12e0f6 /templates | |
download | cats-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.html | 6 | ||||
-rw-r--r-- | templates/foot.html | 4 | ||||
-rw-r--r-- | templates/head.html | 40 |
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: #} |