Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
256 lines (240 loc) · 9.86 KB
/
Copy pathindex.html
File metadata and controls
256 lines (240 loc) · 9.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TableSet | Recipe Importer & Weekly Planner</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div class="page-shell">
<div id="user-bar" class="user-bar hidden">
<span id="user-email"></span>
<button id="logout-button" class="ghost-button" type="button">Log out</button>
</div>
<section id="auth-panel" class="panel auth-panel hidden">
<div class="panel-heading">
<div>
<p class="kicker">Account</p>
<h2 id="auth-heading">Sign in to your meal board</h2>
</div>
<button id="auth-toggle-mode" class="ghost-button" type="button">Need an account? Register</button>
</div>
<form id="auth-form" class="import-form">
<label class="field">
<span>Email</span>
<input id="auth-email" name="email" type="email" required autocomplete="username" />
</label>
<label class="field">
<span>Password</span>
<input
id="auth-password"
name="password"
type="password"
required
minlength="8"
autocomplete="current-password"
/>
</label>
<div class="import-actions">
<button id="auth-submit" class="primary-button" type="submit">Sign in</button>
<p id="auth-status" class="status-text" aria-live="polite"></p>
</div>
</form>
</section>
<div id="app-shell">
<nav class="app-nav" aria-label="Jump to section">
<a href="#import-panel">Import</a>
<a href="#planner-panel">Plan the week</a>
<a href="#library-panel">Recipe library</a>
<a href="#shopping-panel">Shopping list</a>
<a href="#details-panel">Recipe details</a>
</nav>
<header class="hero">
<div class="hero-copy">
<div class="hero-badge-row">
<p class="eyebrow">Recipe library + weekly meal planning</p>
<span class="season-tag">Kitchen notebook</span>
</div>
<h1>Turn recipe links into a warm, lived-in food plan.</h1>
<p class="hero-text">
Keep the recipes you love, shape a week of comforting meals, and let the
shopping list gather itself as your table starts to take shape.
</p>
<div class="hero-notes">
<div class="hero-note">
<span class="hero-note-label">This week</span>
<strong>Choose dinners for every day</strong>
</div>
<div class="hero-note">
<span class="hero-note-label">Shopping</span>
<strong>Shared ingredients merge together</strong>
</div>
</div>
<div class="hero-actions">
<button id="share-board-button" class="ghost-button" type="button">Create share link</button>
<p id="share-status" class="status-text" aria-live="polite"></p>
</div>
</div>
<div class="hero-stat-grid">
<section class="hero-stat">
<span class="stat-label">Recipes saved</span>
<strong id="recipe-count">0</strong>
</section>
<section class="hero-stat">
<span class="stat-label">Meals planned</span>
<strong id="planned-count">0</strong>
</section>
<section class="hero-stat">
<span class="stat-label">Shopping items</span>
<strong id="shopping-count">0</strong>
</section>
<section class="hero-card">
<p>Built to feel like a recipe box, meal board, and handwritten shopping list in one place.</p>
</section>
</div>
</header>
<main class="main-grid">
<section class="panel import-panel" id="import-panel">
<div class="panel-heading">
<div>
<p class="kicker">Import recipe</p>
<h2>Bring in a recipe URL</h2>
</div>
<button id="load-demo-button" class="ghost-button" type="button">Load demo recipes</button>
</div>
<form id="import-form" class="import-form">
<label class="field">
<span>Recipe URL</span>
<input
id="recipe-url"
name="recipeUrl"
type="url"
placeholder="https://example.com/recipes/roast-veg-pasta"
required
/>
</label>
<label class="field">
<span>Optional page HTML fallback</span>
<textarea
id="recipe-html"
name="recipeHtml"
rows="6"
placeholder="Paste page HTML here if the source site blocks direct fetching."
></textarea>
</label>
<div class="import-actions">
<button class="primary-button" type="submit">Import recipe</button>
<p id="import-status" class="status-text" aria-live="polite"></p>
</div>
</form>
</section>
<section class="panel planner-panel" id="planner-panel">
<div class="panel-heading">
<div>
<p class="kicker">Meal planner</p>
<h2>Plan the week</h2>
</div>
</div>
<div class="household-settings">
<label class="field-inline">
<span>Adults</span>
<input type="number" id="household-adults" min="0" value="0" />
</label>
<label class="field-inline">
<span>Children</span>
<input type="number" id="household-children" min="0" value="0" />
</label>
<label class="checkbox-field">
<input type="checkbox" id="household-children-share" />
Children share a parent's portion instead of having their own
</label>
<p class="household-hint">
Recipes default to serving
<strong id="household-total">—</strong>
based on your household, unless you set a different amount on a recipe.
</p>
</div>
<div id="weekly-menu" class="weekly-menu"></div>
</section>
<section class="library-column">
<section class="panel library-panel" id="library-panel">
<div class="panel-heading">
<div>
<p class="kicker">Recipe library</p>
<h2>Your saved recipes</h2>
</div>
</div>
<input
type="search"
id="recipe-search"
class="recipe-search"
placeholder="Search your recipes..."
/>
<div id="recipe-library" class="recipe-library"></div>
</section>
<section class="panel shopping-panel" id="shopping-panel">
<div class="panel-heading">
<div>
<p class="kicker">Shopping list</p>
<h2>Auto-generated ingredients</h2>
</div>
<span id="shopping-total" class="shopping-total">£0.00</span>
</div>
<p class="shopping-hint">
Already have something at home? Remove it from the list and the total updates.
</p>
<div id="shopping-list" class="shopping-list"></div>
</section>
</section>
<section class="panel details-panel" id="details-panel">
<div class="panel-heading">
<div>
<p class="kicker">Recipe page</p>
<h2>Stored recipe details</h2>
</div>
</div>
<article id="recipe-detail" class="recipe-detail empty-state">
Import a recipe or choose one from your library to see ingredients, instructions,
and method here.
</article>
</section>
</main>
</div>
</div>
<template id="recipe-card-template">
<div class="recipe-card">
<button class="recipe-card-select" type="button">
<span class="recipe-card-title"></span>
<span class="recipe-card-meta"></span>
</button>
<div class="star-rating recipe-card-rating" role="group" aria-label="Rate this recipe">
<button type="button" class="star-button" data-value="1" aria-label="Rate 1 star">★</button>
<button type="button" class="star-button" data-value="2" aria-label="Rate 2 stars">★</button>
<button type="button" class="star-button" data-value="3" aria-label="Rate 3 stars">★</button>
<button type="button" class="star-button" data-value="4" aria-label="Rate 4 stars">★</button>
<button type="button" class="star-button" data-value="5" aria-label="Rate 5 stars">★</button>
</div>
<label class="recipe-card-servings">
Serves
<input type="number" class="recipe-card-servings-input" min="1" />
</label>
</div>
</template>
<template id="shopping-item-template">
<li class="shopping-item">
<div class="shopping-item-main">
<span class="shopping-item-name"></span>
<span class="shopping-item-count"></span>
</div>
<label class="shopping-item-price">
<span>£</span>
<input type="number" class="price-input" step="0.01" min="0" inputmode="decimal" placeholder="0.00" />
</label>
<button class="remove-item-button ghost-button" type="button">Remove</button>
<button class="restore-item-button ghost-button" type="button" hidden>Add back</button>
</li>
</template>
<script type="module" src="./app.js"></script>
</body>
</html>