Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
324 lines (312 loc) · 10.5 KB
/
Copy pathindex.html
File metadata and controls
324 lines (312 loc) · 10.5 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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="apple-touch-icon" href="/favicon.png" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<meta name="theme-color" content="oklch(0.075 0.006 255)" />
<style>
html.luma-route-landing,
html.luma-route-landing body,
html.luma-route-landing #root {
min-height: 100%;
background: oklch(0.075 0.006 255);
color: oklch(0.94 0.012 240);
color-scheme: dark;
}
html.luma-route-landing body {
margin: 0;
}
html.luma-route-raw,
html.luma-route-raw body,
html.luma-route-raw #root {
min-height: 100%;
/* Stage base slate (DESIGN.md §6), so the boot frame does not flash
the retired warm substrate before the /raw chrome mounts. */
background: #010102;
background: oklch(0.064 0.006 255);
color: #f4efe7;
color: oklch(0.97 0.014 86);
color-scheme: dark;
}
html.luma-route-raw body {
margin: 0;
}
#root > [data-lf-raw-boot],
html:not(.luma-route-raw) #root > [data-lf-raw-boot] {
display: none;
}
/* Boot skeleton is a minimal honest placeholder. It shows only
non-interactive informational content (slogan, format chips, background)
so users never perceive fake interactivity. React mounts immediately
with the full UI (including CTA button), but the button is disabled
until prewarm completes — the "optimistic ack" pattern:
structure appears instantly, interactivity follows truthfully. */
html.luma-route-raw #root > [data-lf-raw-boot] {
box-sizing: border-box;
display: grid;
min-height: 100svh;
min-height: 100dvh;
place-items: center;
padding: 2rem 1.75rem;
background:
radial-gradient(
72% 52% at 50% 34%,
oklch(0.138 0.006 255),
oklch(0.078 0.006 255) 70%
),
oklch(0.064 0.006 255);
color: oklch(0.97 0.014 86);
font-family: 'Geist Sans', ui-sans-serif, system-ui, sans-serif;
text-align: center;
}
[data-lf-raw-boot-panel] {
display: grid;
max-width: 30rem;
gap: 22px;
justify-items: center;
}
[data-lf-raw-boot-title] {
margin: 0;
max-width: 15rem;
color: oklch(0.97 0.014 86);
font-size: 1.4rem;
font-weight: 760;
line-height: 1.12;
letter-spacing: -0.005em;
text-wrap: balance;
}
[data-lf-raw-boot-copy] {
margin: 0;
max-width: 280px;
color: oklch(0.86 0.012 255 / 0.72);
font-size: 0.86rem;
line-height: 1.5;
text-wrap: pretty;
}
[data-lf-raw-boot-formats] {
display: inline-flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
margin-top: 8px;
color: oklch(0.82 0.01 255 / 0.5);
font-size: 0.66rem;
font-weight: 720;
text-transform: uppercase;
}
[data-lf-raw-boot-formats] span {
border: 1px solid oklch(0.9 0.006 255 / 0.18);
border-radius: 999px;
padding: 3px 8px;
}
@media (min-width: 48rem) {
[data-lf-raw-boot-title] {
max-width: 22rem;
font-size: 1.9rem;
}
}
</style>
<script>
function setRouteSubstrate() {
const routePath = window.location.pathname.replace(/\/+$/, '')
const rawPath = routePath === '/raw'
const landingPath = routePath === ''
const root = document.documentElement
root.dataset.lumaRoute = rawPath
? 'raw'
: landingPath
? 'landing'
: 'app'
root.classList.toggle('luma-route-raw', rawPath)
root.classList.toggle('luma-route-landing', landingPath)
const themeColor = document.querySelector("meta[name='theme-color']")
if (themeColor) {
themeColor.setAttribute(
'content',
rawPath
? 'oklch(0.064 0.006 255)'
: landingPath
? 'oklch(0.075 0.006 255)'
: 'oklch(0.964 0.018 86)',
)
}
}
setRouteSubstrate()
</script>
<meta name="application-name" content="LumaForge" />
<meta name="apple-mobile-web-app-title" content="LumaForge" />
<title data-lf-seo="true">LumaForge | Browser-Local RAW Photo Lab</title>
<meta
name="description"
content="Open one camera RAW locally, shape tone and color, inspect the histogram, compare the result, and export a full-resolution JPEG when the pipeline is reproducible."
data-lf-seo="true"
/>
<meta name="robots" content="index, follow" data-lf-seo="true" />
<link rel="canonical" href="https://luma.ichr.me/" data-lf-seo="true" />
<meta property="og:type" content="website" data-lf-seo="true" />
<meta property="og:site_name" content="LumaForge" data-lf-seo="true" />
<meta
property="og:title"
content="LumaForge | Browser-Local RAW Photo Lab"
data-lf-seo="true"
/>
<meta
property="og:description"
content="Drop in a camera RAW file, preview it locally, apply a built-in look or declared LUT contract, and export a full-resolution JPEG in the browser."
data-lf-seo="true"
/>
<meta
property="og:url"
content="https://luma.ichr.me/"
data-lf-seo="true"
/>
<meta
property="og:image"
content="https://luma.ichr.me/og-image.png"
data-lf-seo="true"
/>
<meta
property="og:image:alt"
content="LumaForge social preview card showing a browser-local RAW to JPEG comparison workflow."
data-lf-seo="true"
/>
<meta
name="twitter:card"
content="summary_large_image"
data-lf-seo="true"
/>
<meta
name="twitter:title"
content="LumaForge | Browser-Local RAW Photo Lab"
data-lf-seo="true"
/>
<meta
name="twitter:description"
content="Drop in a camera RAW file, preview it locally, apply a built-in look or declared LUT contract, and export a full-resolution JPEG in the browser."
data-lf-seo="true"
/>
<meta
name="twitter:image"
content="https://luma.ichr.me/og-image.png"
data-lf-seo="true"
/>
<meta
name="twitter:image:alt"
content="LumaForge social preview card showing a browser-local RAW to JPEG comparison workflow."
data-lf-seo="true"
/>
<script type="application/ld+json" data-lf-seo="true">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "LumaForge",
"url": "https://luma.ichr.me/",
"description": "Drop in a camera RAW file, preview it locally, apply a built-in look or declared LUT contract, and export a full-resolution JPEG in the browser.",
"applicationCategory": "PhotographyApplication",
"operatingSystem": "Web",
"image": "https://luma.ichr.me/og-image.png",
"isAccessibleForFree": true,
"featureList": [
"Browser-local RAW photo workflow",
"Color-safe LUT contract rail",
"No account or upload requirement",
"Full-resolution JPEG export in the browser"
]
}
</script>
<script>
function setTheme() {
let e = 'color-mode',
t = document.documentElement,
a = localStorage.getItem(e)
function h() {
return window.matchMedia
? window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: window.matchMedia('(prefers-color-scheme: light)').matches
? 'light'
: void 0
: void 0
}
if (!a) {
t.dataset.theme = h() || 'light'
return
}
switch ((a = JSON.parse(a))) {
case 'dark':
t.dataset.theme = 'dark'
break
case 'light':
t.dataset.theme = 'light'
break
case 'system':
t.dataset.theme = h() || 'light'
}
}
setTheme()
</script>
</head>
<body>
<div id="root">
<section data-lf-raw-boot aria-labelledby="lf-raw-boot-title">
<div data-lf-raw-boot-panel>
<h1 id="lf-raw-boot-title" data-lf-raw-boot-title>
Finish a RAW with a LUT
</h1>
<p data-lf-raw-boot-copy>
Decode, compare, and export a JPEG, all in your browser.
</p>
<div data-lf-raw-boot-formats aria-label="Supported RAW formats">
<span>.arw</span>
<span>.cr3</span>
<span>.nef</span>
<span>.dng</span>
<span>.raf</span>
<span>.orf</span>
</div>
</div>
</section>
</div>
<script>
/* Localize the boot skeleton before first paint. The head script set the
route class so the slate boot CSS already applies; this runs inline
right after the boot DOM is parsed (parser-blocking) so zh-CN readers
never see an English flash. Mirrors resolveInitialLocale() in
src/lib/i18n.tsx: stored locale wins, else navigator languages. */
;(function localizeRawBoot() {
if (document.documentElement.dataset.lumaRoute !== 'raw') return
var locale = 'en'
try {
var stored = localStorage.getItem('lumaforge.locale')
if (stored === 'en' || stored === 'zh-CN') {
locale = stored
} else {
var langs =
navigator.languages && navigator.languages.length
? navigator.languages
: [navigator.language]
for (var i = 0; i < langs.length; i++) {
var n = (langs[i] || '').trim().toLowerCase()
if (n === 'zh-cn' || n.indexOf('zh') === 0) {
locale = 'zh-CN'
break
}
}
}
} catch (e) {}
if (locale !== 'zh-CN') return
document.documentElement.lang = 'zh-CN'
var title = document.querySelector('[data-lf-raw-boot-title]')
var copy = document.querySelector('[data-lf-raw-boot-copy]')
if (title) title.textContent = '用 LUT 完成一张 RAW'
if (copy) copy.textContent = '在浏览器本地解码、对比并导出 JPEG。'
})()
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>