-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (35 loc) · 1.69 KB
/
index.html
File metadata and controls
35 lines (35 loc) · 1.69 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>LithoApp — Neural Surface Generator</title>
<meta name="description" content="Transform photos into 3D lithophanes and extruded surfaces — entirely in the browser." />
<meta name="theme-color" content="#050505" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="LithoApp" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" type="image/png" href="/icon-512.png" />
<link rel="apple-touch-icon" href="/icon-512.png" />
</head>
<body>
<div id="root">
<noscript>
<div style="display:flex;align-items:center;justify-content:center;min-height:100vh;background:#050505;color:#ccc;font-family:system-ui;padding:2rem;text-align:center;">
<p>LithoApp requires JavaScript to run. Please enable it in your browser settings.</p>
</div>
</noscript>
</div>
<script type="module" src="/src/main.tsx"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
// Detect base path from the document — works in both dev (/) and GH Pages (/LithoApp/)
const base = document.querySelector('link[rel="manifest"]')?.getAttribute('href')?.replace('manifest.json', '') || '/';
navigator.serviceWorker.register(base + 'sw.js', { scope: base }).catch(() => {});
});
}
</script>
</body>
</html>