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
@@ -1,3 +1,5 @@
{{/* TODO: delete, once not needed */}}
{{/* "dot" . */}}
<nav>
+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>
@@ -1,7 +1,5 @@
{{- define "title" }} Inventory++ Create an Account {{ end }}
{{- componentBody "nav_bar" "dot" . }}
{{/* TODO: will need to verify the email address */}}
<section style="margin-top: 2em;">
@@ -1,8 +1,5 @@
{{- define "title" }} Inventory++ Account {{ end }}
{{- componentBody "nav_bar" "dot" . }}
<h1>Account: {{ .Account.Email }}</h1>
{{- $etsyUser := .Etsy.GetUserPointerByAccountID .Account.ID }}
@@ -1,6 +1,3 @@
{{- define "title" }} Inventory++ {{ end }}
{{ componentBody "nav_bar" "dot" . }}
<h1>Inventory management page: WIP</h1>
@@ -1,7 +1,5 @@
{{- define "title" }} Inventory++ Reports {{ end }}
{{ componentBody "nav_bar" "dot" . }}
{{ $storeID := .Request.URL.Query.Get "store-id" }}
<h1>Reports</h1>
@@ -1,5 +1,3 @@
{{ componentBody "nav_bar" "dot" . }}
<h1>Home</h1>
{{- if and .UserID (not .Account.ID) }}
@@ -1,7 +1,5 @@
{{/* TODO: delete this page, when certain it's not wanted anymore */}}
{{ componentBody "nav_bar" "dot" . }}
<h1>Log In</h1>
<form action="login" method="post">
@@ -1,7 +1,5 @@
{{/* TODO: not used - read for deletion */}}
{{ componentBody "nav_bar" "dot" . }}
<h1>Sign Up</h1>
<form action="accounts" method="post">