# sgtslaughter1/my-portfolio architecture

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

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

## Overview

#### Purpose and Runtime
Single-page React portfolio for Habeeb Abdulsalam, presenting developer identity, experience, skills, projects, certificates, and contact information. It runs as a Vite client application; production output is static assets suitable for CDN/static hosting. Core entry documents are `index.html`, `src/main.jsx`, and `src/App.jsx`.

#### Application Composition
`src/App.jsx` is the page orchestrator: it composes the portfolio’s vertically ordered sections and global interaction elements. There is no indicated backend, router, API layer, authentication, or persistent data store; portfolio content is embedded in React components.

Primary sections are grounded in:
- `src/components/Home.jsx`
- `src/components/About.jsx`
- `src/components/Experience.jsx`
- `src/components/Skills.jsx`
- `src/components/Portfolio.jsx`
- `src/components/Certificates.jsx`
- `src/components/Contact.jsx`

#### Navigation and Page-Level Interaction
`src/components/Navbar.jsx` provides navigation across in-page sections, making anchor/scroll positioning the primary navigation boundary rather than route transitions. `src/components/ScrollToTop.jsx` supplies page-level scroll recovery, while `src/components/CustomCursor.jsx` adds a global pointer interaction layer.

#### Motion System
GSAP is the dedicated animation runtime, used for hero reveals, staggered content entrance, and scroll-driven effects. Animation behavior is centralized where reusable in `src/utils/gsap-animations.js`, while section-specific lifecycle integration resides in components such as `src/components/Home.jsx` and `src/components/Experience.jsx`.

The experience view is a significant responsive boundary: its pinned scrolling timeline is intended for desktop behavior and is managed using GSAP ScrollTrigger/media-query capabilities.

#### Portfolio and Content Presentation
`src/components/Portfolio.jsx` owns the project-gallery stage and delegates individual project rendering to `src/components/PortfolioCard.jsx`. This separates collection-level layout/animation orchestration from reusable card presentation. Certificates are rendered separately by `src/components/Certificates.jsx`, with static certificate media under `public/assets/certificates`.

#### Styling and Design System
`src/index.css` is the global styling boundary: it establishes fluid `clamp()` typography/spacing, CSS design tokens, responsive behavior, dark/cyan visual identity, glassmorphism, and shared interaction styles. Components combine this custom CSS system with Bootstrap 5 layout/UI facilities; Bootstrap Icons provide iconography.

#### Delivery and External Surfaces
Vite configuration in `vite.config.js` controls local development and production bundling. Static public-facing files—including crawl/discovery artifacts and Google verification—are served directly from `public/robots.txt`, `public/sitemap.xml`, and `public/googlec3e5371e97d2aae4.html`. No external runtime services are identified beyond browser-loaded frontend dependencies and static hosting.

Main entry points: [`src/App.jsx`](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/App.jsx) (Page orchestrator), [`src/main.jsx`](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/main.jsx) (React bootstrap), [`src/components/Navbar.jsx`](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Navbar.jsx) (Anchor navigation), [`src/components/Home.jsx`](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Home.jsx) (Home hero)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Client runtime"]
  node_html["HTML entry<br/>document<br/>[index.html]"]
  node_main["React bootstrap<br/>React entry<br/>[main.jsx]"]
  node_app["Page orchestrator<br/>React app<br/>[App.jsx]"]
end

subgraph group_sections["Portfolio sections"]
  node_home["Home hero<br/>section<br/>[Home.jsx]"]
  node_about["About<br/>section<br/>[About.jsx]"]
  node_experience["Experience timeline<br/>responsive section<br/>[Experience.jsx]"]
  node_skills["Skills<br/>section<br/>[Skills.jsx]"]
  node_portfolio["Project gallery<br/>section<br/>[Portfolio.jsx]"]
  node_portfolio_card["Project card<br/>reusable component<br/>[PortfolioCard.jsx]"]
  node_certificates["Certificates<br/>section<br/>[Certificates.jsx]"]
  node_contact["Contact<br/>section<br/>[Contact.jsx]"]
end

subgraph group_presentation["Presentation systems"]
  node_navbar["Anchor navigation<br/>global component<br/>[Navbar.jsx]"]
  node_scroll_top["Scroll to top<br/>global component<br/>[ScrollToTop.jsx]"]
  node_cursor["Custom cursor<br/>global component<br/>[CustomCursor.jsx]"]
  node_motion["GSAP animations<br/>motion utilities<br/>[gsap-animations.js]"]
  node_styles["Global design system<br/>CSS<br/>[index.css]"]
end

subgraph group_delivery["Build and static delivery"]
  node_vite{{"Vite build<br/>build configuration<br/>[vite.config.js]"}}
  node_static_assets["Public static artifacts<br/>static files<br/>[robots.txt]"]
end

node_html -->|"loads"| node_main
node_main -->|"mounts"| node_app
node_main -->|"loads"| node_styles
node_app -->|"renders"| node_navbar
node_app -->|"composes"| node_home
node_app -->|"composes"| node_about
node_app -->|"composes"| node_experience
node_app -->|"composes"| node_skills
node_app -->|"composes"| node_portfolio
node_app -->|"composes"| node_certificates
node_app -->|"composes"| node_contact
node_app -->|"renders"| node_scroll_top
node_app -->|"renders"| node_cursor
node_navbar -.->|"anchors to"| node_home
node_navbar -.->|"anchors to sections"| node_contact
node_portfolio -->|"renders"| node_portfolio_card
node_home -->|"uses"| node_motion
node_experience -->|"uses ScrollTrigger"| node_motion
node_certificates -->|"uses certificate media"| node_static_assets
node_vite -->|"builds entry"| node_html
node_vite -->|"serves directly"| node_static_assets

click node_html "https://github.com/sgtslaughter1/my-portfolio/blob/master/index.html"
click node_main "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/main.jsx"
click node_app "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/App.jsx"
click node_home "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Home.jsx"
click node_about "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/About.jsx"
click node_experience "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Experience.jsx"
click node_skills "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Skills.jsx"
click node_portfolio "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Portfolio.jsx"
click node_portfolio_card "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/PortfolioCard.jsx"
click node_certificates "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Certificates.jsx"
click node_contact "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Contact.jsx"
click node_navbar "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Navbar.jsx"
click node_scroll_top "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/ScrollToTop.jsx"
click node_cursor "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/CustomCursor.jsx"
click node_motion "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/utils/gsap-animations.js"
click node_styles "https://github.com/sgtslaughter1/my-portfolio/blob/master/src/index.css"
click node_vite "https://github.com/sgtslaughter1/my-portfolio/blob/master/vite.config.js"
click node_static_assets "https://github.com/sgtslaughter1/my-portfolio/blob/master/public/robots.txt"

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_html,node_main,node_app toneBlue
class node_home,node_about,node_experience,node_skills,node_portfolio,node_portfolio_card,node_certificates,node_contact toneAmber
class node_navbar,node_scroll_top,node_cursor,node_motion,node_styles toneMint
class node_vite,node_static_assets toneRose
```

## Components

### Client runtime

Browser-rendered single-page portfolio.

- [HTML entry](https://github.com/sgtslaughter1/my-portfolio/blob/master/index.html): document · `index.html`
- [React bootstrap](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/main.jsx): React entry · `src/main.jsx`
- [Page orchestrator](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/App.jsx): React app · Composes global elements and ordered portfolio sections. · `src/App.jsx`

### Portfolio sections

Vertically ordered content views composed by the app.

- [Home hero](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Home.jsx): section · `src/components/Home.jsx`
- [About](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/About.jsx): section · `src/components/About.jsx`
- [Experience timeline](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Experience.jsx): responsive section · Desktop pinned timeline uses scroll-triggered motion. · `src/components/Experience.jsx`
- [Skills](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Skills.jsx): section · `src/components/Skills.jsx`
- [Project gallery](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Portfolio.jsx): section · Owns project collection layout and animation. · `src/components/Portfolio.jsx`
- [Project card](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/PortfolioCard.jsx): reusable component · `src/components/PortfolioCard.jsx`
- [Certificates](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Certificates.jsx): section · `src/components/Certificates.jsx`
- [Contact](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Contact.jsx): section · `src/components/Contact.jsx`

### Presentation systems

Shared navigation, interaction, styling, and motion.

- [Anchor navigation](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/Navbar.jsx): global component · Navigates to in-page section anchors. · `src/components/Navbar.jsx`
- [Scroll to top](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/ScrollToTop.jsx): global component · `src/components/ScrollToTop.jsx`
- [Custom cursor](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/components/CustomCursor.jsx): global component · `src/components/CustomCursor.jsx`
- [GSAP animations](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/utils/gsap-animations.js): motion utilities · Reusable reveal, stagger, and scroll animation behavior. · `src/utils/gsap-animations.js`
- [Global design system](https://github.com/sgtslaughter1/my-portfolio/blob/master/src/index.css): CSS · Tokens, responsive layout, glass styling, and shared interactions. · `src/index.css`

### Build and static delivery

Vite bundles the client app and serves public artifacts.

- [Vite build](https://github.com/sgtslaughter1/my-portfolio/blob/master/vite.config.js): build configuration · Controls development and production bundling. · `vite.config.js`
- [Public static artifacts](https://github.com/sgtslaughter1/my-portfolio/blob/master/public/robots.txt): static files · Certificate media plus robots, sitemap, and Google verification files. · `public/robots.txt`

## Connections

- HTML entry → React bootstrap: loads
- React bootstrap → Page orchestrator: mounts
- React bootstrap → Global design system: loads
- Page orchestrator → Anchor navigation: renders
- Page orchestrator → Home hero: composes
- Page orchestrator → About: composes
- Page orchestrator → Experience timeline: composes
- Page orchestrator → Skills: composes
- Page orchestrator → Project gallery: composes
- Page orchestrator → Certificates: composes
- Page orchestrator → Contact: composes
- Page orchestrator → Scroll to top: renders
- Page orchestrator → Custom cursor: renders
- Anchor navigation → Home hero: anchors to
- Anchor navigation → Contact: anchors to sections
- Project gallery → Project card: renders
- Home hero → GSAP animations: uses
- Experience timeline → GSAP animations: uses ScrollTrigger
- Certificates → Public static artifacts: uses certificate media
- Vite build → HTML entry: builds entry
- Vite build → Public static artifacts: serves directly
