How sandeepvashishtha/portfolio works
Project Type and Purpose
• The project is a personal portfolio website built using Next.js, Tailwind CSS, and TypeScript.
• Its main purpose is to showcase skills, projects, experiences, and to allow visitors to contact the site owner via a built-in form.
• It’s primarily a frontend web application with minimal backend functionality (e.g., a contact API endpoint).
Analyzing the File Structure
• Top-Level Files: Notice configuration files such as .env.example, next.config.js, package.json, and styling-related config files like tailwind.config.ts and postcss.config.js. These indicate custom settings for the Next.js project and styling conventions.
• Public Directory: Used to store static assets like images or other resources required by the website.
• Source Directory – src/app:
⁃ Contains the application’s entry point (page.tsx), global layout (layout.tsx), and providers setup (providers.tsx).
⁃ Contains an “api” subdirectory, indicating the inclusion of server-side API routes – for example, the contact API endpoint in src/app/api/contact/route.ts.
⁃ Contains a “components” directory that houses various UI components (e.g., About.tsx, Hero.tsx, Header components, Projects, Skills, etc.). This separation hints at a modular component-based architecture typical in Next.js applications.
⁃ Additional utilities and libraries (e.g., src/app/lib/motion.ts) support UI animations or other helper functions.