updated nav

This commit is contained in:
2025-12-30 11:37:29 -07:00
parent 76fade5cdc
commit 493d15eae8
10 changed files with 108 additions and 19 deletions
+89 -3
View File
@@ -16,8 +16,94 @@
{{- block "head" . }}{{ end }}
</head>
<body>
{{/* This is where the page_body template will be inserted into the page */}}
{{- block "body" . }}{{ end }}
<body style="margin: 0; padding: 0;">
<header style="margin: 0; padding: 0;">
<nav
style="
margin: 0;
padding: 1em;
background-color: #bdf;
font-size: 1.25em;
display: flex;
flex-direction: column;
align-items: center;
"
>
<ul>
<li>
<a href="/">
Home
</a>
</li>
{{- if .UserID }}
<li>
<a href="/accounts/{{.Account.ID}}">
Account
</a>
</li>
<li>
<a href="/accounts/{{.Account.ID}}/reports">
Reports
</a>
</li>
<li>
<a href="/accounts/{{.Account.ID}}/inventory">
Inventory
</a>
</li>
<li>
<a href="/logout">
Log Out
</a>
</li>
{{- else }}
<li>
<a href="/login">
Log In / Sign Up
</a>
</li>
{{- end }}
</ul>
</nav>
</header>
<main style="margin: 0; padding: 1em;">
{{/* This is where the page_body template will be inserted into the page */}}
{{- block "body" . }}{{ end }}
</main>
<footer
style="
margin: 0;
padding: 2em;
background-color: #bdf;
display: flex;
flex-direction: column;
align-items: center;
"
>
<address
style="
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5em;
"
>
<a href="mailto:contact-us@inventory-plus-plus.com">Contact Us</a>
<a href="mailto:support@inventory-plus-plus.com">Support</a>
</address>
</footer>
</body>
</html>