summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-18 17:36:23 +0500
committerilotterytea <iltsu@alright.party>2024-05-18 17:36:23 +0500
commit372e7704a59f51877c132cfaf3d47c98f8516c56 (patch)
tree6689a5cc8ed47a9c413660d8a0873bc8fef7dd05
parent85b02485556142a04d902195f895420f306f9781 (diff)
feat: navbar
-rw-r--r--static/img/logo.pngbin0 -> 14534 bytes
-rw-r--r--templates/header.html8
-rw-r--r--templates/index.html7
3 files changed, 14 insertions, 1 deletions
diff --git a/static/img/logo.png b/static/img/logo.png
new file mode 100644
index 0000000..6215477
--- /dev/null
+++ b/static/img/logo.png
Binary files differ
diff --git a/templates/header.html b/templates/header.html
new file mode 100644
index 0000000..6e439da
--- /dev/null
+++ b/templates/header.html
@@ -0,0 +1,8 @@
+<div class="w-full py-2 space-x-4 flex flex-row items-center">
+ <a href="/">
+ <img src="static/img/logo.png" alt="BOT" width="64">
+ </a>
+
+ <a href="/">home</a>
+ <a href="/wiki">wiki</a>
+</div>
diff --git a/templates/index.html b/templates/index.html
index 8fb123f..78683ef 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,6 +4,11 @@
<link rel="stylesheet" type="text/css" href="/static/style.css">
</head>
<body>
- <h1>hi</h1>
+ <div class="min-h-screen w-full flex justify-center">
+ <div class="w-1/2 flex items-center flex-col">
+ {{> header.html }}
+ <p>lol</p>
+ </div>
+ </div>
</body>
</html>