TBP.DEV
Available for work
Back to projects

Projects

Défi de Con

Daily challenge platform with streak tracking, leaderboards, and admin dashboard. Built with Next.js and Supabase.

Défi de Con

About this project

Défi de Con is a gamified daily-challenge platform built on Next.js (App Router with Server Components and Server Actions), React, and Supabase (PostgreSQL with Row Level Security, Auth, and Storage). Each challenge defines its own dynamic input fields — number, duration, text, date, boolean, file, image — and progressive date-anchored targets, with a draft → active → finished lifecycle driven by a Vercel cron job running daily at 01:00. The gamification layer awards points per submission with streak bonuses, unlockable badges across categories, and live leaderboards. The dashboard renders 14-day activity charts via Recharts, weekly comparison widgets, and canvas-confetti celebrations. An admin panel handles challenge CRUD, user management, badge configuration, manual value adjustments, and Excel export. Forms use Zod with React Hook Form, dates use date-fns, toasts come from Sonner, and the dark UI is styled with Tailwind in a brutal fitness-gaming aesthetic with neon green and orange accents.