Mit grafischer Auswertung

This commit is contained in:
rxf
2026-03-06 08:51:21 +01:00
parent 1575c4389e
commit 9bce2495b0
7 changed files with 368 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
'use client';
import { useState, useEffect } from 'react';
import Link from 'next/link';
import WerteForm from '@/components/WerteForm';
import WerteList from '@/components/WerteList';
import { WerteEntry } from '@/types/werte';
@@ -84,7 +85,16 @@ export default function Home() {
<main className="max-w-6xl mx-auto border-2 border-black rounded-lg p-6 bg-[#FFFFDD]">
<div className="flex justify-between items-center mb-6">
<h1 className="text-3xl font-bold">Werte - Log</h1>
<LogoutButton className="px-4 py-2 bg-red-600 hover:bg-red-700 text-white text-sm rounded-lg transition-colors shadow-md" />
<div className="flex gap-3 items-center">
<Link
href="/charts"
className="px-4 py-2 text-sm rounded-lg transition-colors shadow-md"
style={{ backgroundColor: '#374151', color: '#ffffff' }}
>
{'Verlauf ->'}
</Link>
<LogoutButton className="px-4 py-2 bg-red-600 hover:bg-red-700 text-white text-sm rounded-lg transition-colors shadow-md" />
</div>
</div>
<div className="mb-8">