Skip to content

Commit b6517aa

Browse files
committed
feat: enhance index.html layout and update package.json for versioning and dependencies
1 parent 2d24215 commit b6517aa

File tree

4 files changed

+440
-875
lines changed

4 files changed

+440
-875
lines changed

examples/index.html

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,85 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
8+
/>
59
<title>AR.js-core Examples</title>
610
<style>
11+
:root {
12+
color-scheme: dark light;
13+
}
14+
html,
15+
body {
16+
height: 100%;
17+
margin: 0;
18+
padding: 0;
19+
}
20+
body {
21+
font-family:
22+
system-ui,
23+
-apple-system,
24+
Segoe UI,
25+
Roboto,
26+
Ubuntu,
27+
Cantarell,
28+
Noto Sans,
29+
Helvetica,
30+
Arial,
31+
"Apple Color Emoji",
32+
"Segoe UI Emoji";
33+
background: #111;
34+
color: #eee;
35+
}
36+
.wrap {
37+
max-width: 820px;
38+
margin: 0 auto;
39+
padding: 24px;
40+
}
41+
h1 {
42+
font-size: 1.6rem;
43+
margin: 0 0 12px;
44+
}
45+
p {
46+
margin: 0 0 16px;
47+
color: #cfcfcf;
48+
}
49+
ul {
50+
list-style: none;
51+
padding: 0;
52+
margin: 0;
53+
display: grid;
54+
gap: 10px;
55+
}
56+
li {
57+
background: #1a1a1a;
58+
border: 1px solid #2a2a2a;
59+
border-radius: 8px;
60+
}
61+
a {
62+
display: block;
63+
padding: 12px 14px;
64+
text-decoration: none;
65+
color: #9ef01a;
66+
}
67+
a small {
68+
display: block;
69+
color: #aaa;
70+
}
71+
a:hover {
72+
background: #202020;
73+
}
74+
footer {
75+
margin-top: 20px;
76+
font-size: 12px;
77+
color: #aaa;
78+
}
79+
code {
80+
background: rgba(255, 255, 255, 0.08);
81+
padding: 2px 6px;
82+
border-radius: 4px;
83+
}
784
</style>
885
</head>
986
<body>
@@ -25,7 +102,9 @@ <h1>AR.js-core Examples</h1>
25102
</li>
26103
</ul>
27104
<footer>
105+
Tip: start the dev server with <code>npm run dev:vite</code> and open
106+
this page at <code>http://localhost:5173/examples/index.html</code>.
28107
</footer>
29108
</div>
30109
</body>
31-
</html>
110+
</html>

0 commit comments

Comments
 (0)