A portfolio is the most personal project you'll ever build. Here's how I approached mine using the modern toolchain I use daily.
Why Vite over Create React App
CRA is effectively deprecated. Vite starts in under 300ms, has native ESM support, and the HMR is instant. The config is minimal:
npm create vite@latest portfolio -- --template react-ts
cd portfolio
npm installProject Structure
src/
components/ # Reusable UI pieces
pages/ # Route-level components
sections/ # Page sections (hero, about, etc.)
data/ # JSON data files
hooks/ # Custom React hooks
lib/ # UtilitiesTailwind CSS Setup
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p`tailwind.config.js`:
export default {
content: ['./index.html', './src/**/*.{ts,tsx}'],
theme: {
extend: {
fontFamily: {
display: ['Syne', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
colors: {
primary: '#3B82F6',
dark: '#050505',
},
},
},
plugins: [],
};Animations with Framer Motion and GSAP
I use Framer Motion for component-level transitions and GSAP for scroll-driven sequences. They don't conflict if you scope GSAP with `useGSAP`:
import { useGSAP } from '@gsap/react';
useGSAP(() => {
gsap.from('.hero-title', {
y: 80,
opacity: 0,
duration: 1.2,
ease: 'power4.out',
});
}, { scope: containerRef });SEO with react-helmet-async
import { Helmet } from 'react-helmet-async';
function SEO({ title, description }) {
return (
<Helmet>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<script type="application/ld+json">
{JSON.stringify(personSchema)}
</script>
</Helmet>
);
}Routing with React Router v6
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
const router = createBrowserRouter([
{ path: '/', element: <Home /> },
{ path: '/about', element: <About /> },
{ path: '/projects', element: <Projects /> },
{ path: '/contact', element: <Contact /> },
]);Deployment
I deploy to shared hosting via rsync through GitHub Actions (more on that in another post). The build output is just static files — `npm run build` produces a `dist/` folder ready to serve.
What I'd Do Differently
I'd reach for shadcn/ui earlier instead of building components from scratch. And I'd set up the `generate-sitemap.mjs` script from day one rather than adding it later.
Conclusion
Vite + React + TypeScript + Tailwind is the stack I recommend for any portfolio or landing page in 2026. Fast to build, fast to run, and zero lock-in.