aboutsummaryrefslogtreecommitdiff
path: root/templates/components/header.html
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-19 14:53:53 +0000
committerJJ <nicetry@noemail.com>2025-03-19 14:53:53 +0000
commit84b036b926d90b52956350d99b3a070b3dd1d7ac (patch)
treef7e40a6ef8f0eb56136340f9638dd6a17b5366e1 /templates/components/header.html
first commit
Diffstat (limited to 'templates/components/header.html')
-rw-r--r--templates/components/header.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/components/header.html b/templates/components/header.html
new file mode 100644
index 0000000..e69cedf
--- /dev/null
+++ b/templates/components/header.html
@@ -0,0 +1,21 @@
+<header>
+ <nav>
+ <ul>
+ <li><a href="/">index.cooking</a></li>
+ <li><a href="/about">about</a></li>
+ {% if not session.username %}
+ <li><a href="/signup">sign up</a></li>
+ <li><a href="/login">login</a></li>
+ {% endif %} {% if session.username %}
+ <li><a href="/home">recipes</a></li>
+ {% endif %}
+ </ul>
+ {% if session.username %}
+ <ul>
+ <li>
+ <a href="/account">{{ session.username }} (account)</a>
+ </li>
+ </ul>
+ {% endif %}
+ </nav>
+</header>