@jjlmoya/utils-cooking 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -4
- package/scripts/postinstall.mjs +27 -0
- package/src/category/index.ts +12 -12
- package/src/entries.ts +26 -0
- package/src/tool/american-kitchen-converter/component.astro +0 -498
- package/src/tool/american-kitchen-converter/entry.ts +26 -0
- package/src/tool/american-kitchen-converter/index.ts +2 -27
- package/src/tool/american-kitchen-converter/us-cooking-conversion-calculator-cups-to-grams-fahrenheit.css +496 -0
- package/src/tool/banana-ripeness/banana-ripeness.css +587 -0
- package/src/tool/banana-ripeness/component.astro +0 -589
- package/src/tool/banana-ripeness/entry.ts +26 -0
- package/src/tool/banana-ripeness/index.ts +2 -27
- package/src/tool/brine/component.astro +0 -536
- package/src/tool/brine/entry.ts +29 -0
- package/src/tool/brine/equilibrium-brining-calculator-meat-fermentation-ratios.css +534 -0
- package/src/tool/brine/index.ts +2 -31
- package/src/tool/cookware-guide/component.astro +0 -24
- package/src/tool/cookware-guide/cookware-selector.css +22 -0
- package/src/tool/cookware-guide/entry.ts +26 -0
- package/src/tool/cookware-guide/index.ts +2 -27
- package/src/tool/egg-timer/component.astro +1 -505
- package/src/tool/egg-timer/entry.ts +30 -0
- package/src/tool/egg-timer/index.ts +2 -32
- package/src/tool/egg-timer/perfect-boiled-egg-timer-altitude-calculator.css +503 -0
- package/src/tool/ingredient-rescaler/component.astro +0 -22
- package/src/tool/ingredient-rescaler/entry.ts +26 -0
- package/src/tool/ingredient-rescaler/index.ts +2 -27
- package/src/tool/ingredient-rescaler/recipe-ingredient-scaler-converter-servings.css +20 -0
- package/src/tool/kitchen-timer/component.astro +0 -340
- package/src/tool/kitchen-timer/entry.ts +26 -0
- package/src/tool/kitchen-timer/index.ts +2 -28
- package/src/tool/kitchen-timer/kitchen-timer.css +338 -0
- package/src/tool/meringue-peak/component.astro +0 -300
- package/src/tool/meringue-peak/entry.ts +26 -0
- package/src/tool/meringue-peak/index.ts +2 -27
- package/src/tool/meringue-peak/meringue-sugar-ratio-calculator-stiff-peaks.css +298 -0
- package/src/tool/mold-scaler/cake-pan-size-converter-calculator.css +364 -0
- package/src/tool/mold-scaler/component.astro +0 -366
- package/src/tool/mold-scaler/entry.ts +26 -0
- package/src/tool/mold-scaler/index.ts +2 -28
- package/src/tool/pizza/component.astro +0 -570
- package/src/tool/pizza/entry.ts +30 -0
- package/src/tool/pizza/index.ts +2 -32
- package/src/tool/pizza/neapolitan-pizza-dough-calculator-authentic-recipe.css +569 -0
- package/src/tool/roux-guide/component.astro +0 -23
- package/src/tool/roux-guide/entry.ts +26 -0
- package/src/tool/roux-guide/index.ts +2 -27
- package/src/tool/roux-guide/roux-ratio-calculator-thickening-sauce-guide.css +21 -0
- package/src/tool/sourdough-calculator/component.astro +0 -371
- package/src/tool/sourdough-calculator/entry.ts +26 -0
- package/src/tool/sourdough-calculator/index.ts +2 -27
- package/src/tool/sourdough-calculator/sourdough-starter-feeding-calculator-ratio-proportions.css +369 -0
- package/src/tools.ts +1 -1
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
.brine-container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-width: 64rem;
|
|
4
|
+
margin: 0 auto;
|
|
5
|
+
|
|
6
|
+
--bg-base: #fff;
|
|
7
|
+
--bg-muted: #f8fafc;
|
|
8
|
+
--text-base: #1e293b;
|
|
9
|
+
--text-muted: #64748b;
|
|
10
|
+
--border-color: #e2e8f0;
|
|
11
|
+
--primary: #06b6d4;
|
|
12
|
+
--primary-rgb: 6, 182, 212;
|
|
13
|
+
--secondary: #a855f7;
|
|
14
|
+
--accent: #f59e0b;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
html.theme-dark .brine-container,
|
|
18
|
+
body.theme-dark .brine-container,
|
|
19
|
+
.theme-dark .brine-container {
|
|
20
|
+
--bg-base: #1e293b;
|
|
21
|
+
--bg-muted: #0f172a;
|
|
22
|
+
--text-base: #f1f5f9;
|
|
23
|
+
--text-muted: #94a3b8;
|
|
24
|
+
--border-color: #334155;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.brine-grid {
|
|
28
|
+
display: grid;
|
|
29
|
+
grid-template-columns: 1fr;
|
|
30
|
+
gap: 0;
|
|
31
|
+
background: var(--bg-base);
|
|
32
|
+
border: 1px solid var(--border-color);
|
|
33
|
+
border-radius: 1.5rem;
|
|
34
|
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (min-width: 1024px) {
|
|
39
|
+
.brine-grid {
|
|
40
|
+
grid-template-columns: 1fr 1fr;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.brine-controls {
|
|
45
|
+
padding: 2rem;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
gap: 2rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media (min-width: 1024px) {
|
|
52
|
+
.brine-controls {
|
|
53
|
+
padding: 2.5rem;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.brine-header {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.brine-title {
|
|
64
|
+
font-size: 1.5rem;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
color: var(--text-base);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.brine-subtitle {
|
|
70
|
+
font-size: 0.875rem;
|
|
71
|
+
color: var(--text-muted);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.brine-inputs {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 1.5rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.brine-input-group {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: 0.5rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.brine-label {
|
|
87
|
+
font-size: 0.875rem;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
color: var(--text-muted);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.brine-input-wrapper {
|
|
93
|
+
position: relative;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.brine-input {
|
|
97
|
+
width: 100%;
|
|
98
|
+
padding: 1rem;
|
|
99
|
+
font-size: 1.25rem;
|
|
100
|
+
background: var(--bg-muted);
|
|
101
|
+
border: 1px solid var(--border-color);
|
|
102
|
+
border-radius: 1rem;
|
|
103
|
+
color: var(--text-base);
|
|
104
|
+
transition: all 0.2s;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.brine-input:focus {
|
|
108
|
+
outline: none;
|
|
109
|
+
box-shadow: 0 0 0 2px var(--primary);
|
|
110
|
+
border-color: var(--primary);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.brine-unit {
|
|
114
|
+
position: absolute;
|
|
115
|
+
right: 1rem;
|
|
116
|
+
top: 50%;
|
|
117
|
+
transform: translateY(-50%);
|
|
118
|
+
color: var(--text-muted);
|
|
119
|
+
font-weight: 500;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.brine-salinity-section {
|
|
123
|
+
padding-top: 1rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.brine-salinity-header {
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
align-items: flex-end;
|
|
130
|
+
margin-bottom: 1rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.brine-salinity-display {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: baseline;
|
|
136
|
+
gap: 0.25rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.brine-salinity-value {
|
|
140
|
+
font-size: 1.875rem;
|
|
141
|
+
font-weight: 700;
|
|
142
|
+
color: var(--primary);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.brine-salinity-unit {
|
|
146
|
+
font-size: 1.125rem;
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
color: var(--primary);
|
|
149
|
+
opacity: 0.7;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.brine-slider {
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 0.75rem;
|
|
155
|
+
background: var(--border-color);
|
|
156
|
+
border-radius: 9999px;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
accent-color: var(--primary);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.brine-slider:hover {
|
|
162
|
+
accent-color: var(--primary-hover);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.brine-presets {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-wrap: wrap;
|
|
168
|
+
gap: 0.5rem;
|
|
169
|
+
margin-top: 1rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.preset-btn {
|
|
173
|
+
padding: 0.375rem 0.75rem;
|
|
174
|
+
font-size: 0.75rem;
|
|
175
|
+
font-weight: 700;
|
|
176
|
+
background: var(--bg-muted);
|
|
177
|
+
color: var(--text-muted);
|
|
178
|
+
border: 1px solid transparent;
|
|
179
|
+
border-radius: 0.5rem;
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
transition: all 0.2s;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.preset-btn:hover {
|
|
185
|
+
background: rgba(var(--primary-rgb), 0.1);
|
|
186
|
+
color: var(--primary);
|
|
187
|
+
border-color: var(--primary);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.preset-btn.active {
|
|
191
|
+
background: rgba(var(--primary-rgb), 0.15);
|
|
192
|
+
color: var(--primary);
|
|
193
|
+
border-color: var(--primary);
|
|
194
|
+
box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 4px var(--primary);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.brine-sugar-toggle {
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: space-between;
|
|
201
|
+
padding: 1rem;
|
|
202
|
+
background: var(--bg-muted);
|
|
203
|
+
border-radius: 1rem;
|
|
204
|
+
border: 1px solid var(--border-color);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.brine-toggle-content {
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
gap: 0.25rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.brine-toggle-label {
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
color: var(--text-base);
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.brine-toggle-hint {
|
|
220
|
+
font-size: 0.75rem;
|
|
221
|
+
color: var(--text-muted);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.brine-switch {
|
|
225
|
+
position: relative;
|
|
226
|
+
width: 3rem;
|
|
227
|
+
height: 1.5rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.brine-switch-input {
|
|
231
|
+
position: absolute;
|
|
232
|
+
width: 100%;
|
|
233
|
+
height: 100%;
|
|
234
|
+
opacity: 0;
|
|
235
|
+
cursor: pointer;
|
|
236
|
+
z-index: 10;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.brine-switch-bg {
|
|
240
|
+
position: absolute;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: 100%;
|
|
243
|
+
background: var(--border-color);
|
|
244
|
+
border-radius: 9999px;
|
|
245
|
+
transition: background-color 0.2s;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.brine-switch-circle {
|
|
249
|
+
position: absolute;
|
|
250
|
+
top: 0.25rem;
|
|
251
|
+
left: 0.25rem;
|
|
252
|
+
width: 1rem;
|
|
253
|
+
height: 1rem;
|
|
254
|
+
background: white;
|
|
255
|
+
border-radius: 50%;
|
|
256
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
257
|
+
transition: transform 0.2s;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.brine-switch-input:checked ~ .brine-switch-bg {
|
|
261
|
+
background: var(--primary);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.brine-switch-input:checked ~ .brine-switch-circle {
|
|
265
|
+
transform: translateX(1.5rem);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.brine-results {
|
|
269
|
+
background: var(--bg-muted);
|
|
270
|
+
padding: 2rem;
|
|
271
|
+
display: flex;
|
|
272
|
+
flex-direction: column;
|
|
273
|
+
justify-content: space-between;
|
|
274
|
+
border-top: 1px solid var(--border-color);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@media (min-width: 1024px) {
|
|
278
|
+
.brine-results {
|
|
279
|
+
border-top: none;
|
|
280
|
+
border-left: 1px solid var(--border-color);
|
|
281
|
+
padding: 2.5rem;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:global(.brine-visualization) {
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
align-items: center;
|
|
289
|
+
justify-content: center;
|
|
290
|
+
min-height: 300px;
|
|
291
|
+
margin-bottom: 2rem;
|
|
292
|
+
position: relative;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
:global(.brine-jar) {
|
|
296
|
+
position: relative;
|
|
297
|
+
width: 12rem;
|
|
298
|
+
height: 16rem;
|
|
299
|
+
border: 4px solid var(--border-color);
|
|
300
|
+
border-radius: 1rem;
|
|
301
|
+
border-top: none;
|
|
302
|
+
background: rgba(255, 255, 255, 0.1);
|
|
303
|
+
backdrop-filter: blur(10px);
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
:global(.brine-jar-cap) {
|
|
308
|
+
position: absolute;
|
|
309
|
+
top: -0.25rem;
|
|
310
|
+
left: 50%;
|
|
311
|
+
transform: translateX(-50%);
|
|
312
|
+
width: 13rem;
|
|
313
|
+
height: 1rem;
|
|
314
|
+
background: var(--border-color);
|
|
315
|
+
border-radius: 0.5rem 0.5rem 0 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
:global(.brine-water) {
|
|
319
|
+
position: absolute;
|
|
320
|
+
bottom: 0;
|
|
321
|
+
left: 0;
|
|
322
|
+
width: 100%;
|
|
323
|
+
background: rgba(59, 130, 246, 0.2);
|
|
324
|
+
transition: height 0.5s ease-out;
|
|
325
|
+
height: 50%;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
:global(.brine-water)::before {
|
|
329
|
+
content: '';
|
|
330
|
+
position: absolute;
|
|
331
|
+
top: 0;
|
|
332
|
+
left: 0;
|
|
333
|
+
width: 100%;
|
|
334
|
+
height: 100%;
|
|
335
|
+
background: repeating-linear-gradient(
|
|
336
|
+
90deg,
|
|
337
|
+
transparent,
|
|
338
|
+
transparent 50%,
|
|
339
|
+
rgba(59, 130, 246, 0.1) 50%,
|
|
340
|
+
rgba(59, 130, 246, 0.1) 100%
|
|
341
|
+
);
|
|
342
|
+
animation: wave 10s linear infinite;
|
|
343
|
+
opacity: 0.5;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@keyframes wave {
|
|
347
|
+
0% {
|
|
348
|
+
transform: translateX(0) scaleY(1);
|
|
349
|
+
}
|
|
350
|
+
50% {
|
|
351
|
+
transform: translateX(-25%) scaleY(0.85);
|
|
352
|
+
}
|
|
353
|
+
100% {
|
|
354
|
+
transform: translateX(-50%) scaleY(1);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
:global(.brine-product) {
|
|
359
|
+
position: absolute;
|
|
360
|
+
bottom: 1rem;
|
|
361
|
+
left: 50%;
|
|
362
|
+
transform: translateX(-50%);
|
|
363
|
+
background: rgba(0, 0, 0, 0.1);
|
|
364
|
+
border-radius: 0.75rem;
|
|
365
|
+
backdrop-filter: blur(10px);
|
|
366
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
367
|
+
display: flex;
|
|
368
|
+
align-items: center;
|
|
369
|
+
justify-content: center;
|
|
370
|
+
transition: all 0.5s ease-out;
|
|
371
|
+
width: 60%;
|
|
372
|
+
height: 40%;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
:global(.brine-product-label) {
|
|
376
|
+
font-size: 0.75rem;
|
|
377
|
+
font-weight: 700;
|
|
378
|
+
color: rgba(0, 0, 0, 0.3);
|
|
379
|
+
text-transform: uppercase;
|
|
380
|
+
letter-spacing: 0.05em;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
:global(.brine-particles) {
|
|
384
|
+
position: absolute;
|
|
385
|
+
inset: 0;
|
|
386
|
+
pointer-events: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.brine-vis-info {
|
|
390
|
+
position: absolute;
|
|
391
|
+
top: 1rem;
|
|
392
|
+
right: 1rem;
|
|
393
|
+
background: var(--bg-base);
|
|
394
|
+
padding: 0.375rem 0.75rem;
|
|
395
|
+
border-radius: 0.5rem;
|
|
396
|
+
border: 1px solid var(--border-color);
|
|
397
|
+
font-size: 0.75rem;
|
|
398
|
+
color: var(--text-muted);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.brine-vis-label {
|
|
402
|
+
font-weight: 500;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.brine-vis-value {
|
|
406
|
+
font-weight: 700;
|
|
407
|
+
color: var(--text-base);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.brine-output {
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
gap: 1rem;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.brine-result-panel {
|
|
417
|
+
background: var(--bg-base);
|
|
418
|
+
padding: 1.5rem;
|
|
419
|
+
border-radius: 1rem;
|
|
420
|
+
border: 1px solid var(--border-color);
|
|
421
|
+
position: relative;
|
|
422
|
+
overflow: hidden;
|
|
423
|
+
display: flex;
|
|
424
|
+
gap: 1rem;
|
|
425
|
+
align-items: flex-start;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.brine-result-icon {
|
|
429
|
+
width: 3rem;
|
|
430
|
+
height: 3rem;
|
|
431
|
+
background: var(--bg-muted);
|
|
432
|
+
border-radius: 0.75rem;
|
|
433
|
+
display: flex;
|
|
434
|
+
align-items: center;
|
|
435
|
+
justify-content: center;
|
|
436
|
+
color: var(--primary);
|
|
437
|
+
flex-shrink: 0;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.brine-salt-icon {
|
|
441
|
+
color: var(--primary);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.brine-sugar-icon {
|
|
445
|
+
color: var(--secondary);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.brine-time-icon {
|
|
449
|
+
color: var(--accent);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.brine-result-content {
|
|
453
|
+
flex: 1;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.brine-result-label {
|
|
457
|
+
display: block;
|
|
458
|
+
font-size: 0.875rem;
|
|
459
|
+
font-weight: 700;
|
|
460
|
+
text-transform: uppercase;
|
|
461
|
+
letter-spacing: 0.05em;
|
|
462
|
+
color: var(--text-muted);
|
|
463
|
+
margin-bottom: 0.25rem;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.brine-sugar-label {
|
|
467
|
+
color: var(--secondary);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.brine-time-label {
|
|
471
|
+
color: var(--accent);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.brine-result-value {
|
|
475
|
+
display: flex;
|
|
476
|
+
align-items: baseline;
|
|
477
|
+
gap: 0.5rem;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.brine-result-number {
|
|
481
|
+
font-size: 2.5rem;
|
|
482
|
+
font-weight: 900;
|
|
483
|
+
color: var(--primary);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.brine-sugar-number {
|
|
487
|
+
color: var(--secondary);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.brine-result-unit {
|
|
491
|
+
font-size: 1rem;
|
|
492
|
+
font-weight: 500;
|
|
493
|
+
color: var(--text-muted);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.brine-result-time {
|
|
497
|
+
font-size: 1.875rem;
|
|
498
|
+
font-weight: 900;
|
|
499
|
+
color: var(--accent);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.brine-salt-panel {
|
|
503
|
+
border-color: color-mix(in srgb, var(--primary) 20%, transparent);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.brine-sugar-panel {
|
|
507
|
+
border-color: color-mix(in srgb, var(--secondary) 20%, transparent);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.brine-time-panel {
|
|
511
|
+
border-color: color-mix(in srgb, var(--accent) 20%, transparent);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.brine-hidden {
|
|
515
|
+
display: none;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
@media (max-width: 640px) {
|
|
519
|
+
.brine-controls {
|
|
520
|
+
padding: 1.5rem;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.brine-results {
|
|
524
|
+
padding: 1.5rem;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.brine-result-number {
|
|
528
|
+
font-size: 2rem;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.brine-result-time {
|
|
532
|
+
font-size: 1.5rem;
|
|
533
|
+
}
|
|
534
|
+
}
|
package/src/tool/brine/index.ts
CHANGED
|
@@ -1,34 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const brine: CookingToolEntry = {
|
|
7
|
-
id: "brine-calculator",
|
|
8
|
-
icons: {
|
|
9
|
-
bg: "mdi:water",
|
|
10
|
-
fg: "mdi:salt",
|
|
11
|
-
},
|
|
12
|
-
i18n: {
|
|
13
|
-
es: () => import("./i18n/es").then((m) => m.content),
|
|
14
|
-
en: () => import("./i18n/en").then((m) => m.content),
|
|
15
|
-
fr: () => import("./i18n/fr").then((m) => m.content),
|
|
16
|
-
de: () => import("./i18n/de").then((m) => m.content),
|
|
17
|
-
it: () => import("./i18n/it").then((m) => m.content),
|
|
18
|
-
pt: () => import("./i18n/pt").then((m) => m.content),
|
|
19
|
-
nl: () => import("./i18n/nl").then((m) => m.content),
|
|
20
|
-
sv: () => import("./i18n/sv").then((m) => m.content),
|
|
21
|
-
ru: () => import("./i18n/ru").then((m) => m.content),
|
|
22
|
-
tr: () => import("./i18n/tr").then((m) => m.content),
|
|
23
|
-
pl: () => import("./i18n/pl").then((m) => m.content),
|
|
24
|
-
id: () => import("./i18n/id").then((m) => m.content),
|
|
25
|
-
ja: () => import("./i18n/ja").then((m) => m.content),
|
|
26
|
-
zh: () => import("./i18n/zh").then((m) => m.content),
|
|
27
|
-
ko: () => import("./i18n/ko").then((m) => m.content),
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { brine } from './entry';
|
|
2
|
+
export * from './entry';
|
|
32
3
|
export const BRINE_TOOL: ToolDefinition = {
|
|
33
4
|
entry: brine,
|
|
34
5
|
Component: () => import('./component.astro'),
|
|
@@ -162,30 +162,6 @@ const { ui } = Astro.props;
|
|
|
162
162
|
}
|
|
163
163
|
</script>
|
|
164
164
|
|
|
165
|
-
<style is:global>
|
|
166
|
-
:root {
|
|
167
|
-
--cw-primary: hsl(240deg, 94%, 60%);
|
|
168
|
-
--cw-primary-light: hsl(240deg, 100%, 95%);
|
|
169
|
-
--cw-bg-card: hsl(0deg, 0%, 100%);
|
|
170
|
-
--cw-bg-app: hsl(210deg, 40%, 98%);
|
|
171
|
-
--cw-border: hsl(210deg, 14%, 89%);
|
|
172
|
-
--cw-text-main: hsl(210deg, 40%, 14%);
|
|
173
|
-
--cw-text-muted: hsl(210deg, 8%, 40%);
|
|
174
|
-
--cw-text-light: hsl(210deg, 40%, 98%);
|
|
175
|
-
--cw-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
|
|
176
|
-
--cw-radius: 1.5rem;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.theme-dark {
|
|
180
|
-
--cw-bg-card: hsl(217deg, 33%, 12%);
|
|
181
|
-
--cw-bg-app: hsl(217deg, 39%, 8%);
|
|
182
|
-
--cw-border: hsl(217deg, 33%, 25%);
|
|
183
|
-
--cw-text-main: hsl(210deg, 40%, 98%);
|
|
184
|
-
--cw-text-muted: hsl(210deg, 14%, 75%);
|
|
185
|
-
--cw-text-light: hsl(210deg, 40%, 98%);
|
|
186
|
-
--cw-primary-light: hsl(240deg, 100%, 20%);
|
|
187
|
-
}
|
|
188
|
-
</style>
|
|
189
165
|
|
|
190
166
|
<style>
|
|
191
167
|
.cw-container {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--cw-primary: hsl(240deg, 94%, 60%);
|
|
3
|
+
--cw-primary-light: hsl(240deg, 100%, 95%);
|
|
4
|
+
--cw-bg-card: hsl(0deg, 0%, 100%);
|
|
5
|
+
--cw-bg-app: hsl(210deg, 40%, 98%);
|
|
6
|
+
--cw-border: hsl(210deg, 14%, 89%);
|
|
7
|
+
--cw-text-main: hsl(210deg, 40%, 14%);
|
|
8
|
+
--cw-text-muted: hsl(210deg, 8%, 40%);
|
|
9
|
+
--cw-text-light: hsl(210deg, 40%, 98%);
|
|
10
|
+
--cw-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
|
|
11
|
+
--cw-radius: 1.5rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.theme-dark {
|
|
15
|
+
--cw-bg-card: hsl(217deg, 33%, 12%);
|
|
16
|
+
--cw-bg-app: hsl(217deg, 39%, 8%);
|
|
17
|
+
--cw-border: hsl(217deg, 33%, 25%);
|
|
18
|
+
--cw-text-main: hsl(210deg, 40%, 98%);
|
|
19
|
+
--cw-text-muted: hsl(210deg, 14%, 75%);
|
|
20
|
+
--cw-text-light: hsl(210deg, 40%, 98%);
|
|
21
|
+
--cw-primary-light: hsl(240deg, 100%, 20%);
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CookingToolEntry } from '../../types';
|
|
2
|
+
|
|
3
|
+
export const cookwareGuide: CookingToolEntry = {
|
|
4
|
+
id: 'cookware-guide',
|
|
5
|
+
icons: {
|
|
6
|
+
bg: 'mdi:chef-hat',
|
|
7
|
+
fg: 'mdi:pot-mix',
|
|
8
|
+
},
|
|
9
|
+
i18n: {
|
|
10
|
+
es: () => import('./i18n/es').then((m) => m.content),
|
|
11
|
+
en: () => import('./i18n/en').then((m) => m.content),
|
|
12
|
+
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
13
|
+
de: () => import('./i18n/de').then((m) => m.content),
|
|
14
|
+
it: () => import('./i18n/it').then((m) => m.content),
|
|
15
|
+
pt: () => import('./i18n/pt').then((m) => m.content),
|
|
16
|
+
nl: () => import('./i18n/nl').then((m) => m.content),
|
|
17
|
+
sv: () => import('./i18n/sv').then((m) => m.content),
|
|
18
|
+
ru: () => import('./i18n/ru').then((m) => m.content),
|
|
19
|
+
tr: () => import('./i18n/tr').then((m) => m.content),
|
|
20
|
+
pl: () => import('./i18n/pl').then((m) => m.content),
|
|
21
|
+
id: () => import('./i18n/id').then((m) => m.content),
|
|
22
|
+
ja: () => import('./i18n/ja').then((m) => m.content),
|
|
23
|
+
zh: () => import('./i18n/zh').then((m) => m.content),
|
|
24
|
+
ko: () => import('./i18n/ko').then((m) => m.content),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export const cookwareGuide: CookingToolEntry = {
|
|
4
|
-
id: 'cookware-guide',
|
|
5
|
-
icons: {
|
|
6
|
-
bg: 'mdi:chef-hat',
|
|
7
|
-
fg: 'mdi:pot-mix',
|
|
8
|
-
},
|
|
9
|
-
i18n: {
|
|
10
|
-
es: () => import('./i18n/es').then((m) => m.content),
|
|
11
|
-
en: () => import('./i18n/en').then((m) => m.content),
|
|
12
|
-
fr: () => import('./i18n/fr').then((m) => m.content),
|
|
13
|
-
de: () => import('./i18n/de').then((m) => m.content),
|
|
14
|
-
it: () => import('./i18n/it').then((m) => m.content),
|
|
15
|
-
pt: () => import('./i18n/pt').then((m) => m.content),
|
|
16
|
-
nl: () => import('./i18n/nl').then((m) => m.content),
|
|
17
|
-
sv: () => import('./i18n/sv').then((m) => m.content),
|
|
18
|
-
ru: () => import('./i18n/ru').then((m) => m.content),
|
|
19
|
-
tr: () => import('./i18n/tr').then((m) => m.content),
|
|
20
|
-
pl: () => import('./i18n/pl').then((m) => m.content),
|
|
21
|
-
id: () => import('./i18n/id').then((m) => m.content),
|
|
22
|
-
ja: () => import('./i18n/ja').then((m) => m.content),
|
|
23
|
-
zh: () => import('./i18n/zh').then((m) => m.content),
|
|
24
|
-
ko: () => import('./i18n/ko').then((m) => m.content),
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
|
|
1
|
+
import { cookwareGuide } from './entry';
|
|
2
|
+
export * from './entry';
|
|
28
3
|
export const COOKWARE_GUIDE_TOOL: ToolDefinition = {
|
|
29
4
|
entry: cookwareGuide,
|
|
30
5
|
Component: () => import('./component.astro'),
|