Update admin theme/layout and refresh README details.
Align the project baseline with the latest admin interface styling and layout structure while documenting setup and usage updates in README.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Compton platform by Organic Tech" />
|
||||
<link rel="stylesheet" href="/main/css/tokens.css" />
|
||||
<style>
|
||||
html.admin-route,
|
||||
html.admin-route body {
|
||||
background: #f6f6f4;
|
||||
margin: 0;
|
||||
}
|
||||
html.admin-route[data-admin-theme="dark"],
|
||||
html.admin-route[data-admin-theme="dark"] body {
|
||||
background: #1f2229;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
if (/^\/admin(\/|$)/.test(location.pathname)) {
|
||||
document.documentElement.classList.add("admin-route");
|
||||
if (localStorage.getItem("wespAdminTheme") === "dark") {
|
||||
document.documentElement.setAttribute("data-admin-theme", "dark");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<title>Compton</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user