ecommerce-website/views/layouts/main.handlebars

50 lines
1.3 KiB
Handlebars
Raw Permalink Normal View History

2024-03-10 20:04:53 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{title}}</title>
<link rel="stylesheet" type="text/css" href="/css/styles.css">
</head>
<body>
{{#if loggedIn}}
<nav>
<ul>
<li>
Nat &amp; Samira's Rare Earth Metals
</li>
<li>
<a href="/">Home</a>
</li>
<li>
<a href="/listprod">Products</a>
</li>
<li>
<a href="/listorder">Orders</a>
</li>
{{#if user.isAdmin}}
<li class="nav-right">
<a href="/admin">Admin Panel</a>
</li>
{{/if}}
<li class="nav-right">
<a href="/customer">{{{user.username}}}</a>
</li>
</ul>
</nav>
{{/if}}
{{#if spacer}}
<div style="margin-top: 10vh">&nbsp;</div>
{{/if}}
<main>
{{{content}}}
</main>
</body>
</html>