Files
omsorg/omsorgapp/src/modules/home/HomePage.jsx
T
Felix KemmlerandClaude Sonnet 5 99b5e07390 Add birthday reminder widget to omsorgapp dashboard (FR-MA-7)
Also fixes date-input fields on the employee form (dateOfBirth/entryDate/
exitDate) to convert the generated client's Date objects into the
"YYYY-MM-DD" string <input type="date"> expects — needed for the widget's
birthday calculation and previously left the fields blank on edit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-10 20:45:19 +02:00

68 lines
1.9 KiB
React

import { Plus, Building2, CalendarPlus, Calculator } from "lucide-react";
import OmsorgCard from "../../components/OmsorgCard";
import OmsorgButton from "../../components/ui/OmsorgButton";
import HomeStats from "./HomeStats";
import OmsorgBadge from "../../components/ui/OmsorgBadge";
import FollowUpWidget from "./FollowUpWidget";
import OrderStatusWidget from "./OrderStatusWidget";
import BirthdayWidget from "./BirthdayWidget";
export default function HomePage() {
return (
<>
<OmsorgCard>
<h2>
Willkommen bei
<span className="accent">
{" "}Omsorg Business Controls Pro
</span>
</h2>
<p>
Schön, dass ihr heute wieder da seid.
Hier beginnt euer Arbeitstag.
</p>
</OmsorgCard><div className="badge-test-row">
<OmsorgBadge status="aktiv" />
<OmsorgBadge status="einsatz" />
<OmsorgBadge status="urlaub" />
<OmsorgBadge status="krank" />
<OmsorgBadge status="vertrag" />
</div>
<HomeStats />
<section className="dashboard-grid home-grid">
<FollowUpWidget />
<OrderStatusWidget />
<BirthdayWidget />
<OmsorgCard title="Schnellaktionen">
<div className="home-actions">
<OmsorgButton icon={Plus}>
Neuer Mitarbeiter
</OmsorgButton>
<OmsorgButton
variant="secondary"
icon={Building2}
>
Neue Einrichtung
</OmsorgButton>
<OmsorgButton
variant="secondary"
icon={CalendarPlus}
>
Neuer Auftrag
</OmsorgButton>
<OmsorgButton
variant="secondary"
icon={Calculator}
>
Neue Kalkulation
</OmsorgButton>
</div>
</OmsorgCard>
</section>
</>
);
}