# amruthpillai/resumeontheweb architecture

> Architecture diagram of the GitHub repository amruthpillai/resumeontheweb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/amruthpillai/resumeontheweb
- Repository: https://github.com/amruthpillai/resumeontheweb

## Overview

##### Project Type and Purpose
- This is a Next.js–based personal portfolio/resume website (“Resume on the Web”) built primarily as a statically generated React application (SSG) with optional SSR, styled via Tailwind CSS, and deployed on Vercel.
- Its goal is to showcase personal data (bio, projects, experience) in a modular, component-driven UI.

##### File-Structure Analysis
- Top-level “pages” directory: Next.js routes (`_app.tsx`, `index.tsx`, etc.).
- “components” and “sections”: presentational and layout components. Sections are page-specific containers; components are small, reusable UI building blocks (Button, Header/Ingredients, Navigation, etc.).
- “contexts” and “hooks”: shared cross-cutting concerns (ThemeProvider, window-size hook).
- “data”: static JSON-style data files (projects, certifications, links) used at build time or runtime.
- “services” and “utils”: abstraction for data fetching/manipulation.
- “public”: static assets (images, pre-cached JSON).
- Config files: `next.config.js`, Tailwind, ESLint, TypeScript, PostCSS.

##### Key README Insights
- Built with Next.js and Tailwind CSS.
- Uses SSG/SSR capabilities of Next.js; hosted on Vercel’s CDN.
- Data is bundled at build time; no external DB.
- Illustrates a component-based modern React architecture.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Infrastructure Layer
    subgraph "Infrastructure" 
        direction TB
        Developer["Developer"]:::actor
        CICD["CI/CD Pipeline (Vercel)"]:::infra
        CDN["Vercel CDN"]:::infra
        Developer -->|commit| CICD
        CICD -->|deploy| CDN
    end

    %% Build & Runtime Layer
    subgraph "Build & Runtime" 
        direction TB
        Build["pnpm install → next build"]:::build
        SSR["Next.js Serverless Functions"]:::infra
        CICD -->|build| Build
        Build -->|artifacts| CDN
        CDN -->|request dynamic| SSR
    end

    %% Browser Layer
    subgraph "Client (Browser)" 
        direction TB
        Browser["Browser"]:::actor
        Browser -->|request| CDN
        Browser -->|hydrate React App| ReactApp
    end

    %% Application Layer
    subgraph "React Application" 
        direction TB
        ReactApp["React App"]:::app
        
        subgraph "Pages (Next.js Routes)" 
            direction TB
            AppPage["_app.tsx"]:::page
            DocPage["_document.tsx"]:::page
            IndexPage["index.tsx"]:::page
        end

        subgraph "Sections (Feature Modules)" 
            direction TB
            SAboutMe["AboutMe.tsx"]:::section
            SAboutRotW["AboutRotW.tsx"]:::section
            SAchievements["Achievements.tsx"]:::section
            SBlog["Blog.tsx"]:::section
            SCertifications["Certifications.tsx"]:::section
            SContact["Contact.tsx"]:::section
            SDesigns["Designs.tsx"]:::section
            SEducation["Education.tsx"]:::section
            SFooter["Footer.tsx"]:::section
            SHeader["Header.tsx"]:::section
            SLanguages["Languages.tsx"]:::section
            SMusic["Music.tsx"]:::section
            SPhilanthropy["Philantrophy.tsx"]:::section
            SPhotography["Photography.tsx"]:::section
            SProjects["Projects.tsx"]:::section
            SResume["Resume.tsx"]:::section
            SSkills["Skills.tsx"]:::section
            SWorkExp["WorkExperience.tsx"]:::section
            SIndex["index.tsx"]:::section
        end

        subgraph "UI Components" 
            direction TB
            CButton["Button.tsx"]:::component
            CHeading["Heading.tsx"]:::component
            CImageLink["ImageLink.tsx"]:::component
            CInput["Input.tsx"]:::component
            CNav["Navigation.tsx"]:::component
            CNoSSR["NoSSR.tsx"]:::component
            CIngredients["Header/Ingredients.tsx"]:::component
            CPhotoWall["Header/PhotoWall.tsx"]:::component
            CProfiles["Header/Profiles.tsx"]:::component
        end

        subgraph "State & Logic" 
            direction TB
            Context["ThemeProvider.tsx"]:::component
            Hook["useWindowDimensions.tsx"]:::component
            Service["services/index.tsx"]:::component
            Utils["utils/index.tsx"]:::component
        end

        ReactApp --> PagesGroup
        ReactApp --> Sections
        ReactApp --> Components
        ReactApp --> StateLogic
    end

    %% Data & Assets Layer
    subgraph "Static Data & Assets"
        direction TB
        DataFiles["data/"]:::data
        PublicAssets["public/"]:::data
    end

    Build -->|bundles data| DataFiles
    Build -->|bundles assets| PublicAssets
    Components -->|import data| DataFiles
    Components -->|load images| PublicAssets

    Browser -->|fetch bundles| CDN

    %% Click Events for Files
    click AppPage "https://github.com/amruthpillai/resumeontheweb/blob/main/pages/_app.tsx"
    click DocPage "https://github.com/amruthpillai/resumeontheweb/blob/main/pages/_document.tsx"
    click IndexPage "https://github.com/amruthpillai/resumeontheweb/blob/main/pages/index.tsx"
    click SAboutMe "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/AboutMe.tsx"
    click SAboutRotW "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/AboutRotW.tsx"
    click SAchievements "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Achievements.tsx"
    click SBlog "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Blog.tsx"
    click SCertifications "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Certifications.tsx"
    click SContact "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Contact.tsx"
    click SDesigns "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Designs.tsx"
    click SEducation "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Education.tsx"
    click SFooter "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Footer.tsx"
    click SHeader "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Header.tsx"
    click SLanguages "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Languages.tsx"
    click SMusic "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Music.tsx"
    click SPhilanthropy "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Philantrophy.tsx"
    click SPhotography "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Photography.tsx"
    click SProjects "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Projects.tsx"
    click SResume "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Resume.tsx"
    click SSkills "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/Skills.tsx"
    click SWorkExp "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/WorkExperience.tsx"
    click SIndex "https://github.com/amruthpillai/resumeontheweb/blob/main/sections/index.tsx"
    click CButton "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Button.tsx"
    click CHeading "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Heading.tsx"
    click CImageLink "https://github.com/amruthpillai/resumeontheweb/blob/main/components/ImageLink.tsx"
    click CInput "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Input.tsx"
    click CNav "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Navigation.tsx"
    click CNoSSR "https://github.com/amruthpillai/resumeontheweb/blob/main/components/NoSSR.tsx"
    click CIngredients "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Header/Ingredients.tsx"
    click CPhotoWall "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Header/PhotoWall.tsx"
    click CProfiles "https://github.com/amruthpillai/resumeontheweb/blob/main/components/Header/Profiles.tsx"
    click Context "https://github.com/amruthpillai/resumeontheweb/blob/main/contexts/ThemeProvider.tsx"
    click Hook "https://github.com/amruthpillai/resumeontheweb/blob/main/hooks/useWindowDimensions.tsx"
    click Service "https://github.com/amruthpillai/resumeontheweb/blob/main/services/index.tsx"
    click Utils "https://github.com/amruthpillai/resumeontheweb/blob/main/utils/index.tsx"

    %% Styles
    classDef infra fill:#bbdefb,stroke:#2196f3,color:#000
    classDef build fill:#c8e6c9,stroke:#4caf50,color:#000
    classDef app fill:#fff9c4,stroke:#fbc02d,color:#000
    classDef data fill:#ffe0b2,stroke:#fb8c00,color:#000
    classDef actor fill:#e3f2fd,stroke:#90caf9,color:#000
    classDef page component
    classDef section component
    classDef component component
    classDef StateLogic component
```
