Skip to content

A minimal, pixel-perfect dev portfolio, component registry, and blog.

License

Notifications You must be signed in to change notification settings

ncdai/chanhdai.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,050 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal, pixel-perfect dev portfolio, component registry, and blog to showcase my work as a Design Engineer.

→ Check out the live site: chanhdai.com

screenshot-dark screenshot-light

Overview

Stack

  • Next.js 16
  • Tailwind CSS v4
  • shadcn/ui

Featured

  • Clean & modern design
  • Light/Dark themes
  • vCard integration
  • SEO optimized (JSON-LD schema, sitemap, robots)
  • AI-ready with /llms.txt
  • Spam-protected email
  • Installable as PWA
  • Analytics with PostHog and OpenPanel
  • Consent management via c15t

Blog

  • Supports MDX & Markdown
  • Raw .mdx endpoints for AI readability
  • Syntax highlighting for clear code presentation
  • Dynamic OG images for rich link previews
  • RSS feed for easy content distribution

Registry

Easily build and distribute reusable components, hooks, and pages using a custom registry powered by the shadcn CLI.

Each entry is well-documented and includes:

  • Live preview & code snippets
  • Beautiful, readable code blocks
  • One-click command blocks (pnpm, npm, yarn, bun)

Analytics

User behavior tracking with PostHog and OpenPanel to understand how visitors interact with the site:

  • Copy events - Track code & command copies
  • Engagement - Monitor name pronunciation plays, command menu usage
  • Search behavior - Analyze search queries (debounced)
  • User actions - Navigation, theme changes, content interactions
  • Screen views - Automatic page view tracking (OpenPanel)

Built with privacy in mind:

  • Consent management via c15t
  • Cookieless mode until consent
  • Production-only tracking
  • Type-safe event schema with Zod
  • Dual analytics setup for redundancy and comprehensive insights

Development

Please refer to the Development Guide for more details.

License

Licensed under the MIT license.

You're free to use my code! Just make sure to remove all my personal information before publishing your website. It's awesome to see my code being useful to someone!

Contributors

Contributors

Made with contrib.rocks

Sponsors

This project is proudly supported by:

shadcnstudio.com shadcnstudio.com Shadcn Space Shadcn Space
Shadcraft Shadcraft UI Rules UI Rules
React Bits React Bits OpenPanel OpenPanel

Found this project useful? Sponsor me to help with support and maintenance.

Stats

Stats

Star History

Star History

Acknowledgments

About

A minimal, pixel-perfect dev portfolio, component registry, and blog.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project