How rkc3000/modern-portfolio works
Project type and purpose
• This is a full-stack Next.js application using React and Tailwind CSS for the frontend, Next.js API routes (serverless functions) for the backend, and Sanity.io as a headless CMS/data store.
• Its primary purpose is to fetch content (page info, experiences, projects, skills, socials) from the Sanity CMS and render a developer portfolio website.
File structure
Top-level directories and files:
• pages/
– pages/index.tsx (entry point)
– pages/_app.tsx (app wrapper)
– pages/api/*.ts (API routes: getExperience, getPageInfo, getProjects, getSkills, getSocials, plus hello)
• components/
– Reusable UI pieces (Header, Hero, About, Skills, Projects, ContactMe, ExperienceCard, ArcReactor, etc.)
• utils/
– fetchXXX.ts (client-side helpers that call either API routes or Sanity directly)
• sanity/
– Sanity Studio configuration (schemas, plugins, config, static assets)
• public/
• styles/
– CSS modules (Home.module.css) and global CSS (globals.css), Tailwind config
• sanity.ts
– Sanity client setup (dataset, project ID, token)
Configuration files:
• next.config.js
• package.json
• postcss.config.js, tailwind.config.js
• tsconfig.json, .eslintrc.json
• .env.example
README for additional insights
• Confirms that the project is bootstrapped with Create-Next-App.
• Mentions Next.js API routes and development commands.