Files
2026-08-09 14:30:42 -04:00

187 lines
7.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Beans — Roast Planner</title>
<link rel="stylesheet" href="/app.css?v=__ASSET_VERSION__" />
<link rel="icon" href="/icon.svg?v=__ASSET_VERSION__" type="image/svg+xml" />
<meta name="theme-color" content="#A8481A" />
</head>
<body>
<div class="app-shell">
<nav class="side-nav" id="side-nav" aria-label="Main navigation">
<div class="side-nav-brand">
<img class="brand-mark" src="/brand-mark.svg?v=__ASSET_VERSION__" alt="" aria-hidden="true" />
<span class="brand-name">Roast Planner</span>
</div>
<div id="nav-links"></div>
<div class="nav-spacer"></div>
<button
class="icon-btn nav-collapse-toggle"
type="button"
id="nav-collapse"
aria-label="Collapse navigation"
title="Collapse navigation"
>
«
</button>
<div class="nav-user">
<div class="nav-user-avatar" id="nav-user-avatar" aria-hidden="true"></div>
<div class="nav-user-detail">
<span class="nav-user-email" id="account-email"></span>
<button class="nav-user-logout" type="button" id="btn-logout">
Log out
</button>
</div>
</div>
</nav>
<div class="app-workspace" id="app-workspace">
<header class="app-header">
<div class="header-row-top">
<button
class="icon-btn nav-hamburger"
type="button"
id="nav-hamburger"
aria-label="Open navigation"
aria-expanded="false"
>
</button>
<div class="brand">
<div class="brand-text">
<h1>Beans</h1>
<p class="brand-sub">Roasted or purchased coffee ready to brew</p>
</div>
</div>
</div>
</header>
<div class="drawer-overlay hidden" id="drawer-overlay"></div>
<main class="page-content">
<section class="panel-card" id="beans">
<div class="panel-head">
<h2>Your beans</h2>
<label
style="display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink-2)"
><span class="switch"
><input type="checkbox" id="show-archived" /><span
class="switch-track"
></span></span
>Show archived</label
>
</div>
<div class="panel-body">
<div class="table-wrap">
<table class="data-table" id="beans-table">
<thead>
<tr>
<th>Bean</th>
<th>Origin / process</th>
<th>Roasted</th>
<th>Remaining</th>
<th class="num">Brews</th>
<th></th>
</tr>
</thead>
<tbody id="beans-body"></tbody>
</table>
</div>
</div>
</section>
<section class="panel-card" id="bean-form-card">
<div class="panel-head"><h2 id="bean-form-title">Add a bean</h2></div>
<div class="panel-body">
<div
style="display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px"
>
<input
class="text-input"
id="bean-prefill-url"
type="url"
placeholder="Paste the roaster's product URL to prefill…"
style="flex:1;min-width:220px"
/>
<button class="ghost-btn" type="button" id="bean-prefill-btn">
Prefill from URL
</button>
</div>
<p class="field-note hidden" id="bean-prefill-note"></p>
<form id="bean-form">
<div class="field-grid">
<label class="field"
><span class="field-label">Name *</span
><input
class="field-input"
name="name"
required
placeholder="e.g. Kiamabara AB"
/></label>
<label class="field"
><span class="field-label">Roaster</span
><input class="field-input" name="roaster" placeholder="or “home roast”"
/></label>
<label class="field"
><span class="field-label">Origin</span
><input class="field-input" name="origin"
/></label>
<label class="field"
><span class="field-label">Process</span
><input class="field-input" name="process"
/></label>
<label class="field"
><span class="field-label">Variety</span
><input class="field-input" name="variety"
/></label>
<label class="field"
><span class="field-label">Roast level</span
><input class="field-input" name="roastLevel" placeholder="light / medium / dark"
/></label>
<label class="field"
><span class="field-label">Roast date</span
><input class="field-input" type="date" name="roastDate"
/></label>
<label class="field"
><span class="field-label">Bag weight</span>
<div class="unit-input">
<input
class="field-input"
type="number"
name="initialWeightG"
inputmode="decimal"
min="0"
step="any"
/><span class="unit">g</span>
</div></label
>
</div>
<label class="field"
><span class="field-label">Roaster's tasting notes</span
><input class="field-input" name="tastingNotes" placeholder="e.g. blackcurrant, cocoa"
/></label>
<label class="field"
><span class="field-label">Product URL</span
><input class="field-input" name="url" type="url"
/></label>
<label class="field"
><span class="field-label">Notes</span
><input class="field-input" name="notes"
/></label>
<button class="primary-btn" type="submit" id="bean-form-submit">
Add bean
</button>
<button class="ghost-btn hidden" type="button" id="bean-form-cancel">
Cancel edit
</button>
</form>
</div>
</section>
</main>
</div>
</div>
<script type="module" src="/js/beans.js?v=__ASSET_VERSION__"></script>
</body>
</html>