Skip to content

kud/referrals

Repository files navigation

Next.js TypeScript Tailwind CSS Notion MIT

Premium referral codes platform with animated money-themed UI

Website Β· Documentation

Features

  • Payment-card tiles β€” each referral is displayed as a premium card with a chip, contactless icon, and the code formatted as a card number, with muted per-category colour gradients.
  • One-click copy and redirect β€” clicking a card copies the code to the clipboard, triggers a celebratory toast and coin-burst animation, then redirects to the referral link after a 3-second countdown.
  • Category pill filtering β€” filter by finance, food, home, ride-hailing, tech, or travel using pill buttons; the grid reflows fluidly.
  • Notion as a headless CMS β€” referral data lives in a Notion database; adding or updating a code requires no code change or redeploy.
  • Server-side ISR β€” the homepage is a Next.js App Router Server Component with a 1-hour revalidation window, so pages load instantly with no client-side fetch.
  • Money-themed UI β€” floating bill animations, a coin-burst on copy, and a full-screen animated hero set the mood.

Install

git clone https://github.com/kud/referrals.git
cd referrals
npm install
cp .env.sample .env

Edit .env and set your Notion credentials:

NOTION_API_KEY=your_notion_integration_api_key
NOTION_DATABASE_ID=your_notion_database_id

Notion database schema

Create a Notion database with these properties:

Property Type Description
name Title Service or platform name
code Text Referral code
url URL Referral link
type Select Category (finance, food, …)

Usage

npm run dev    # development server with Turbopack
npm run build  # production build
npm run start  # start production server
npm run lint   # lint

Open http://localhost:3000.

Development

git clone https://github.com/kud/referrals.git
cd referrals
npm install
npm run dev

πŸ“š Full documentation β†’ referrals/docs

About

All my referrals codes. Powered by next.js on @vercel and @makenotion as API. πŸ™ŒπŸ»

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors