diff --git a/README.md b/README.md index 050e774..6aec5b0 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,19 @@ Fociz is een compleet, modern webplatform gebouwd in **PHP 8 & MariaDB** voor da --- +## 🚦 Omgevingsindicator (Dev vs Live) + +In de linkerbovenhoek van elk scherm bevindt zich een opvallende flashy badge met live radar-ping animatie: +- **Development (Rood)**: Knippert rood met de tekst `DEVELOPMENT (DEV)` zodat u direct ziet dat u op de test/dev omgeving werkt. +- **Live (Groen)**: Knippert groen met de tekst `LIVE (MAIN)` voor de productie-omgeving. + +### Hoe in te stellen per omgeving: +In het bestand **`includes/env_badge.php`**: +- **Op DEV**: `$environment = 'development';` *(staat standaard al zo ingesteld)* +- **Op MAIN / LIVE**: `$environment = 'live';` *(of zet `APP_ENV="live"` in `.env`)* + +--- + ## 🚀 Kernmodules 1. **Dagplanning & Focus (`/planner.php`)**: diff --git a/auth/invite.php b/auth/invite.php index c8d05f2..ed8d8d3 100644 --- a/auth/invite.php +++ b/auth/invite.php @@ -108,6 +108,8 @@ $pageTitle = "Fociz — Uitnodiging Accepteren"; + +
diff --git a/auth/login.php b/auth/login.php index d0a697a..60e4328 100644 --- a/auth/login.php +++ b/auth/login.php @@ -121,6 +121,8 @@ $pageTitle = "Fociz — Inloggen"; + +
diff --git a/auth/setup.php b/auth/setup.php index 93caa89..a5b1ecd 100644 --- a/auth/setup.php +++ b/auth/setup.php @@ -92,6 +92,8 @@ $pageTitle = "Fociz — Eerste Initialisatie"; + +
diff --git a/includes/env_badge.php b/includes/env_badge.php new file mode 100644 index 0000000..6e7fcd3 --- /dev/null +++ b/includes/env_badge.php @@ -0,0 +1,69 @@ + + + +
+ + +
+ + + + + + + + Live + + + +
+ + +
+ + + + + + + + Development + + + +
+ +
+ diff --git a/includes/header.php b/includes/header.php index 1a2e3d7..ebc807a 100644 --- a/includes/header.php +++ b/includes/header.php @@ -45,15 +45,19 @@ $currentPage = basename($_SERVER['PHP_SELF']); ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #475569; } - + +
- -
+ +