diff --git a/README.md b/README.md
index f1ba479..8e54b37 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ A community-driven web application for tracking winter road conditions and icy h
1. **Clone the repository:**
```bash
- git clone git@github.com:deco/ice.git
+ git clone git@git.deco.sh:deco/ice.git
cd ice
```
@@ -89,7 +89,7 @@ PORT=3000
2. **Deploy your application:**
```bash
- git clone git@github.com:deco/ice.git /opt/ice
+ git clone git@git.deco.sh:deco/ice.git /opt/ice
cd /opt/ice
npm install # This automatically builds CSS via postinstall
```
@@ -149,7 +149,7 @@ MIT License - see LICENSE file for details
## Support
This is a community safety tool. For issues or questions:
-- Create a GitHub issue
+- Create an issue on our git repository
- Check existing documentation
- Review security guidelines
diff --git a/public/admin.html b/public/admin.html
index 2250b26..c39c699 100644
--- a/public/admin.html
+++ b/public/admin.html
@@ -11,7 +11,12 @@
// Apply theme immediately to prevent flash
(function() {
const savedTheme = localStorage.getItem('theme') || 'auto';
- document.documentElement.setAttribute('data-theme', savedTheme);
+ if (savedTheme === 'auto') {
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
+ document.documentElement.setAttribute('data-theme', prefersDark ? 'dark' : 'light');
+ } else {
+ document.documentElement.setAttribute('data-theme', savedTheme);
+ }
})();
@@ -162,6 +167,8 @@
+
+