Files
eng-pad-server/web/templates/layout.html
Kyle Isom 651eabe995 Add notebook delete, fix button styling, rename Share button
- Add delete notebook handler with ownership check and CASCADE delete
- Rename "Create Share Link" to "Share"
- Fix action button heights: use inline-flex + align-items for
  consistent sizing across <a> and <button> elements

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 09:43:57 -07:00

40 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{block "title" .}}Engineering Pad{{end}}</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, sans-serif; background: #fff; color: #111; }
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
nav { background: #111; color: #fff; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; }
nav a { color: #fff; text-decoration: none; }
nav a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.card { border: 1px solid #ccc; border-radius: 4px; padding: 1rem; margin-bottom: 0.5rem; }
.card:hover { background: #f5f5f5; }
a.card-link { text-decoration: none; color: inherit; display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.page-thumb { border: 1px solid #ccc; background: #fff; aspect-ratio: 0.773; display: flex; align-items: center; justify-content: center; }
.page-thumb img { width: 100%; height: 100%; object-fit: contain; }
.btn { display: inline-flex; align-items: center; padding: 0.5rem 1rem; border: 1px solid #111; border-radius: 4px; text-decoration: none; color: #111; background: #fff; cursor: pointer; font: inherit; font-size: 1rem; line-height: 1.5; box-sizing: border-box; }
.btn:hover { background: #f0f0f0; }
.actions { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
input[type="text"], input[type="password"] { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; width: 100%; max-width: 300px; }
label { display: block; margin-bottom: 0.25rem; font-weight: bold; }
.form-group { margin-bottom: 1rem; }
</style>
<script src="/static/htmx.min.js" defer></script>
</head>
<body>
<nav>
<a href="/notebooks">Engineering Pad</a>
{{block "nav-right" .}}{{end}}
</nav>
<div class="container">
{{block "content" .}}{{end}}
</div>
</body>
</html>