43 lines
1.5 KiB
Text
43 lines
1.5 KiB
Text
{{define "layout"}}
|
|
<!doctype html>
|
|
<html lang="pl">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{{template "title" .}} — Zamówienia ciast</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,0&display=swap" rel="stylesheet">
|
|
<script src="/static/htmx2.04.js" defer></script>
|
|
<script src="/static/order.js"></script>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<aside class="sidebar">
|
|
{{template "nav" .}}
|
|
</aside>
|
|
<div class="app-body">
|
|
<header class="topnav">
|
|
<div class="topnav-left">
|
|
<h1 class="topnav-title">{{template "title" .}}</h1>
|
|
</div>
|
|
</header>
|
|
<div class="main-content">
|
|
{{template "main" .}}
|
|
</div>
|
|
</div>
|
|
<script>
|
|
(function() {
|
|
var path = window.location.pathname;
|
|
var links = document.querySelectorAll('.sidebar-link');
|
|
for (var i = 0; i < links.length; i++) {
|
|
if (links[i].getAttribute('href') === path) {
|
|
links[i].classList.add('active');
|
|
}
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|
|
{{end}}
|