# manukotari/manoj-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/manukotari/manoj-portfolio
- Repository: https://github.com/manukotari/manoj-portfolio

## Overview

##### Project Type and Purpose
- This is a single-page, front-end portfolio application built with ReactJS and plain CSS.
- It uses Swiper for sliding components and EmailJS for the contact form.
- Hosted as a static site (Firebase Hosting), serving assets and the React bundle.

##### File Structure Analysis
- Top-level:
- public/ – contains index.html and static assets
- src/ – React source code
- .firebaserc, firebase.json – Firebase hosting configuration
- package.json / package-lock.json – dependencies and scripts
- src/ hierarchy:
- App.js, index.js – application entry points
- components/ – logically grouped UI components (header, footer, home, services, skills, about, projects, qualification, testimonials, contact, scrollup)
- assets/ – static resources (PDF resume, images)
- No backend code – it’s purely client-side with reliance on an external EmailJS API.

##### Insights from README
- Features: responsive layout, fixed navigation, modals, tab panels, slider + pagination, scroll-to-top, contact form.
- Deployment: implied use of Firebase CLI (via firebase.json).

##### Main Components
a. Client Browser
b. Static Hosting (Firebase Hosting)
c. React Application
- Core modules:
· Routing & Navigation (Header, ScrollUp)
· Page Sections (Home, Services, Skills, About, Projects, Qualification, Testimonials, Contact)
· UI Utilities (Swiper slider, Modals, Tab Panels)
- Asset Loader (loads images, PDF, CSS)
d. External Services
- EmailJS API (for sending contact-form emails)
e. Developer / CI (local dev environment, npm build scripts, Firebase CLI)

##### Relationships and Interactions
- Browser requests index.html and JS/CSS bundles from Firebase Hosting.
- React app initializes in the browser, mounts App component.
- User interacts with UI components (clicks nav, scrolls, opens modals, slides content).
- On contact form submission, React uses @emailjs/browser to send an HTTP request to EmailJS.
- Developer triggers npm build → Firebase CLI deploy → updates content on Firebase Hosting.

##### Architectural Patterns and Design Principles
- Component-based architecture: each UI section is a separate React component.
- Unidirectional data flow: React props/state manage component interactions.
- Static hosting pattern: decoupled front end served via CDN (Firebase Hosting).
- API integration: form handling via external EmailJS service.

– Header/Nav, Home, Services, Skills, About, Projects, Qualification, Testimonials, Contact, ScrollUp
5. Assets (images, PDF) as sub-components of the app loaded at runtime.

## Diagram (Mermaid)

```mermaid
flowchart TB
    Dev["Developer / CI"]:::dev
    Hosting["Firebase Hosting"]:::hosting
    Browser["Browser"]:::client

    Dev -->|npm build & firebase deploy| Hosting
    Hosting -->|serve static files| Browser

    subgraph "Browser"
        subgraph "React App" 
            subgraph "UI Components"
                Header["Header / Navigation"]:::client
                Home["Home Section"]:::client
                Services["Services Section"]:::client
                Skills["Skills Section"]:::client
                About["About Section"]:::client
                Projects["Projects Section"]:::client
                Qualification["Qualification Section"]:::client
                Testimonials["Testimonials Section"]:::client
                Contact["Contact Form"]:::client
                ScrollUp["Scroll-Up Utility"]:::client
                Footer["Footer"]:::client
            end
            subgraph "UI Utilities"
                Swiper["Swiper Slider"]:::client
                Modals["Modals & Tab Panels"]:::client
                Icons["React Icons"]:::client
            end
            AssetLoader["Asset Loader (images, PDF)"]:::client
        end
    end

    Contact -->|send email via @emailjs/browser| EmailJS["EmailJS API"]:::external

    classDef client fill:#D0E8FF,stroke:#333,stroke-width:1px
    classDef hosting fill:#D0FFD6,stroke:#333,stroke-width:1px
    classDef external fill:#FFE4B2,stroke:#333,stroke-width:1px
    classDef dev fill:#E0E0E0,stroke:#333,stroke-width:1px

    click Header "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/header/Header.jsx"
    click ScrollUp "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/scrollup/ScrollUp.jsx"
    click Home "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/home/Home.jsx"
    click Services "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/services/Services.jsx"
    click Skills "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/skills/Skills.jsx"
    click About "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/about/About.jsx"
    click Projects "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/projects/Projects.jsx"
    click Qualification "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/qualification/Qualification.jsx"
    click Testimonials "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/testimonials/Testimonials.jsx"
    click Contact "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/contact/Contact.jsx"
    click Footer "https://github.com/manukotari/manoj-portfolio/blob/main/src/components/footer/Footer.jsx"
    click IndexJS "https://github.com/manukotari/manoj-portfolio/blob/main/src/index.js"
    click AppJS "https://github.com/manukotari/manoj-portfolio/blob/main/src/App.js"
    click AssetLoader "https://github.com/manukotari/manoj-portfolio/blob/main/src/assets/MY-Cv.pdf"
```
