init frontend

This commit is contained in:
2025-02-08 19:00:10 +08:00
parent 4685c10cba
commit d95f032aef
17 changed files with 5736 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ace-job-agency</title>
</head>
<body class="text-foreground bg-background absolute inset-0">
<script type="module">
const prefersDarkMode = window.matchMedia("(prefers-color-scheme: dark)");
const body = document.querySelector("body");
function updateTheme() {
if (prefersDarkMode.matches) {
body.classList.add("dark");
} else {
body.classList.remove("dark");
}
}
updateTheme();
prefersDarkMode.addEventListener("change", updateTheme);
</script>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>