refactoring

This commit is contained in:
2025-11-10 15:13:04 +01:00
parent 4813a6a47f
commit fa9d50e6f4
2 changed files with 12 additions and 1 deletions

View File

@@ -116,6 +116,11 @@ pre {
button { button {
width: 100%; width: 100%;
} }
.dashboard-summary-card {
position: static;
top: auto;
}
} }
@keyframes dashboard-row-glow { @keyframes dashboard-row-glow {
@@ -136,3 +141,9 @@ pre {
.dashboard-row-highlight { .dashboard-row-highlight {
animation: dashboard-row-glow 2.5s ease forwards; animation: dashboard-row-glow 2.5s ease forwards;
} }
.dashboard-summary-card {
position: sticky;
top: 1rem;
z-index: 10;
}

View File

@@ -95,7 +95,7 @@ const DashboardView = ({
return ( return (
<div className="p-4 max-w-6xl mx-auto bg-white shadow-lg rounded-lg mt-4"> <div className="p-4 max-w-6xl mx-auto bg-white shadow-lg rounded-lg mt-4">
<h1 className="text-2xl font-bold mb-4 text-center text-gray-800">Foodsharing Pickup Manager</h1> <h1 className="text-2xl font-bold mb-4 text-center text-gray-800">Foodsharing Pickup Manager</h1>
<div className="bg-blue-50 border border-blue-100 rounded-lg p-4 mb-4 sticky top-4 z-10 shadow"> <div className="dashboard-summary-card bg-blue-50 border border-blue-100 rounded-lg p-4 mb-4 shadow">
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-4"> <div className="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
<div> <div>
<p className="text-sm uppercase text-blue-600 font-semibold">Angemeldet</p> <p className="text-sm uppercase text-blue-600 font-semibold">Angemeldet</p>