Phase 2 and Demo

This commit is contained in:
2026-05-02 20:14:15 -05:00
parent d909cb7c30
commit 056bd27f89
36 changed files with 3867 additions and 299 deletions
@@ -1,14 +1,45 @@
/**
* Bidder profile paddle number, contact info, digital paddle QR, notifications prefs.
* Bidder profile paddle number, contact info, digital paddle QR, notification prefs.
* TODO: fetch /api/bidders/me, render paddle QR code.
*/
import { useAuthStore, bidderName } from "../../store/auth.js";
export default function ProfilePage() {
const bidder = useAuthStore((s) => s.bidder);
const logout = useAuthStore((s) => s.logout);
return (
<main className="p-4 space-y-4">
<h1 className="text-xl font-bold">Profile</h1>
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
Profile & digital paddle not yet implemented
<div className="p-4 space-y-4 animate-fade-in">
{/* Profile header */}
{bidder && (
<div className="card p-5 flex items-center gap-4">
<div className="w-14 h-14 rounded-full bg-brand-100 flex items-center justify-center text-brand-700 text-2xl font-black flex-shrink-0">
{bidder.firstName.charAt(0).toUpperCase()}
</div>
<div className="flex-1 min-w-0">
<p className="font-bold text-gray-900 truncate">{bidderName(bidder)}</p>
<p className="text-sm text-gray-400 truncate">{bidder.email ?? bidder.phone}</p>
{bidder.paddleNumber && (
<p className="text-xs text-brand-700 font-semibold mt-0.5">
Paddle #{bidder.paddleNumber}
</p>
)}
</div>
</div>
)}
{/* Digital paddle placeholder */}
<div className="card p-8 text-center text-gray-400 text-sm border-dashed border-2 border-gray-200 bg-gray-50/50">
Digital paddle QR code not yet implemented
</div>
</main>
{/* Sign out */}
<button
onClick={logout}
className="btn-ghost w-full text-red-500 border-red-200 hover:bg-red-50"
>
Sign out
</button>
</div>
);
}