# mohammadnawawra2003/mohammad-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mohammadnawawra2003/mohammad-portfolio
- Repository: https://github.com/mohammadnawawra2003/mohammad-portfolio

## Overview

##### Project type and purpose
- This is a single‐page, static portfolio website built with React, Tailwind CSS, and Framer Motion.
- It is intended to showcase Mohammad’s profile, experience sections (Home, About, Education, Experience, Skills, Contact), and provide a downloadable CV.

##### File structure
- Top level:
- index.html – SPA entry point
- MohammadAlnawawrehCV.pdf – downloadable resume
- README.md – project documentation
- assets/ folder:
- index-*.css – bundled Tailwind CSS styles
- index-*.js – bundled React/Framer Motion code
- (Plus any image files, e.g. profile photos, favicon.ico in deployment)
- There is no backend code—everything is pre‐built and served as static files.

##### README for additional insights
- Deployment target: any static host (Netlify, GitHub Pages, S3/CloudFront).
- Mobile-first, responsive design with modern typographic focus.

a. Main components:
– Client (Web Browser)
– CDN or Static Web Host (e.g., Netlify/Vercel/S3 + CloudFront)
– Static Asset Store (HTML, CSS, JS, PDF, images)
b. Relationships & interactions:
1) Browser requests index.html from CDN/Host
2) CDN serves index.html → Browser parses & loads
3) Browser fetches index-*.js and index-*.css from CDN
4) React app renders sections and triggers smooth-scrolling, animations via Framer Motion
5) When user clicks “Download CV,” browser GETs MohammadAlnawawrehCV.pdf from CDN
c. Architectural patterns & design principles:
– Single‐Page Application (SPA)
– Static site hosting (no server-side logic)
– Asset bundling and cache busting (hashed filenames)
– Responsive, component-driven UI
d. Key technologies & frameworks:
– React (UI), Framer Motion (animations)
– Tailwind CSS (utility classes)
– Vite (local dev server, build tool)

- Blue for runtime components (Browser, CDN)
- Green for static assets (HTML/CSS/JS/PDF)
- Orange for build-time tools (Vite, npm)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Runtime Components
    Browser["Web Browser\n(React + Framer Motion)"]:::runtime

    %% Build-time Components
    subgraph "Build Process"
        Developer["Developer"]:::build
        npm["npm (React, Tailwind, Framer Motion)"]:::build
        vite["Vite Build Tool"]:::build
    end

    %% Static Assets
    subgraph "Static Assets"
        html["index.html"]:::asset
        css["index-Ca8IaDmg.css"]:::asset
        js["index-wsjBv_8e.js"]:::asset
        pdf["MohammadAlnawawrehCV.pdf"]:::asset
        readme["README.md"]:::asset
    end

    %% CDN / Hosting
    cdn["CDN / Static Host\n(Netlify/Vercel/S3+CloudFront)"]:::runtime

    %% Flows
    Developer -->|"runs"| npm
    npm -->|"build step"| vite
    vite -->|"produces"| html
    vite -->|"produces"| css
    vite -->|"produces"| js
    vite -->|"produces"| pdf

    html --> cdn
    css --> cdn
    js --> cdn
    pdf --> cdn
    readme --> cdn

    Browser -->|"GET index.html"| cdn
    cdn -->|"200 + index.html\nCache-Control: max-age"| Browser

    Browser -->|"GET index-Ca8IaDmg.css"| cdn
    cdn -->|"200 + CSS"| Browser

    Browser -->|"GET index-wsjBv_8e.js"| cdn
    cdn -->|"200 + JS"| Browser

    Browser -->|"Download CV\nGET MohammadAlnawawrehCV.pdf"| cdn
    cdn -->|"200 + PDF"| Browser

    %% Click Events
    click html "https://github.com/mohammadnawawra2003/mohammad-portfolio/blob/main/index.html"
    click css "https://github.com/mohammadnawawra2003/mohammad-portfolio/blob/main/assets/index-Ca8IaDmg.css"
    click js "https://github.com/mohammadnawawra2003/mohammad-portfolio/blob/main/assets/index-wsjBv_8e.js"
    click pdf "https://github.com/mohammadnawawra2003/mohammad-portfolio/blob/main/MohammadAlnawawrehCV.pdf"
    click readme "https://github.com/mohammadnawawra2003/mohammad-portfolio/blob/main/README.md"

    %% Styles
    classDef runtime fill:#bbdefb,stroke:#0288d1,color:#000
    classDef build fill:#ffe0b2,stroke:#fb8c00,color:#000
    classDef asset fill:#c8e6c9,stroke:#2e7d32,color:#000
```
