init frontend
This commit is contained in:
27
AceJobAgency.client/index.html
Normal file
27
AceJobAgency.client/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user