102 lines
3.8 KiB
JavaScript
102 lines
3.8 KiB
JavaScript
import React from "react";
|
|
import { Icon } from "@iconify/react"; // Für Iconify Icons
|
|
|
|
function Kue705FO({
|
|
isolationswert,
|
|
schleifenwiderstand,
|
|
modulName,
|
|
kueVersion,
|
|
}) {
|
|
return (
|
|
<div className="relative bg-gray-300 w-[116px] h-[390px] border border-gray-400">
|
|
{/* Hauptkörper - Linker Bereich */}
|
|
<div className="absolute top-[1.352px] left-[1.352px] w-[113.202px] h-[242.492px] bg-littwin-blue border-[1.5px] border-gray-400"></div>
|
|
|
|
{/* Innenrahmen weiß */}
|
|
<div className="absolute top-[3.375px] left-[3.375px] w-[109.125px] h-[238.5px] border-[3px] border-white"></div>
|
|
|
|
{/* Rechte Spalte */}
|
|
<div className="absolute top-[3.375px] right-0 w-[37.5px] h-[238.5px] border-[3px] border-white"></div>
|
|
|
|
{/* Oberer kleiner Block in der rechten Spalte */}
|
|
<div className="absolute top-[3.375px] right-0 w-[37.5px] h-[37.052px] border-[3px] border-white"></div>
|
|
|
|
{/* Text KÜ705-FO */}
|
|
<h3 className="absolute top-[19.871px] left-[25.541px] text-white font-bold text-[9px]">
|
|
KÜ705-FO
|
|
</h3>
|
|
|
|
{/* Modulname und Version */}
|
|
<div className="absolute top-[220px] left-[10px] text-white text-[8px]">
|
|
<p>Version: {kueVersion}</p>
|
|
</div>
|
|
|
|
{/* Isolationswert */}
|
|
<div className="absolute top-[100px] left-[10px] text-white text-[8px]">
|
|
<p>Isolationswert: </p>
|
|
<p>{isolationswert} kOhm</p>
|
|
</div>
|
|
|
|
{/* Kabelüberwachung-Modul-Name */}
|
|
<div className="absolute top-[130px] left-[10px] text-white text-[8px]">
|
|
<p>ModulName: {modulName}</p>
|
|
</div>
|
|
{/* Schleifenwiderstand */}
|
|
<div className="absolute top-[270px] left-[10px] text-white text-[8px]">
|
|
<p>Schleifenwiderstand: {schleifenwiderstand} kOhm</p>
|
|
</div>
|
|
|
|
{/* Unterer Bereich - Schleifenwiderstand und Messkurve */}
|
|
<div className="absolute bottom-1 left-[1.095px] w-[113.182px] h-[130px] bg-gray-300 border-[1.5px] border-gray-400 p-1">
|
|
<span className="text-black text-[6px] absolute top-[2px] left-1 mt-1">
|
|
Schleifenwiderstand [kOhm]
|
|
</span>
|
|
{/* Schleifenwiderstand Anzeige */}
|
|
<div className="relative w-full h-[45px] bg-gray-100 border border-gray-400 flex items-center justify-center mt-3">
|
|
{/* Icon rechts oben */}
|
|
<button
|
|
onClick={() => console.log("Refresh clicked")}
|
|
className="absolute -top-1 -right-1 w-[20px] h-[20px] bg-gray-400 flex items-center justify-center"
|
|
>
|
|
<span className="text-white text-[18px]">⟳</span>
|
|
</button>
|
|
|
|
{/* Wertanzeige */}
|
|
<div className="absolute bottom-[5px] left-1/2 transform -translate-x-1/2">
|
|
{/* Schleifenwiderstand */}
|
|
<div className=" top-[220px] left-[10px] text-black text-[10px]">
|
|
<p>{schleifenwiderstand} kOhm</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Schleife und TDR Buttons nebeneinander */}
|
|
<div className="flex mt-2 space-x-1">
|
|
<button
|
|
onClick={() => console.log("Schleife clicked")}
|
|
className="w-[50%] h-[25px] bg-littwin-blue text-white text-[10px] flex items-center justify-center"
|
|
>
|
|
Schleife
|
|
</button>
|
|
<button
|
|
onClick={() => console.log("TDR clicked")}
|
|
className="w-[50%] h-[25px] bg-gray-400 text-white text-[10px] flex items-center justify-center"
|
|
>
|
|
TDR
|
|
</button>
|
|
</div>
|
|
|
|
{/* Messkurve Button */}
|
|
<button
|
|
onClick={() => console.log("Messkurve clicked")}
|
|
className="w-full h-[25px] bg-littwin-blue text-white text-[10px] flex items-center justify-center mt-1"
|
|
>
|
|
Messkurve
|
|
</button>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Kue705FO;
|