How aniprogramer/engineering-archive works
1. Overall shape
This repository is a single-page portfolio/archive site built with Next.js App Router, React, and TypeScript. The architecture is presentation-heavy and content-driven: one route renders a composed landing page made from reusable section components.
2. Routing and application shell
src/app/layout.tsx and src/app/globals.css define the global shell, fonts/styles, and base document structure. src/app/page.tsx is the main entry point that assembles the full homepage from the section components.
3. Content vs. presentation boundary
src/data/portfolio.ts centralizes portfolio content. This is the key architectural boundary: project/experience/skills/contact data is separated from the UI, making the page largely a renderer of structured content rather than hardcoded markup.
4. Page composition
The page is built from discrete archive sections in src/components/sections/: Hero, About, Experience, Projects, Skills, and Contact. These are likely arranged sequentially to create the narrative flow of the portfolio.
5. Layout primitives
src/components/layout/ contains the reusable framing elements: Navbar, Footer, and Section. These define page-wide navigation, consistent section spacing/structure, and the persistent top/bottom chrome around the content.
6. Shared UI building blocks
src/components/ui/ holds the cross-cutting interaction and presentation primitives: Button, SectionHeading, SocialIcons, CustomCursor, and Magnetic. These are used across multiple sections to keep styling and interaction patterns consistent.
7. Interaction layer
src/hooks/useMagnetic.ts and the Magnetic component indicate a small custom interaction system for pointer-responsive elements. CustomCursor suggests a global cursor replacement or enhancement, which is part of the site’s signature UX rather than a content concern.
8. Hero subsystem
The hero area is split into Hero.tsx and HeroPortrait.tsx, which implies a layered intro composed of text plus a specialized portrait treatment. This is the most visually distinct part of the site and likely depends on assets in public/images.
9. Section-specific subsystems
Projects, Experience, and Skills are separate feature sections rather than generic lists. That suggests each one has its own internal layout logic and presentation rules, even though they likely consume the same centralized portfolio data.
10. Static assets
The public/ directory contains image assets and resume.pdf. These are served directly by Next.js and function as static deliverables: visual media for the archive and a downloadable resume artifact.
11. Utilities and support code
src/lib/utils.ts provides shared helper logic, likely for class composition or small presentation utilities. This is the only shared non-UI code area visible in the tree, so the repo remains intentionally lightweight.
12. Styling and build boundary
The repo uses a standard Next.js frontend toolchain with Tailwind/PostCSS and TypeScript config files at the root. There is no application backend, database, or API layer in the tree; despite the broader tech-stack wording in the README, the checked-in architecture is a frontend portfolio site with static content and client-side interactions.
13. Architecture diagram takeaway
The right mental model is: App shell → page assembly → section components → shared UI primitives, with portfolio content in src/data and assets in public/. Most complexity is in the interaction and visual layer, not in data processing or server-side systems.
Main entry points: page.tsx Home Page · Hero.tsx Hero · Contact.tsx Contact · portfolio.ts Portfolio Data
Components 23
App Shell
Next.js route shell and global styling
- Root Layout · Defines the global document shell and wraps the app
src/app/layout.tsx - Global Styles · Global styling and theme foundation
src/app/globals.css - Home Page · Main route that composes the landing page
src/app/page.tsx
Content Model
Structured portfolio data and static deliverables
- Portfolio Data · Central structured content for projects, experience, skills, and contact
src/data/portfolio.ts - Images · Portfolio imagery served as static assets
public/images - Resume PDF · Downloadable resume artifact
public/resume.pdf
Page Sections
Composed narrative sections on the homepage
- Navbar · Top-level navigation and page framing
src/components/layout/Navbar.tsx - Footer · Bottom page chrome and closing links
src/components/layout/Footer.tsx - Section · Consistent section spacing and anchors
src/components/layout/Section.tsx - Hero · Primary landing introduction with text and visual emphasis
src/components/sections/Hero.tsx - Portrait · Specialized portrait treatment for the hero area
src/components/sections/HeroPortrait.tsx - About · Narrative background section
src/components/sections/About.tsx - Experience · Career and history section
src/components/sections/Experience.tsx - Projects · Project archive and showcase section
src/components/sections/Projects.tsx - Skills · Capabilities and tools section
src/components/sections/Skills.tsx - Contact · Reach-out and social contact section
src/components/sections/Contact.tsx
Shared UI
Reusable presentation and interaction primitives
- Button · Reusable call-to-action control
src/components/ui/Button.tsx - Section Heading · Shared section title treatment
src/components/ui/SectionHeading.tsx - Social Icons · Reusable social/contact icon set
src/components/ui/SocialIcons.tsx - Custom Cursor · Global cursor enhancement for the site experience
src/components/ui/CustomCursor.tsx - Magnetic · Pointer-responsive wrapper for interactive elements
src/components/ui/Magnetic.tsx
Support
Utility and hook layer
- useMagnetic · Hook supporting magnetic pointer interaction
src/hooks/useMagnetic.ts - Utils · Shared lightweight utility helpers
src/lib/utils.ts
Connections 34
- Root Layout → Global Styles: loads · Global shell includes base styling
- Root Layout → Home Page: wraps · App layout contains the home route content
- Home Page → Navbar: assembles · Page composes top navigation
- Home Page → Hero: assembles · Page starts with the hero section
- Home Page → About: assembles · Page includes the about section
- Home Page → Experience: assembles · Page includes the experience section
- Home Page → Projects: assembles · Page includes the projects section
- Home Page → Skills: assembles · Page includes the skills section
- Home Page → Contact: assembles · Page ends with the contact section
- Home Page → Footer: assembles · Page closes with footer chrome
- Hero → Portrait: contains · Hero uses a dedicated portrait component
- Hero → Portfolio Data: reads · Hero text can be driven by shared portfolio content
- About → Section: uses · About is framed by the shared section wrapper
- Experience → Section: uses · Experience uses the shared section wrapper
- Projects → Section: uses · Projects uses the shared section wrapper
- Skills → Section: uses · Skills uses the shared section wrapper
- Contact → Section: uses · Contact uses the shared section wrapper
- About → Section Heading: uses · Section heading pattern keeps titles consistent
- Experience → Section Heading: uses · Section heading pattern keeps titles consistent
- Projects → Section Heading: uses · Section heading pattern keeps titles consistent
- Skills → Section Heading: uses · Section heading pattern keeps titles consistent
- Contact → Section Heading: uses · Section heading pattern keeps titles consistent
- Contact → Social Icons: uses · Contact section presents social links
- Hero → Button: uses · Hero likely features primary calls to action
- Button → Magnetic: enhanced by · Buttons can use the magnetic interaction wrapper
- Magnetic → useMagnetic: backs · Component is supported by the custom hook
- Custom Cursor → useMagnetic: shares interaction model · Cursor and magnetic effects belong to the same interaction layer
- Hero → Images: uses · Hero visual relies on static imagery
- Projects → Portfolio Data: reads · Projects are rendered from centralized portfolio data
- Experience → Portfolio Data: reads · Experience content comes from structured data
- Skills → Portfolio Data: reads · Skills content comes from structured data
- Contact → Portfolio Data: reads · Contact details are centralized in data
- Home Page → Custom Cursor: enables · Page can mount the custom cursor globally
- Utils → Button: supports · Shared helpers likely support UI class composition