@hagicode/hagilight-core 0.1.0-dev.148.1.e0c630e
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.
- package/Analytics51LA.astro +17 -0
- package/Copyright.astro +9 -0
- package/Footer.astro +208 -0
- package/FooterAvatarPicker.astro +9 -0
- package/FooterBrand.astro +339 -0
- package/GoogleAnalytics.astro +30 -0
- package/PostHog.astro +11 -0
- package/PromotoBanner.astro +582 -0
- package/README.md +485 -0
- package/RootTransit.astro +599 -0
- package/assets/footer/avatar.avif +0 -0
- package/assets/footer/avatar.webp +0 -0
- package/assets/footer/manifest.json +237 -0
- package/data/comparison-articles/de-DE/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/de-DE/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/pi-vs-hagicode.json +282 -0
- package/data/comparison-articles/de-DE/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/de-DE/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/en-US/claude-vs-hagicode.json +346 -0
- package/data/comparison-articles/en-US/codebuddy-vs-hagicode.json +322 -0
- package/data/comparison-articles/en-US/codex-vs-hagicode.json +321 -0
- package/data/comparison-articles/en-US/copilot-vs-hagicode.json +320 -0
- package/data/comparison-articles/en-US/deepagents-vs-hagicode.json +323 -0
- package/data/comparison-articles/en-US/dsh-vs-hagicode.json +323 -0
- package/data/comparison-articles/en-US/gemini-vs-hagicode.json +320 -0
- package/data/comparison-articles/en-US/hermes-vs-hagicode.json +323 -0
- package/data/comparison-articles/en-US/junie-vs-hagicode.json +323 -0
- package/data/comparison-articles/en-US/kimi-vs-hagicode.json +319 -0
- package/data/comparison-articles/en-US/kiro-vs-hagicode.json +319 -0
- package/data/comparison-articles/en-US/omp-vs-hagicode.json +345 -0
- package/data/comparison-articles/en-US/opencode-vs-hagicode.json +333 -0
- package/data/comparison-articles/en-US/pi-vs-hagicode.json +345 -0
- package/data/comparison-articles/en-US/qoder-vs-hagicode.json +323 -0
- package/data/comparison-articles/en-US/reasonix-vs-hagicode.json +344 -0
- package/data/comparison-articles/es-ES/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/es-ES/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/es-ES/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/es-ES/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/fr-FR/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/fr-FR/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/fr-FR/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/fr-FR/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/ja-JP/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/ja-JP/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/ja-JP/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/ja-JP/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/ko-KR/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/ko-KR/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/ko-KR/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/ko-KR/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/pt-BR/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/pt-BR/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/pt-BR/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/pt-BR/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/ru-RU/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/ru-RU/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/ru-RU/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/ru-RU/qoder-vs-hagicode.json +323 -0
- package/data/comparison-articles/ru-RU/reasonix-vs-hagicode.json +281 -0
- package/data/comparison-articles/zh-CN/claude-vs-hagicode.json +346 -0
- package/data/comparison-articles/zh-CN/codebuddy-vs-hagicode.json +322 -0
- package/data/comparison-articles/zh-CN/codex-vs-hagicode.json +321 -0
- package/data/comparison-articles/zh-CN/copilot-vs-hagicode.json +320 -0
- package/data/comparison-articles/zh-CN/deepagents-vs-hagicode.json +323 -0
- package/data/comparison-articles/zh-CN/dsh-vs-hagicode.json +323 -0
- package/data/comparison-articles/zh-CN/gemini-vs-hagicode.json +320 -0
- package/data/comparison-articles/zh-CN/hermes-vs-hagicode.json +323 -0
- package/data/comparison-articles/zh-CN/junie-vs-hagicode.json +323 -0
- package/data/comparison-articles/zh-CN/kimi-vs-hagicode.json +319 -0
- package/data/comparison-articles/zh-CN/kiro-vs-hagicode.json +319 -0
- package/data/comparison-articles/zh-CN/omp-vs-hagicode.json +345 -0
- package/data/comparison-articles/zh-CN/opencode-vs-hagicode.json +333 -0
- package/data/comparison-articles/zh-CN/pi-vs-hagicode.json +345 -0
- package/data/comparison-articles/zh-CN/qoder-vs-hagicode.json +323 -0
- package/data/comparison-articles/zh-CN/reasonix-vs-hagicode.json +344 -0
- package/data/comparison-articles/zh-Hant/claude-vs-hagicode.json +294 -0
- package/data/comparison-articles/zh-Hant/codebuddy-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/codex-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/copilot-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/deepagents-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/gemini-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/hermes-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/kimi-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/kiro-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/opencode-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/pi-vs-hagicode.json +281 -0
- package/data/comparison-articles/zh-Hant/qoder-vs-hagicode.json +266 -0
- package/data/comparison-articles/zh-Hant/reasonix-vs-hagicode.json +281 -0
- package/dist/analytics-events.d.ts +49 -0
- package/dist/analytics-events.js +113 -0
- package/dist/build-info-resolver.d.ts +8 -0
- package/dist/build-info-resolver.js +29 -0
- package/dist/build-info.d.ts +19 -0
- package/dist/build-info.js +60 -0
- package/dist/comparison-articles-source.d.ts +13 -0
- package/dist/comparison-articles-source.js +58 -0
- package/dist/comparison-articles.d.ts +127 -0
- package/dist/comparison-articles.js +260 -0
- package/dist/content-images.d.ts +126 -0
- package/dist/content-images.js +490 -0
- package/dist/favicon.d.ts +21 -0
- package/dist/favicon.js +27 -0
- package/dist/footer-avatar.d.ts +39 -0
- package/dist/footer-avatar.js +42 -0
- package/dist/footer-brand.d.ts +29 -0
- package/dist/footer-brand.js +86 -0
- package/dist/head.d.ts +7 -0
- package/dist/head.js +1 -0
- package/dist/link-policy.d.ts +33 -0
- package/dist/link-policy.js +93 -0
- package/dist/links.d.ts +70 -0
- package/dist/links.js +425 -0
- package/dist/posthog.d.ts +6 -0
- package/dist/posthog.js +17 -0
- package/dist/promotions.d.ts +50 -0
- package/dist/promotions.js +243 -0
- package/dist/promoto-banner.d.ts +14 -0
- package/dist/promoto-banner.js +499 -0
- package/dist/random-image.d.ts +69 -0
- package/dist/random-image.js +133 -0
- package/dist/related-sites.json +378 -0
- package/dist/root-transit.d.ts +12 -0
- package/dist/root-transit.js +221 -0
- package/dist/rss-footer-context.d.ts +6 -0
- package/dist/rss-footer-context.js +54 -0
- package/dist/rss-ownership.d.ts +26 -0
- package/dist/rss-ownership.js +63 -0
- package/dist/rss.d.ts +34 -0
- package/dist/rss.js +145 -0
- package/dist/seo-schema.d.ts +12 -0
- package/dist/seo-schema.js +20 -0
- package/dist/seo.d.ts +78 -0
- package/dist/seo.js +270 -0
- package/dist/site-metadata-ownership.d.ts +40 -0
- package/dist/site-metadata-ownership.js +72 -0
- package/dist/site-metadata-writer.d.ts +25 -0
- package/dist/site-metadata-writer.js +55 -0
- package/dist/site-metadata.d.ts +113 -0
- package/dist/site-metadata.js +256 -0
- package/dist/splash-images.d.ts +75 -0
- package/dist/splash-images.js +186 -0
- package/favicon.ico +0 -0
- package/logo.png +0 -0
- package/package.json +172 -0
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
---
|
|
2
|
+
import logo from './logo.png';
|
|
3
|
+
import favicon from './favicon.ico';
|
|
4
|
+
import { resolveTransitDestination } from './dist/root-transit.js';
|
|
5
|
+
import { resolveSplashConfig, type SplashOverrides } from './dist/splash-images.js';
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
destination: string;
|
|
9
|
+
siteName: string;
|
|
10
|
+
locale?: string;
|
|
11
|
+
heading?: string;
|
|
12
|
+
message?: string;
|
|
13
|
+
continueLabel?: string;
|
|
14
|
+
links?: { destination: string; label: string; lang?: string }[];
|
|
15
|
+
/** `false` turns the splash off; an object overrides its base URL, prefix, collection size or cache name. */
|
|
16
|
+
splash?: false | SplashOverrides;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
destination, siteName, locale = 'en-US',
|
|
21
|
+
heading = `Opening ${siteName}`,
|
|
22
|
+
message = 'You will continue automatically. You can also continue now.',
|
|
23
|
+
continueLabel = `Continue to ${siteName}`,
|
|
24
|
+
links = [],
|
|
25
|
+
splash,
|
|
26
|
+
} = Astro.props;
|
|
27
|
+
if (!siteName?.trim()) throw new TypeError('Hagilight RootTransit: siteName is required.');
|
|
28
|
+
const splashConfig = resolveSplashConfig(splash);
|
|
29
|
+
const base = import.meta.env.BASE_URL;
|
|
30
|
+
const site = Astro.site ?? Astro.url;
|
|
31
|
+
const href = resolveTransitDestination(destination, { site, base });
|
|
32
|
+
const localeLinks = links.map((link) => ({ ...link, href: resolveTransitDestination(link.destination, { site, base }) }));
|
|
33
|
+
const route = new URL(href, site).pathname;
|
|
34
|
+
const trace = [
|
|
35
|
+
['destination', route],
|
|
36
|
+
['base', base],
|
|
37
|
+
['origin', new URL(site).origin],
|
|
38
|
+
['source', 'site configuration'],
|
|
39
|
+
];
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
<!doctype html>
|
|
43
|
+
<html lang={locale} data-hagilight-transit>
|
|
44
|
+
<head>
|
|
45
|
+
<meta charset="UTF-8" />
|
|
46
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
47
|
+
<title>{heading} — {siteName}</title>
|
|
48
|
+
<meta name="description" content={message} />
|
|
49
|
+
<meta name="robots" content="noindex,follow" />
|
|
50
|
+
<link rel="canonical" href={new URL(href, site).href} />
|
|
51
|
+
<link rel="icon" type="image/x-icon" href={favicon} />
|
|
52
|
+
<slot name="head" />
|
|
53
|
+
<script is:inline>
|
|
54
|
+
(() => {
|
|
55
|
+
let stored = null;
|
|
56
|
+
try { stored = localStorage.getItem('starlight-theme'); } catch {}
|
|
57
|
+
const system = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
58
|
+
document.documentElement.setAttribute('data-theme', stored || system);
|
|
59
|
+
})();
|
|
60
|
+
</script>
|
|
61
|
+
<script>
|
|
62
|
+
import { mountRootTransit } from './dist/root-transit.js';
|
|
63
|
+
mountRootTransit();
|
|
64
|
+
document.addEventListener('astro:page-load', () => mountRootTransit());
|
|
65
|
+
</script>
|
|
66
|
+
<style>
|
|
67
|
+
:global(:root[data-hagilight-transit]) {
|
|
68
|
+
color-scheme: dark;
|
|
69
|
+
--bg: #030712;
|
|
70
|
+
--ink: #f8fafc;
|
|
71
|
+
--muted: #94a3b8;
|
|
72
|
+
--line: rgba(255, 255, 255, 0.12);
|
|
73
|
+
--line-strong: rgba(255, 255, 255, 0.28);
|
|
74
|
+
--accent: #00cccc;
|
|
75
|
+
--accent-ink: #031316;
|
|
76
|
+
--beam-a: #0080ff;
|
|
77
|
+
--beam-b: #00cccc;
|
|
78
|
+
--beam-c: #22c55e;
|
|
79
|
+
--font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Segoe UI", system-ui, sans-serif;
|
|
80
|
+
--font-mono: "SF Mono", Menlo, "Cascadia Code", Consolas, "Roboto Mono", "JetBrains Mono", monospace;
|
|
81
|
+
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
82
|
+
/* Share of the page background laid over the splash image; keeps muted text readable on bright artwork. */
|
|
83
|
+
--splash-scrim: 84%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:global(:root[data-hagilight-transit][data-theme='light']) {
|
|
87
|
+
color-scheme: light;
|
|
88
|
+
--bg: #f5f5f7;
|
|
89
|
+
--ink: #0f172a;
|
|
90
|
+
--muted: #475569;
|
|
91
|
+
--line: rgba(0, 0, 0, 0.12);
|
|
92
|
+
--line-strong: rgba(0, 0, 0, 0.3);
|
|
93
|
+
--accent: #0060cc;
|
|
94
|
+
--accent-ink: #ffffff;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* 提案 → 执行:--run (0 → 1) 同时驱动轮廓、实心字、光束,三层不会错位 */
|
|
98
|
+
@property --run {
|
|
99
|
+
syntax: '<number>';
|
|
100
|
+
inherits: true;
|
|
101
|
+
initial-value: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@property --chip-fill {
|
|
105
|
+
syntax: '<number>';
|
|
106
|
+
inherits: true;
|
|
107
|
+
initial-value: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
*,
|
|
111
|
+
*::before,
|
|
112
|
+
*::after {
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:global(html[data-hagilight-transit]) {
|
|
117
|
+
background: var(--bg);
|
|
118
|
+
scrollbar-color: var(--line-strong) transparent;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:global(body:has([data-root-transit])) {
|
|
122
|
+
margin: 0;
|
|
123
|
+
min-height: 100dvh;
|
|
124
|
+
background: var(--bg);
|
|
125
|
+
color: var(--ink);
|
|
126
|
+
font-family: var(--font-sans);
|
|
127
|
+
font-size: 1rem;
|
|
128
|
+
line-height: 1.6;
|
|
129
|
+
-webkit-font-smoothing: antialiased;
|
|
130
|
+
-moz-osx-font-smoothing: grayscale;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
::selection {
|
|
134
|
+
background: color-mix(in srgb, var(--accent) 34%, transparent);
|
|
135
|
+
color: inherit;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
a {
|
|
139
|
+
color: inherit;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
a:focus-visible {
|
|
143
|
+
outline: 2px solid var(--accent);
|
|
144
|
+
outline-offset: 3px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* ── 启动图层:装饰性,在页面之后,不占布局空间;未显示时透明 ── */
|
|
148
|
+
.splash {
|
|
149
|
+
position: fixed;
|
|
150
|
+
inset: 0;
|
|
151
|
+
z-index: 0;
|
|
152
|
+
margin: 0;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
opacity: 0;
|
|
156
|
+
transition: opacity 600ms var(--ease-out);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.splash[data-state='shown'] {
|
|
160
|
+
opacity: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.splash img {
|
|
164
|
+
display: block;
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
object-fit: cover;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* 遮罩:标题与轨迹压在亮图上时仍保持可读 */
|
|
171
|
+
.splash::after {
|
|
172
|
+
content: '';
|
|
173
|
+
position: absolute;
|
|
174
|
+
inset: 0;
|
|
175
|
+
background: color-mix(in srgb, var(--bg) var(--splash-scrim), transparent);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ── 页面骨架 ── */
|
|
179
|
+
.page {
|
|
180
|
+
position: relative;
|
|
181
|
+
z-index: 1;
|
|
182
|
+
display: grid;
|
|
183
|
+
grid-template-rows: auto 1fr auto;
|
|
184
|
+
gap: clamp(1.5rem, 5vh, 3rem);
|
|
185
|
+
width: min(100%, 78rem);
|
|
186
|
+
min-height: 100dvh;
|
|
187
|
+
margin-inline: auto;
|
|
188
|
+
padding: clamp(1.25rem, 4vw, 3rem);
|
|
189
|
+
transition: opacity 180ms cubic-bezier(0.4, 0, 1, 1);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:global(html[data-transit-state='leaving']) .page {
|
|
193
|
+
opacity: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.brand {
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
gap: 0.625rem;
|
|
200
|
+
font-size: 1.0625rem;
|
|
201
|
+
font-weight: 700;
|
|
202
|
+
letter-spacing: -0.01em;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.brand img {
|
|
206
|
+
width: 28px;
|
|
207
|
+
height: 28px;
|
|
208
|
+
border-radius: 6px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.stage {
|
|
212
|
+
display: grid;
|
|
213
|
+
align-self: center;
|
|
214
|
+
gap: clamp(2rem, 5vh, 3.5rem);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (min-width: 64rem) {
|
|
218
|
+
.stage {
|
|
219
|
+
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
|
|
220
|
+
column-gap: clamp(3rem, 6vw, 6rem);
|
|
221
|
+
align-items: end;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.locales {
|
|
225
|
+
grid-column: 1 / -1;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Route sweep copied from the official root transit. */
|
|
230
|
+
.route {
|
|
231
|
+
margin: 0 0 0.12em;
|
|
232
|
+
font-size: clamp(2.75rem, 7.2vw, 6rem);
|
|
233
|
+
font-weight: 800;
|
|
234
|
+
line-height: 0.95;
|
|
235
|
+
letter-spacing: -0.03em;
|
|
236
|
+
overflow-wrap: anywhere;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.route-origin {
|
|
240
|
+
color: var(--ink);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.route-target {
|
|
244
|
+
display: inline-block;
|
|
245
|
+
max-width: calc(100% - 0.5em);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.run {
|
|
249
|
+
--run: 1;
|
|
250
|
+
--edge: 0.1em;
|
|
251
|
+
position: relative;
|
|
252
|
+
display: inline-grid;
|
|
253
|
+
max-width: 100%;
|
|
254
|
+
min-width: 0;
|
|
255
|
+
vertical-align: top;
|
|
256
|
+
padding-bottom: 0.12em;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:global(html[data-transit-ready]) .run {
|
|
260
|
+
animation: routeRun var(--run-dur, 1250ms) cubic-bezier(0.3, 0.55, 0.15, 1) both;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@keyframes routeRun {
|
|
264
|
+
from {
|
|
265
|
+
--run: 0;
|
|
266
|
+
}
|
|
267
|
+
to {
|
|
268
|
+
--run: 1;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.run-ghost,
|
|
273
|
+
.run-solid {
|
|
274
|
+
grid-area: 1 / 1;
|
|
275
|
+
display: block;
|
|
276
|
+
white-space: normal;
|
|
277
|
+
overflow-wrap: anywhere;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.run-solid {
|
|
281
|
+
color: var(--accent);
|
|
282
|
+
clip-path: inset(-0.3em calc((1 - var(--run)) * 100% - var(--run) * var(--edge)) -0.3em -0.3em);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* 尚未执行的字形:只有轮廓,光束走过后消失 */
|
|
286
|
+
.run-ghost {
|
|
287
|
+
color: transparent;
|
|
288
|
+
user-select: none;
|
|
289
|
+
-webkit-text-stroke: max(1.5px, 0.012em) color-mix(in srgb, var(--accent) 82%, transparent);
|
|
290
|
+
clip-path: inset(-0.3em -0.3em -0.3em calc(var(--run) * (100% + var(--edge))));
|
|
291
|
+
opacity: min(1, calc((1 - var(--run)) * 10));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.run-beam {
|
|
295
|
+
position: absolute;
|
|
296
|
+
top: -0.04em;
|
|
297
|
+
bottom: 0.1em;
|
|
298
|
+
left: calc(var(--run) * (100% + var(--edge)));
|
|
299
|
+
width: max(2px, 0.02em);
|
|
300
|
+
margin-left: calc(max(2px, 0.02em) / -2);
|
|
301
|
+
background: linear-gradient(180deg, var(--beam-a), var(--beam-b) 52%, var(--beam-c));
|
|
302
|
+
opacity: min(1, calc(var(--run) * 14), calc((1 - var(--run)) * 14));
|
|
303
|
+
pointer-events: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* 光束尾迹:刚刚执行过的地方 */
|
|
307
|
+
.run-beam::before {
|
|
308
|
+
content: '';
|
|
309
|
+
position: absolute;
|
|
310
|
+
inset: 0 100% 0 auto;
|
|
311
|
+
width: 0.7em;
|
|
312
|
+
background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--beam-b) 24%, transparent));
|
|
313
|
+
mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
|
|
314
|
+
-webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* ── 标题与状态 ── */
|
|
318
|
+
.headline {
|
|
319
|
+
margin: 1rem 0 0;
|
|
320
|
+
font-size: 1.5rem;
|
|
321
|
+
font-weight: 700;
|
|
322
|
+
line-height: 1.2;
|
|
323
|
+
text-wrap: balance;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.status {
|
|
327
|
+
max-width: 38ch;
|
|
328
|
+
/* 两行的高度:提示与「已停止」文案互换时,整个版面不跳动 */
|
|
329
|
+
min-height: 3em;
|
|
330
|
+
margin: 0.75rem 0 0;
|
|
331
|
+
color: var(--muted);
|
|
332
|
+
font-size: 0.9375rem;
|
|
333
|
+
line-height: 1.5;
|
|
334
|
+
text-wrap: pretty;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
:global(html[data-transit-state='paused']) .status {
|
|
338
|
+
color: var(--ink);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* ── 解析过程:每一行都是真实输入 ── */
|
|
342
|
+
.trace {
|
|
343
|
+
margin: 0;
|
|
344
|
+
border-bottom: 1px solid var(--line);
|
|
345
|
+
font-family: var(--font-mono);
|
|
346
|
+
font-size: 0.8125rem;
|
|
347
|
+
line-height: 1.4;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.trace-row {
|
|
351
|
+
display: grid;
|
|
352
|
+
grid-template-areas: 'label verdict' 'value value';
|
|
353
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
354
|
+
gap: 0.125rem 1rem;
|
|
355
|
+
padding: 0.75rem 0;
|
|
356
|
+
border-top: 1px solid var(--line);
|
|
357
|
+
color: var(--muted);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
@media (min-width: 40rem) {
|
|
361
|
+
.trace-row {
|
|
362
|
+
grid-template-areas: 'label value verdict';
|
|
363
|
+
grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr) 4.5rem;
|
|
364
|
+
gap: 0 1rem;
|
|
365
|
+
align-items: baseline;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.trace-row dt {
|
|
370
|
+
grid-area: label;
|
|
371
|
+
overflow-wrap: anywhere;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.trace-value {
|
|
375
|
+
grid-area: value;
|
|
376
|
+
margin: 0;
|
|
377
|
+
overflow-wrap: anywhere;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.trace-verdict {
|
|
381
|
+
grid-area: verdict;
|
|
382
|
+
margin: 0;
|
|
383
|
+
font-family: var(--font-sans);
|
|
384
|
+
font-size: 0.8125rem;
|
|
385
|
+
font-weight: 600;
|
|
386
|
+
text-align: right;
|
|
387
|
+
white-space: nowrap;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.trace-verdict:empty {
|
|
391
|
+
display: none;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.trace-row[data-state='used'] {
|
|
395
|
+
color: var(--ink);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.trace-row[data-state='used'] .trace-value {
|
|
399
|
+
color: var(--accent);
|
|
400
|
+
font-weight: 600;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.trace-row[data-state='used'] .trace-verdict {
|
|
404
|
+
color: var(--accent);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.trace-row[data-state='used'] .trace-verdict::before {
|
|
408
|
+
content: '';
|
|
409
|
+
display: inline-block;
|
|
410
|
+
width: 0.4375rem;
|
|
411
|
+
height: 0.4375rem;
|
|
412
|
+
margin-right: 0.4375rem;
|
|
413
|
+
border-radius: 50%;
|
|
414
|
+
background: var(--accent);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
:global(html[data-transit-ready]) .trace-row {
|
|
418
|
+
animation: traceIn 520ms var(--ease-out) both;
|
|
419
|
+
animation-delay: calc(var(--run-dur, 1250ms) * 0.12 * var(--i, 0));
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
:global(html[data-transit-ready]) .trace-row[data-state='used'] .trace-verdict {
|
|
423
|
+
animation: verdictIn 360ms var(--ease-out) both;
|
|
424
|
+
animation-delay: calc(var(--run-dur, 1250ms) * 0.78);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@keyframes traceIn {
|
|
428
|
+
from {
|
|
429
|
+
opacity: 0;
|
|
430
|
+
transform: translateY(8px);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@keyframes verdictIn {
|
|
435
|
+
from {
|
|
436
|
+
opacity: 0;
|
|
437
|
+
transform: translateX(-6px);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/* ── 语言列表:真实链接,也是手动选择入口 ── */
|
|
442
|
+
.locales-label {
|
|
443
|
+
margin: 0 0 0.75rem;
|
|
444
|
+
color: var(--muted);
|
|
445
|
+
font-size: 0.8125rem;
|
|
446
|
+
font-weight: 600;
|
|
447
|
+
letter-spacing: 0.01em;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.locales ul {
|
|
451
|
+
display: flex;
|
|
452
|
+
flex-wrap: wrap;
|
|
453
|
+
gap: 0.5rem;
|
|
454
|
+
margin: 0;
|
|
455
|
+
padding: 0;
|
|
456
|
+
list-style: none;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.locales a {
|
|
460
|
+
display: inline-flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
min-height: 2.75rem;
|
|
463
|
+
padding: 0 1rem;
|
|
464
|
+
border: 1px solid var(--line-strong);
|
|
465
|
+
border-radius: 9999px;
|
|
466
|
+
background: linear-gradient(var(--accent), var(--accent)) no-repeat left / 0% 100%;
|
|
467
|
+
font-size: 0.9375rem;
|
|
468
|
+
font-weight: 600;
|
|
469
|
+
line-height: 1.3;
|
|
470
|
+
letter-spacing: 0.01em;
|
|
471
|
+
text-decoration: none;
|
|
472
|
+
transition:
|
|
473
|
+
border-color 150ms ease,
|
|
474
|
+
transform 150ms ease;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.locales a:hover {
|
|
478
|
+
border-color: var(--accent);
|
|
479
|
+
transform: translateY(-1px);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.locales a[aria-current='true'] {
|
|
483
|
+
--chip-fill: 1;
|
|
484
|
+
display: inline-grid;
|
|
485
|
+
border-color: var(--accent);
|
|
486
|
+
background-size: calc(var(--chip-fill) * 100%) 100%;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.chip-label, .chip-filled {
|
|
490
|
+
grid-area: 1 / 1;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.chip-label {
|
|
494
|
+
color: var(--accent);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* Keep each text color over its matching surface while the chip fills. */
|
|
498
|
+
.chip-filled {
|
|
499
|
+
color: var(--accent-ink);
|
|
500
|
+
clip-path: inset(-0.2em calc((1 - var(--chip-fill)) * (100% + 2rem) - 1rem) -0.2em -1rem);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/* 选中的语言在光束走完时被填满:同一次执行的落点 */
|
|
504
|
+
:global(html[data-transit-ready]) .locales a[aria-current='true'] {
|
|
505
|
+
animation: chipFill 420ms var(--ease-out) both;
|
|
506
|
+
animation-delay: calc(var(--run-dur, 1250ms) * 0.92);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
@keyframes chipFill {
|
|
510
|
+
from {
|
|
511
|
+
--chip-fill: 0;
|
|
512
|
+
}
|
|
513
|
+
to {
|
|
514
|
+
--chip-fill: 1;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/* ── 页脚 ── */
|
|
519
|
+
.quick-links {
|
|
520
|
+
display: flex;
|
|
521
|
+
flex-wrap: wrap;
|
|
522
|
+
gap: 0 1.5rem;
|
|
523
|
+
font-size: 0.8125rem;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.quick-links :global(a) {
|
|
527
|
+
padding: 0.5rem 0;
|
|
528
|
+
color: var(--muted);
|
|
529
|
+
text-underline-offset: 0.2em;
|
|
530
|
+
text-decoration-color: transparent;
|
|
531
|
+
transition: color 150ms ease, text-decoration-color 150ms ease;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.quick-links :global(a:hover) {
|
|
535
|
+
color: var(--ink);
|
|
536
|
+
text-decoration-color: currentColor;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.quick-links :global(a:focus-visible) {
|
|
540
|
+
outline: 2px solid var(--accent);
|
|
541
|
+
outline-offset: 3px;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
@media (prefers-reduced-motion: reduce) {
|
|
545
|
+
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
546
|
+
.splash { transition: none; }
|
|
547
|
+
.run { --run: 1; }
|
|
548
|
+
.locales a:hover {
|
|
549
|
+
transform: none;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
@media (forced-colors: active) {
|
|
554
|
+
.splash { display: none; }
|
|
555
|
+
.locales a[aria-current='true'] {
|
|
556
|
+
outline: 2px solid Highlight;
|
|
557
|
+
forced-color-adjust: none;
|
|
558
|
+
color: HighlightText;
|
|
559
|
+
background: Highlight;
|
|
560
|
+
}
|
|
561
|
+
.chip-label, .chip-filled { color: HighlightText; }
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
</style>
|
|
565
|
+
</head>
|
|
566
|
+
<body>
|
|
567
|
+
{splashConfig && (
|
|
568
|
+
<figure class="splash" data-splash aria-hidden="true" data-splash-base={splashConfig.baseUrl} data-splash-prefix={splashConfig.prefix} data-splash-count={splashConfig.count} data-splash-cache={splashConfig.cacheName}>
|
|
569
|
+
<img alt="" decoding="async" fetchpriority="low" />
|
|
570
|
+
</figure>
|
|
571
|
+
)}
|
|
572
|
+
<div class="page" data-root-transit data-base={base}>
|
|
573
|
+
<header>
|
|
574
|
+
<span class="brand"><img src={logo.src} width="28" height="28" alt="" />{siteName}</span>
|
|
575
|
+
</header>
|
|
576
|
+
<main class="stage">
|
|
577
|
+
<div class="intro">
|
|
578
|
+
<p class="route" aria-hidden="true"><span class="route-origin">/</span><span class="route-target"><span class="run"><span class="run-ghost">{route.slice(1)}</span><span class="run-solid">{route.slice(1)}</span><span class="run-beam"></span></span></span></p>
|
|
579
|
+
<h1 class="headline">{heading}</h1>
|
|
580
|
+
<p class="status">{message}</p>
|
|
581
|
+
</div>
|
|
582
|
+
<dl class="trace" aria-hidden="true">
|
|
583
|
+
{trace.map(([label, value], index) => (
|
|
584
|
+
<div class="trace-row" data-state={index === 0 ? 'used' : 'idle'} style={`--i: ${index}`}>
|
|
585
|
+
<dt>{label}</dt><dd class="trace-value">{value}</dd><dd class="trace-verdict">{index === 0 ? 'configured' : ''}</dd>
|
|
586
|
+
</div>
|
|
587
|
+
))}
|
|
588
|
+
</dl>
|
|
589
|
+
<nav class="locales" aria-label={continueLabel}>
|
|
590
|
+
<ul>
|
|
591
|
+
<li><a href={href} data-transit-continue aria-current="true"><span class="chip-label">{continueLabel}</span><span class="chip-filled" aria-hidden="true">{continueLabel}</span></a></li>
|
|
592
|
+
{localeLinks.map((link) => <li><a href={link.href} lang={link.lang} data-transit-alternative>{link.label}</a></li>)}
|
|
593
|
+
</ul>
|
|
594
|
+
</nav>
|
|
595
|
+
</main>
|
|
596
|
+
<footer><nav class="quick-links"><slot name="footer" /></nav></footer>
|
|
597
|
+
</div>
|
|
598
|
+
</body>
|
|
599
|
+
</html>
|
|
Binary file
|
|
Binary file
|