littwin-blue in digitale Ausgänge Schalter

This commit is contained in:
ISA
2025-02-24 11:25:59 +01:00
parent 6be431469c
commit 62f0305e3a
3 changed files with 17 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ const GeneralSettings = () => {
</div>
<button
type="button"
className="bg-gray-500 text-white px-3 py-1 rounded text-xs"
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
onClick={() => handleSetDateTime()}
>
Setzen
@@ -129,33 +129,42 @@ const GeneralSettings = () => {
/>
</div>
<div className="col-span-2 flex items-center gap-2">
<label className="block text-xs font-medium">NTP Aktiv:</label>
<input
id="ntpActive"
type="checkbox"
className="peer hidden"
checked={active}
onChange={(e) => setActive(e.target.checked)}
/>
<label
htmlFor="ntpActive"
className="w-5 h-5 border-2 border-gray-300 rounded cursor-pointer flex items-center justify-center
peer-checked:bg-littwin-blue peer-checked:border-littwin-blue peer-checked:text-white"
>
</label>
<span className="text-xs font-medium">NTP Aktiv</span>
</div>
{/* ✅ Buttons */}
<div className="col-span-2 flex justify-between mt-2">
<button
type="button"
className="bg-blue-500 text-white px-3 py-1 rounded text-xs"
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
onClick={() => handleReboot()}
>
Neustart
</button>
<button
type="button"
className="bg-red-500 text-white px-3 py-1 rounded text-xs"
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
onClick={() => handleClearDatabase()}
>
Datenbank leeren
</button>
<button
type="button"
className="bg-green-500 text-white px-3 py-1 rounded text-xs"
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
onClick={() =>
handleSubmit(
{