WIP: dark mode Modale

This commit is contained in:
ISA
2025-09-08 15:12:38 +02:00
parent c8ec763aac
commit 27c60c6742
7 changed files with 28 additions and 19 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.875 NEXT_PUBLIC_APP_VERSION=1.6.876
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.875 NEXT_PUBLIC_APP_VERSION=1.6.876
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.876] 2025-09-08
- WIP: dark mode Baugrüppenträger sttus
---
## [1.6.875] 2025-09-08 ## [1.6.875] 2025-09-08
- WIP: dark mode - WIP: dark mode

View File

@@ -119,19 +119,23 @@ function KabelueberwachungView() {
return ( return (
<div> <div>
<div className="mb-4"> <div className="mb-4">
{[1, 2, 3, 4].map((rack) => ( {[1, 2, 3, 4].map((rack) => {
const isActive = Number(activeRack) === Number(rack);
return (
<button <button
key={rack} key={rack}
onClick={() => changeRack(rack)} onClick={() => changeRack(rack)}
className={`mr-2 ${ aria-pressed={isActive}
Number(activeRack) === Number(rack) className={`mr-2 px-2 py-1 rounded-sm text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-accent/50 ${
? "bg-littwin-blue text-white p-1 rounded-sm" isActive
: "bg-gray-300 p-1 text-sm" ? "btn-primary"
: "btn-muted text-fg-muted hover:text-fg"
}`} }`}
> >
Rack {rack} Rack {rack}
</button> </button>
))} );
})}
</div> </div>
<div className="flex flex-row space-x-8 xl:space-x-0 2xl:space-x-8 qhd:space-x-16 ml-[5%] mt-[5%]"> <div className="flex flex-row space-x-8 xl:space-x-0 2xl:space-x-8 qhd:space-x-16 ml-[5%] mt-[5%]">
{( {(

View File

@@ -2,7 +2,7 @@
"win_da_state": [ "win_da_state": [
1, 1,
1, 1,
1, 0,
1 1
], ],
"win_da_bezeichnung": [ "win_da_bezeichnung": [

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.875", "version": "1.6.876",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.875", "version": "1.6.876",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^5.1.0", "@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4", "@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.875", "version": "1.6.876",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3000", "dev": "next dev -p 3000",