How karolczaq/portfolio works
Project type and purpose
• This is a full-stack, content-driven web application built with Next.js (App Router).
• It serves as a personal/portfolio site that fetches project and skill data from a headless CMS (Sanity).
• The “/admin” route likely hosts the Sanity Studio for content management, while the rest of the site is statically and server-side rendered for visitors.
File structure
• Top-level:
• next.config.ts, tsconfig.json, ESlint/postcss configs – build and linting setup.
• public/ – static assets and images.
• sanity.config.ts + src/sanity/… – configuration and schemas for Sanity CMS.
• Source code under src/:
• src/app/ – Next.js App Router pages and API routes.
– app/page.tsx, layout.tsx – entry points for SSR/SSG.
– app/api/getProjects/route.ts & getSkills/route.ts – server functions exposing “/api” endpoints.
– app/admin/page.tsx – embedded Sanity Studio or admin UI.
• src/components/ – reusable React components (Navbar, Projects, Skills, etc.).
• src/hooks/ – custom hooks for scroll, mobile detection, UI stages.
• src/lib/ & src/utils/ – helper functions, constants, social links.
README for additional insights
• Standard create-next-app boilerplate; no custom architecture docs.
• Deployment target is Vercel (implies serverless functions for API routes and static hosting for the public folder).