# enriquejgilq/portfolio-latest architecture

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

- Interactive diagram: https://gitdiagram.com/enriquejgilq/portfolio-latest
- Repository: https://github.com/enriquejgilq/portfolio-latest

## Overview

##### Main Components
- Frontend Application: Since everything is organized under a src directory and there is an index.html as the root, the entire logic runs on the client side.
- Vite Build System: Represent Vite as a build and bundling tool that handles the dev server (with Hot Module Replacement) and production builds.
- Application Shell & Entry Point: Include “main.jsx” (in src) as the bootstrap for the React application, which mounts the main <App> component (src/App.jsx).
- Public & Assets: The public folder holds static assets (such as fonts) that are directly served, whereas the src/assets directory contains application-specific images or other resources.
- UI Components: These include various modular components (Header, Footer, Logo, Profile, Experience, Pagintor, etc.) housed under src/components. They define the reusable building parts of the UI.
- Pages & Routing: There are specific page components under src/pages (e.g., HomePage, PageDetails, SearchPage/NotFoundResults). These represent different routes or screens in the portfolio, suggesting some form of client-side routing.
- Configuration & Tooling: Include configuration files like package.json, eslint.config.js, postcss.config.js, tailwind.config.js, and vite.config.js that form part of the project’s build, style, and linting setups.

##### Relationships and Interactions
- The entry point (main.jsx) initializes the application and renders <App>, which then coordinates the display of various pages.
- The App component functions as a container where top-level components (like Header and Footer) are rendered persistently along with a dynamic content area that changes as per the active route.
- UI Components: Many components (e.g., AllProjects, Profile, Header, etc.) are children of pages or are integrated into the App component. They pass data among themselves via props or context providers (if applicable).
- Static Assets: The public directory’s content is used as static resources (e.g., fonts) and assets from src/assets are bundled through Vite.
- Styling: Tailwind CSS (configured via tailwind.config.js) is likely used for styling along with component-specific CSS (e.g., logo.css).

##### Architectural Patterns and Design Principles
- Component-Based Architecture: The project follows a modular design with distinct React components and pages.
- Separation of Concerns: UI components are separated from page routing and static assets. Configuration files indicate clear boundaries between code and build/infrastructure details.
- Build and Development Separation: Vite handles both the development process (with HMR) and the production build process.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global System
    ReactApp["React Application (Portfolio – Vite)"]:::app

    %% Entry Point & Application Shell
    indexHtml["index.html"]:::entry
    mainJsx["src/main.jsx"]:::entry
    appJsx["src/App.jsx"]:::appShell

    %% UI Components Subgraph
    subgraph "UI Components"
        Header["Header"]:::component
        Footer["Footer"]:::component
        Logo["Logo"]:::component
        Profile["Profile"]:::component
        Experience["Experience"]:::component
        AllProjects["AllProjects"]:::component
        AllResults["AllResults"]:::component
        PreviewResults["PreviewResults"]:::component
        Paginator["Paginator"]:::component
        Projects["Projects"]:::component
    end

    %% Pages Subgraph
    subgraph "Pages"
        HomePage["Home Page"]:::page
        PageDetails["Page Details"]:::page
        SearchPage["Search Page"]:::page
        NotFound["Not Found Results"]:::page
    end

    %% Assets Subgraph
    subgraph "Assets"
        PublicDir["public folder"]:::assets
        AssetsDir["src/assets"]:::assets
    end

    %% Build & Configuration Subgraph
    subgraph "Build & Configuration"
        Vite["Vite Build System"]:::build
        ESLint["ESLint"]:::build
        Tailwind["Tailwind CSS"]:::build
    end

    %% Relationships between Entry and Shell
    indexHtml --> mainJsx
    mainJsx --> appJsx

    %% App Component Composition: UI Components and Pages
    appJsx --> Header
    appJsx --> Footer
    appJsx --> Logo
    appJsx --> Profile
    appJsx --> Experience
    appJsx --> AllProjects
    appJsx --> AllResults
    appJsx --> PreviewResults
    appJsx --> Paginator
    appJsx --> Projects
    appJsx --> HomePage
    appJsx --> PageDetails
    appJsx --> SearchPage
    appJsx --> NotFound

    %% Assets support the overall Application
    PublicDir -.-> ReactApp
    AssetsDir -.-> ReactApp

    %% Build & Configuration support the Application
    Vite -.-> ReactApp
    ESLint -.-> ReactApp
    Tailwind -.-> ReactApp

    %% Click Events for Entry & Shell
    click indexHtml "https://github.com/enriquejgilq/portfolio-latest/blob/main/index.html"
    click mainJsx "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/main.jsx"
    click appJsx "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/App.jsx"

    %% Click Events for Assets
    click PublicDir "https://github.com/enriquejgilq/portfolio-latest/tree/main/public"
    click AssetsDir "https://github.com/enriquejgilq/portfolio-latest/tree/main/src/assets"

    %% Click Events for UI Components
    click Header "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/Header/Header.jsx"
    click Footer "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/Footer/Footer.jsx"
    click Logo "https://github.com/enriquejgilq/portfolio-latest/tree/main/src/components/Logo"
    click Profile "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/Profile/Profile.jsx"
    click Experience "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/Experience/index.jsx"
    click AllProjects "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/AllProjects/Allprojects.jsx"
    click AllResults "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/AllResults/AllResult.jsx"
    click PreviewResults "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/PreviewResults/PreviewResults.jsx"
    click Paginator "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/Paginator/Paginator.jsx"
    click Projects "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/components/Projects/index.jsx"

    %% Click Events for Pages
    click HomePage "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/pages/Home/HomePage.jsx"
    click PageDetails "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/pages/PageDetails/PageDetails.jsx"
    click SearchPage "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/pages/SearchPage/SearchPage.jsx"
    click NotFound "https://github.com/enriquejgilq/portfolio-latest/blob/main/src/pages/SearchPage/NotFoundResults.jsx"

    %% Click Events for Build & Configuration
    click Vite "https://github.com/enriquejgilq/portfolio-latest/blob/main/vite.config.js"
    click ESLint "https://github.com/enriquejgilq/portfolio-latest/blob/main/eslint.config.js"
    click Tailwind "https://github.com/enriquejgilq/portfolio-latest/blob/main/tailwind.config.js"

    %% Styles and Colors
    classDef app fill:#f9f,stroke:#333,stroke-width:2px;
    classDef entry fill:#bbf,stroke:#333,stroke-width:2px;
    classDef appShell fill:#cdf,stroke:#333,stroke-width:2px;
    classDef component fill:#afa,stroke:#333,stroke-width:2px;
    classDef page fill:#efe,stroke:#333,stroke-width:2px;
    classDef assets fill:#fee,stroke:#333,stroke-width:2px;
    classDef build fill:#ffd,stroke:#333,stroke-width:2px;

    %% Relationship from Global Application Initialization
    ReactApp --> indexHtml
    ReactApp --> mainJsx
    ReactApp --> appJsx
```
