@lark-apaas/coding-template-html-standard-webapp 0.1.1 → 0.1.2-beta.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/template/index.html +52 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-html-standard-webapp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2-beta.0",
4
4
  "description": "Buildless HTML template for miaoda local development (no build step, no platform SDK)",
5
5
  "type": "module",
6
6
  "files": [
@@ -3,42 +3,76 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>应用标题</title>
7
6
  <style>
8
7
  :root {
9
8
  color-scheme: light dark;
10
- --bg: #0f172a;
11
- --fg: #e2e8f0;
12
- --accent: #38bdf8;
9
+ --bg: #f5f6f8;
10
+ --bg-glow: rgba(37, 99, 235, 0.1);
11
+ --fg: #16191f;
12
+ --muted: #666f7d;
13
+ --accent: #2563eb;
13
14
  }
14
- * { box-sizing: border-box; }
15
+
16
+ @media (prefers-color-scheme: dark) {
17
+ :root {
18
+ --bg: #0b0f17;
19
+ --bg-glow: rgba(94, 176, 255, 0.12);
20
+ --fg: #e6edf3;
21
+ --muted: #8e9aab;
22
+ --accent: #5eb0ff;
23
+ }
24
+ }
25
+
26
+ * {
27
+ box-sizing: border-box;
28
+ }
29
+
15
30
  body {
16
31
  margin: 0;
17
32
  min-height: 100vh;
18
33
  display: grid;
19
34
  place-items: center;
20
- font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
21
- background: var(--bg);
35
+ padding: 24px;
36
+ font-family:
37
+ ui-sans-serif,
38
+ system-ui,
39
+ -apple-system,
40
+ 'Segoe UI',
41
+ Roboto,
42
+ 'PingFang SC',
43
+ 'Microsoft YaHei',
44
+ sans-serif;
45
+ line-height: 1.6;
22
46
  color: var(--fg);
47
+ background: radial-gradient(80% 60% at 50% 0%, var(--bg-glow), transparent 70%), var(--bg);
23
48
  }
49
+
24
50
  main {
25
- text-align: center;
26
- padding: 2rem;
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 10px;
27
54
  }
28
- h1 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2.5rem); }
29
- p { margin: 0.25rem 0; opacity: 0.8; }
30
- code {
31
- padding: 0.1rem 0.4rem;
32
- border-radius: 0.3rem;
33
- background: rgba(148, 163, 184, 0.2);
55
+
56
+ .dot {
57
+ width: 8px;
58
+ height: 8px;
59
+ border-radius: 50%;
60
+ background: var(--accent);
61
+ }
62
+
63
+ h1 {
64
+ margin: 0;
65
+ font-size: clamp(20px, 4vw, 24px);
66
+ font-weight: 500;
67
+ letter-spacing: 0.02em;
68
+ color: var(--muted);
34
69
  }
35
70
  </style>
36
71
  </head>
37
72
  <body>
38
73
  <main>
39
- <h1>应用已就绪</h1>
40
- <p>编辑 <code>index.html</code> 开始开发,保存后刷新页面即可</p>
41
- <p>新增页面:添加 <code>foo/index.html</code>,访问路径即为 <code>/foo</code></p>
74
+ <span class="dot"></span>
75
+ <h1>待开发</h1>
42
76
  </main>
43
77
  </body>
44
78
  </html>