-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (59 loc) · 1.75 KB
/
Copy pathindex.html
File metadata and controls
60 lines (59 loc) · 1.75 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>StringLightCAD</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@^19.2.1",
"react-dom/": "https://esm.sh/react-dom@^19.2.1/",
"react/": "https://esm.sh/react@^19.2.1/",
"uuid": "https://esm.sh/uuid@^13.0.0",
"three": "https://esm.sh/three@^0.182.0",
"three-bvh-csg": "https://esm.sh/three-bvh-csg@^0.0.17",
"three/": "https://esm.sh/three@^0.182.0/",
"@react-three/fiber": "https://esm.sh/@react-three/fiber@^9.4.2",
"@react-three/drei": "https://esm.sh/@react-three/drei@^10.7.7",
"path": "https://esm.sh/path@^0.12.7",
"vite": "https://esm.sh/vite@^7.2.7",
"@vitejs/plugin-react": "https://esm.sh/@vitejs/plugin-react@^5.1.2",
"url": "https://esm.sh/url@^0.11.4"
}
}
</script>
<style>
html, body, #root {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #f9fafb; /* 添加浅灰色背景 */
}
/* 加载指示器样式 */
.loading-indicator {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.5rem;
color: #4b5563;
text-align: center;
}
</style>
</head>
<body>
<div id="root">
<!-- 添加加载指示器 -->
<div class="loading-indicator">
<i class="fas fa-spinner fa-spin mr-2"></i>
正在加载场景...
</div>
</div>
<script type="module" src="/index.tsx"></script>
</body>
</html>