# ahamedamansoor/portfolio architecture

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

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

## Overview

#### Purpose and runtime
This is a static personal portfolio single-page application, built with React, TypeScript, Vite, Tailwind/PostCSS, and deployed through Firebase Hosting. Its content includes portfolio sections and a downloadable CV at `public/Ahamed Mansoor Cv.pdf`.

#### Application entry and build boundary
Vite serves and bundles the application from `index.html`, which loads the React bootstrap at `src/main.tsx`. The root React composition is `src/App.tsx`; production output is committed under `dist/index.html` and Firebase’s generated hosting snapshot under `.firebase/portfolio-mansoor/hosting/index.html`.

#### Root composition and navigation flow
`src/App.tsx` is the control point for assembling page content, global layout, navigation, and animation-oriented UI. Navigation is implemented as in-page section traversal rather than a router-based page system, with `src/components/Navigation.tsx` targeting sections rendered by the page modules. `src/components/Layout.tsx` provides the shared page shell.

#### Portfolio content stages
The primary content is divided into independently rendered portfolio sections:
- Landing/introduction: `src/pages/Home.tsx`
- Biography/profile: `src/pages/About.tsx`
- Skills presentation: `src/pages/Skills.tsx`
- Work/project portfolio: `src/pages/Projects.tsx`
- Awards or achievements: `src/pages/Recognitions.tsx`
- Contact details/action area: `src/pages/Contact.tsx`

These modules are likely orchestrated by `src/App.tsx` and wrapped into consistently addressable sections.

#### Shared section and interaction primitives
`src/components/Section.tsx` establishes the reusable content-section boundary used by the page modules. Visual and interaction behavior is factored into reusable components: `src/components/PageTransition.tsx` for staged rendering/animation, `src/components/TypewriterText.tsx` for animated text, and `src/components/CursorFollower.tsx` plus `src/components/ParticlesBackground.tsx` for global decorative pointer/background effects. These are presentation-layer components, not external-service boundaries.

#### Styling and asset flow
Global styles originate in `src/index.css`; Tailwind configuration is in `tailwind.config.js`, with PostCSS processing configured by `postcss.config.js`. Static public files are served directly from `public`, while bundled CSS and JavaScript are emitted to `dist` during Vite builds. The existing Firebase artifact includes bundled assets at `.firebase/portfolio-mansoor/hosting/assets/index-DLITUGHL.js` and `.firebase/portfolio-mansoor/hosting/assets/index-BZnSGysH.css`.

#### Deployment infrastructure
Firebase is the material external platform. `firebase.json` defines Hosting deployment behavior, `.firebaserc` selects the Firebase project, and `apphosting.yaml` indicates Firebase App Hosting configuration may also be present. `.env` is available for runtime/build environment values, though no backend, API client, database, or authentication implementation appears in the supplied tree.

Main entry points: [`src/App.tsx`](https://github.com/ahamedamansoor/portfolio/blob/main/src/App.tsx) (App composition), [`src/components/Section.tsx`](https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Section.tsx) (Section primitive), [`src/pages/Contact.tsx`](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Contact.tsx) (Contact), [`index.html`](https://github.com/ahamedamansoor/portfolio/blob/main/index.html) (Vite HTML entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["React application"]
  node_main["React bootstrap<br/>React entry<br/>[main.tsx]"]
  node_app_root["App composition<br/>React root<br/>[App.tsx]"]
  node_layout["Shared layout<br/>page shell<br/>[Layout.tsx]"]
  node_navigation["Section navigation<br/>in-page navigation<br/>[Navigation.tsx]"]
  node_section["Section primitive<br/>content boundary<br/>[Section.tsx]"]
  node_effects["Animation effects<br/>presentation components"]
end

subgraph group_content["Portfolio sections"]
  node_home["Home<br/>portfolio section<br/>[Home.tsx]"]
  node_about["About<br/>portfolio section<br/>[About.tsx]"]
  node_skills["Skills<br/>portfolio section<br/>[Skills.tsx]"]
  node_projects["Projects<br/>portfolio section<br/>[Projects.tsx]"]
  node_recognitions["Recognitions<br/>portfolio section<br/>[Recognitions.tsx]"]
  node_contact["Contact<br/>portfolio section<br/>[Contact.tsx]"]
  node_cv["Downloadable CV<br/>public asset"]
end

subgraph group_build["Build and styling"]
  node_html["Vite HTML entry<br/>entry document<br/>[index.html]"]
  node_styles["Global styles<br/>Tailwind CSS input<br/>[index.css]"]
  node_vite_build{{"Vite build<br/>bundler"}}
  node_dist["Production bundle<br/>static output<br/>[index.html]"]
end

subgraph group_hosting["Firebase hosting"]
  node_firebase{{"Firebase Hosting<br/>deployment platform<br/>[firebase.json]"}}
  node_hosting_snapshot["Hosting snapshot<br/>deployed static artifact<br/>[index.html]"]
end

node_html -->|"loads"| node_main
node_main -->|"mounts"| node_app_root
node_app_root -->|"composes"| node_layout
node_app_root -->|"renders"| node_navigation
node_navigation -->|"traverses"| node_section
node_app_root -->|"renders"| node_effects
node_app_root -->|"renders"| node_home
node_app_root -->|"renders"| node_about
node_app_root -->|"renders"| node_skills
node_app_root -->|"renders"| node_projects
node_app_root -->|"renders"| node_recognitions
node_app_root -->|"renders"| node_contact
node_home -->|"uses"| node_section
node_about -->|"uses"| node_section
node_skills -->|"uses"| node_section
node_projects -->|"uses"| node_section
node_recognitions -->|"uses"| node_section
node_contact -->|"uses"| node_section
node_contact -->|"offers download"| node_cv
node_html -->|"build input"| node_vite_build
node_styles -->|"processed by"| node_vite_build
node_vite_build -->|"emits"| node_dist
node_dist -->|"deployed to"| node_firebase
node_firebase -->|"generates"| node_hosting_snapshot

click node_html "https://github.com/ahamedamansoor/portfolio/blob/main/index.html"
click node_main "https://github.com/ahamedamansoor/portfolio/blob/main/src/main.tsx"
click node_app_root "https://github.com/ahamedamansoor/portfolio/blob/main/src/App.tsx"
click node_layout "https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Layout.tsx"
click node_navigation "https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Navigation.tsx"
click node_section "https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Section.tsx"
click node_home "https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Home.tsx"
click node_about "https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/About.tsx"
click node_skills "https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Skills.tsx"
click node_projects "https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Projects.tsx"
click node_recognitions "https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Recognitions.tsx"
click node_contact "https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Contact.tsx"
click node_cv "https://github.com/ahamedamansoor/portfolio/blob/main/public/Ahamed%20Mansoor%20Cv.pdf"
click node_styles "https://github.com/ahamedamansoor/portfolio/blob/main/src/index.css"
click node_dist "https://github.com/ahamedamansoor/portfolio/blob/main/dist/index.html"
click node_firebase "https://github.com/ahamedamansoor/portfolio/blob/main/firebase.json"
click node_hosting_snapshot "https://github.com/ahamedamansoor/portfolio/blob/main/.firebase/portfolio-mansoor/hosting/index.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_app_root,node_layout,node_navigation,node_section,node_effects toneBlue
class node_home,node_about,node_skills,node_projects,node_recognitions,node_contact,node_cv toneAmber
class node_html,node_styles,node_vite_build,node_dist toneMint
class node_firebase,node_hosting_snapshot toneRose
```

## Components

### React application

- [React bootstrap](https://github.com/ahamedamansoor/portfolio/blob/main/src/main.tsx): React entry · `src/main.tsx`
- [App composition](https://github.com/ahamedamansoor/portfolio/blob/main/src/App.tsx): React root · Assembles layout, navigation, sections, and global effects. · `src/App.tsx`
- [Shared layout](https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Layout.tsx): page shell · `src/components/Layout.tsx`
- [Section navigation](https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Navigation.tsx): in-page navigation · Targets addressable portfolio sections without a router. · `src/components/Navigation.tsx`
- [Section primitive](https://github.com/ahamedamansoor/portfolio/blob/main/src/components/Section.tsx): content boundary · `src/components/Section.tsx`
- **Animation effects**: presentation components · Transitions, typewriter text, cursor follower, and particle background.

### Portfolio sections

- [Home](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Home.tsx): portfolio section · `src/pages/Home.tsx`
- [About](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/About.tsx): portfolio section · `src/pages/About.tsx`
- [Skills](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Skills.tsx): portfolio section · `src/pages/Skills.tsx`
- [Projects](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Projects.tsx): portfolio section · `src/pages/Projects.tsx`
- [Recognitions](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Recognitions.tsx): portfolio section · `src/pages/Recognitions.tsx`
- [Contact](https://github.com/ahamedamansoor/portfolio/blob/main/src/pages/Contact.tsx): portfolio section · `src/pages/Contact.tsx`
- [Downloadable CV](https://github.com/ahamedamansoor/portfolio/blob/main/public/Ahamed%20Mansoor%20Cv.pdf): public asset · `public/Ahamed Mansoor Cv.pdf`

### Build and styling

- [Vite HTML entry](https://github.com/ahamedamansoor/portfolio/blob/main/index.html): entry document · `index.html`
- [Global styles](https://github.com/ahamedamansoor/portfolio/blob/main/src/index.css): Tailwind CSS input · `src/index.css`
- **Vite build**: bundler · Bundles React and processed CSS into static output.
- [Production bundle](https://github.com/ahamedamansoor/portfolio/blob/main/dist/index.html): static output · `dist/index.html`

### Firebase hosting

- [Firebase Hosting](https://github.com/ahamedamansoor/portfolio/blob/main/firebase.json): deployment platform · Hosts the static portfolio artifact. · `firebase.json`
- [Hosting snapshot](https://github.com/ahamedamansoor/portfolio/blob/main/.firebase/portfolio-mansoor/hosting/index.html): deployed static artifact · `.firebase/portfolio-mansoor/hosting/index.html`

## Connections

- Vite HTML entry → React bootstrap: loads
- React bootstrap → App composition: mounts
- App composition → Shared layout: composes
- App composition → Section navigation: renders
- Section navigation → Section primitive: traverses
- App composition → Animation effects: renders
- App composition → Home: renders
- App composition → About: renders
- App composition → Skills: renders
- App composition → Projects: renders
- App composition → Recognitions: renders
- App composition → Contact: renders
- Home → Section primitive: uses
- About → Section primitive: uses
- Skills → Section primitive: uses
- Projects → Section primitive: uses
- Recognitions → Section primitive: uses
- Contact → Section primitive: uses
- Contact → Downloadable CV: offers download
- Vite HTML entry → Vite build: build input
- Global styles → Vite build: processed by
- Vite build → Production bundle: emits
- Production bundle → Firebase Hosting: deployed to
- Firebase Hosting → Hosting snapshot: generates
