build-flow.portal/index.html

34 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="BuildFlow - 极简低代码开发平台,拖拽即应用,无需编写代码即可构建专业级 Web 应用。" />
<title>BuildFlow - 极简低代码开发平台</title>
<script>
// 防止主题切换闪烁(FOUC):在 React 渲染前同步设置 <html> class
(function () {
try {
var stored = localStorage.getItem("buildflow-theme");
var prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)",
).matches;
var isDark = stored ? stored === "dark" : prefersDark;
if (isDark) document.documentElement.classList.add("dark");
document.documentElement.style.colorScheme = isDark
? "dark"
: "light";
} catch (e) {
// 兜底:localStorage 不可用时默认深色
document.documentElement.classList.add("dark");
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>