Back to Blog

Claude Code Built My Portfolio in 5 Minutes — Next.js + Tailwind CSS from One Prompt

By Ayyaz Zafar
Developer portfolio built by Claude Code AI with Next.js and Tailwind CSS

Watch the Full Build

What if you could build an entire developer portfolio — Next.js, Tailwind CSS, fully responsive, dark mode, animations — from a single prompt? In under 5 minutes?

I started with an empty folder. No boilerplate, no templates. Just Claude Code and one detailed prompt. Here's what happened.

The One Prompt

The key to getting good results from AI is giving it a detailed prompt. I asked Claude Code to create a modern developer portfolio website using Next.js and Tailwind CSS, with specific sections and features.

One prompt. That's it.

What Claude Code Built

Claude Code worked through the entire project automatically, asking for permission at each step:

Project Setup

It created a Next.js project with TypeScript and Tailwind CSS. I switched it to pnpm for faster dependency installation — npm was taking too long.

Component Architecture

Claude Code created a clean component structure under src/components/:

  • Navbar — responsive navigation with mobile menu animation
  • Hero — clean, bold landing section
  • About — with hover effects and professional styling
  • Projects — card layout with hover animations
  • Skills — each skill changes color with animation on hover
  • Contact — form with clean layout, fully responsive

It also set up global CSS, the layout file, and built the production version successfully on the first try.

The Result

A fully professional portfolio with:

  • Clean, modern design with consistent color scheme
  • Smooth hover effects and animations throughout
  • Fully responsive — mobile layout doesn't break at all
  • Animated mobile menu icon
  • Professional contact form

The Real Power: Iterating with One Sentence

Building it is impressive. But the real power is changing it.

I asked Claude Code: "Add a floating navigation bar that changes background on scroll. Also add a dark/light mode toggle button."

One sentence. It reviewed the existing files, edited the components, and delivered:

  • Floating navbar — semi-transparent, changes color on scroll, stays visible at top
  • Dark/light mode toggle — all colors update based on current mode

The design in both modes looks professional. Not a quick hack — proper dark mode with coordinated colors throughout.

What Makes This Work

The key is the prompt quality. A vague "build me a portfolio" would give mediocre results. A detailed prompt describing sections, features, and design expectations gives Claude Code enough context to make good architectural decisions.

The other key: Claude Code writes files in parallel when it can. It didn't create components one by one in sequence — it wrote multiple files simultaneously, which is why the whole build took under 5 minutes.

The Numbers

Manual development: 2-4 hours for a comparable portfolio with responsive design, dark mode, and animations.

Claude Code: Under 5 minutes from empty folder to running website.

No templates. No boilerplate. Just one prompt and iterative refinement.

Related Articles

Share this article

Claude Code Built My Portfolio in 5 Minutes — Next.js + Tailwind CSS from One Prompt | AyyazTech