This folder contains a lightweight Next.js 15 front-end prototype for the Medici peer-to-peer scholarships platform.
It lets donors discover verified students, pledge any amount of USDC, and walk through a mock checkout flow—all ready to plug into the on-chain program.
- Browse & search — Grid of student cards with filter placeholders.
- Student profile pages — Funding progress, documents and “Back Student” CTA.
- Pledge flow — Amount entry, wallet-connect stub and success screen.
- Reusable component library — shadcn/ui + Tailwind for buttons, cards, tabs, etc.
- Type-safe scaffolding — TypeScript strict mode, ready for zod validation.
app/ # App-router pages (home, browse, student, pledge)
components/ # Shared UI components (shadcn wrappers)
hooks/ # Small React hooks
utils/ # sample-data.ts (placeholder students)
public/ # Static assets (logos, photos)
tailwind.config.ts # Custom design tokens / breakpoints
next.config.js # Next.js settings
package.json # Scripts & dependencies
pnpm install # or bun install
pnpm dev # runs localhost:3000The UI currently uses mock data and a MetaMask-style wallet shim.
To connect it to the contract sdk, replace the wallet logic in app/pledge/[id]/page.tsx with the components exported in the Medici contract wrapper repo.
- Integrate contract wrapper + USDC transfer
- Swap mock data for live on-chain or API reads
- Add zod validation and form handling
- Playwright E2E tests for the donor journey