# hanchantrea38/portlofio_hct architecture

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

- Interactive diagram: https://gitdiagram.com/hanchantrea38/portlofio_hct
- Repository: https://github.com/hanchantrea38/portlofio_hct

## Overview

This repository implements a personal portfolio website. A visitor enters through the React app, navigates among the home, biography, education, projects, gallery, and contact pages, and can browse project and gallery content or reach the contact page. The app shell also provides shared navigation, theme state, and visual effects; reusable reveal and typing behavior sit underneath the presentation components. Relationships are based on the supplied excerpts and SOURCE INDEX; unsampled page details and integrations are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/App.jsx) (App router), [`src/components/ScrollReveal.jsx`](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ScrollReveal.jsx) (Scroll reveal), [`src/pages/Home.jsx`](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Home.jsx) (Home page), [`src/components/Hero.jsx`](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Hero.jsx) (Hero section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App runtime"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["App router<br/>[App.jsx]"]
  node_theme["Theme state<br/>[ThemeContext.jsx]"]
end

subgraph group_pages["Portfolio pages"]
  node_home["Home page<br/>[Home.jsx]"]
  node_about["About page<br/>[About.jsx]"]
  node_education["Education page<br/>[Education.jsx]"]
  node_projects["Projects page<br/>[Projects.jsx]"]
  node_gallery["Gallery page<br/>[Gallery.jsx]"]
  node_contact["Contact page<br/>[Contact.jsx]"]
end

subgraph group_showcase["Content showcase"]
  node_projectdata["Project catalog<br/>[projects.js]"]
  node_gallerydata["Gallery catalog<br/>[gallery.js]"]
  node_hero["Hero section<br/>[Hero.jsx]"]
  node_featured["Featured projects"]
  node_skills["Skills preview<br/>[SkillsPreview.jsx]"]
  node_values["Value cards<br/>[ValueCards.jsx]"]
  node_projectcard["Project card<br/>[ProjectCard.jsx]"]
end

subgraph group_shared["Shared presentation"]
  node_header["Site header<br/>[Header.jsx]"]
  node_footer["Site footer<br/>[Footer.jsx]"]
  node_scrollreveal["Scroll reveal<br/>[ScrollReveal.jsx]"]
  node_scrollhook["Reveal observer<br/>[useScrollReveal.js]"]
  node_themebutton["Theme toggle<br/>[ThemeToggle.jsx]"]
  node_typing["Typing effect<br/>[TypingEffect.jsx]"]
  node_typinghook["Typing hook<br/>[useTypingEffect.js]"]
  node_counter["Animated counter"]
  node_magnetic["Magnetic button<br/>[MagneticButton.jsx]"]
  node_canvas["Canvas particles"]
  node_cursor["Custom cursor<br/>[CustomCursor.jsx]"]
  node_skip["Skip link<br/>[SkipLink.jsx]"]
  node_progress["Scroll progress<br/>[ScrollProgress.jsx]"]
  node_backtotop["Back to top<br/>[BackToTop.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"provides theme"| node_theme
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_education
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_gallery
node_app -->|"routes to"| node_contact
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_canvas
node_app -->|"renders"| node_cursor
node_app -->|"renders"| node_skip
node_app -->|"renders"| node_progress
node_app -->|"renders"| node_backtotop
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_values
node_home -->|"renders"| node_featured
node_home -->|"renders"| node_skills
node_projects -->|"reads"| node_projectdata
node_projects -->|"renders"| node_projectcard
node_gallery -->|"reads"| node_gallerydata
node_hero -->|"renders"| node_typing
node_hero -->|"renders"| node_counter
node_hero -->|"renders"| node_magnetic
node_typing -->|"uses"| node_typinghook
node_header -->|"renders"| node_themebutton
node_header -->|"reads"| node_theme
node_themebutton -->|"uses"| node_theme
node_scrollreveal -->|"uses"| node_scrollhook
node_featured -->|"renders"| node_scrollreveal
node_skills -->|"renders"| node_scrollreveal
node_values -->|"renders"| node_scrollreveal
node_about -->|"renders"| node_scrollreveal
node_education -->|"renders"| node_scrollreveal
node_contact -->|"renders"| node_scrollreveal

click node_entry "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/main.jsx"
click node_app "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/App.jsx"
click node_theme "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/context/ThemeContext.jsx"
click node_home "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Home.jsx"
click node_about "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/About.jsx"
click node_education "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Education.jsx"
click node_projects "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Projects.jsx"
click node_gallery "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Gallery.jsx"
click node_contact "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Contact.jsx"
click node_projectdata "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/data/projects.js"
click node_gallerydata "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/data/gallery.js"
click node_hero "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Hero.jsx"
click node_featured "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/FeaturedProjects.jsx"
click node_skills "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/SkillsPreview.jsx"
click node_values "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ValueCards.jsx"
click node_projectcard "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ProjectCard.jsx"
click node_header "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Header.jsx"
click node_footer "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Footer.jsx"
click node_scrollreveal "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ScrollReveal.jsx"
click node_scrollhook "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/hooks/useScrollReveal.js"
click node_themebutton "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ThemeToggle.jsx"
click node_typing "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/TypingEffect.jsx"
click node_typinghook "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/hooks/useTypingEffect.js"
click node_counter "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/AnimatedCounter.jsx"
click node_magnetic "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/MagneticButton.jsx"
click node_canvas "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/CanvasParticles.jsx"
click node_cursor "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/CustomCursor.jsx"
click node_skip "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/SkipLink.jsx"
click node_progress "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ScrollProgress.jsx"
click node_backtotop "https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/BackToTop.jsx"

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_entry,node_app,node_theme toneBlue
class node_home,node_about,node_education,node_projects,node_gallery,node_contact toneAmber
class node_projectdata,node_gallerydata,node_hero,node_featured,node_skills,node_values,node_projectcard toneMint
class node_header,node_footer,node_scrollreveal,node_scrollhook,node_themebutton,node_typing,node_typinghook,node_counter,node_magnetic,node_canvas,node_cursor,node_skip,node_progress,node_backtotop toneRose
class node_visitor toneIndigo
```

## Components

### App runtime

- [React entry](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/main.jsx): `src/main.jsx`
- [App router](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/App.jsx): `src/App.jsx`
- [Theme state](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/context/ThemeContext.jsx): `src/context/ThemeContext.jsx`

### Portfolio pages

- [Home page](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [About page](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Education page](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Education.jsx): `src/pages/Education.jsx`
- [Projects page](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Projects.jsx): `src/pages/Projects.jsx`
- [Gallery page](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Gallery.jsx): `src/pages/Gallery.jsx`
- [Contact page](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/pages/Contact.jsx): `src/pages/Contact.jsx`

### Content showcase

- [Project catalog](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/data/projects.js): `src/data/projects.js`
- [Gallery catalog](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/data/gallery.js): `src/data/gallery.js`
- [Hero section](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Featured projects](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/FeaturedProjects.jsx): `src/components/FeaturedProjects.jsx`
- [Skills preview](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/SkillsPreview.jsx): `src/components/SkillsPreview.jsx`
- [Value cards](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ValueCards.jsx): `src/components/ValueCards.jsx`
- [Project card](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ProjectCard.jsx): `src/components/ProjectCard.jsx`

### Shared presentation

- [Site header](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Site footer](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Scroll reveal](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ScrollReveal.jsx): `src/components/ScrollReveal.jsx`
- [Reveal observer](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/hooks/useScrollReveal.js): `src/hooks/useScrollReveal.js`
- [Theme toggle](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ThemeToggle.jsx): `src/components/ThemeToggle.jsx`
- [Typing effect](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/TypingEffect.jsx): `src/components/TypingEffect.jsx`
- [Typing hook](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/hooks/useTypingEffect.js): `src/hooks/useTypingEffect.js`
- [Animated counter](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/AnimatedCounter.jsx): `src/components/AnimatedCounter.jsx`
- [Magnetic button](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/MagneticButton.jsx): `src/components/MagneticButton.jsx`
- [Canvas particles](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/CanvasParticles.jsx): `src/components/CanvasParticles.jsx`
- [Custom cursor](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/CustomCursor.jsx): `src/components/CustomCursor.jsx`
- [Skip link](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/SkipLink.jsx): `src/components/SkipLink.jsx`
- [Scroll progress](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/ScrollProgress.jsx): `src/components/ScrollProgress.jsx`
- [Back to top](https://github.com/hanchantrea38/portlofio_hct/blob/main/src/components/BackToTop.jsx): `src/components/BackToTop.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site
- React entry → App router: renders (evidence: `src/main.jsx`)
- App router → Theme state: provides theme (evidence: `src/App.jsx`)
- App router → Home page: routes to (evidence: `src/App.jsx`)
- App router → About page: routes to (evidence: `src/App.jsx`)
- App router → Education page: routes to (evidence: `src/App.jsx`)
- App router → Projects page: routes to (evidence: `src/App.jsx`)
- App router → Gallery page: routes to (evidence: `src/App.jsx`)
- App router → Contact page: routes to (evidence: `src/App.jsx`)
- App router → Site header: renders (evidence: `src/App.jsx`)
- App router → Site footer: renders (evidence: `src/App.jsx`)
- App router → Canvas particles: renders (evidence: `src/App.jsx`)
- App router → Custom cursor: renders (evidence: `src/App.jsx`)
- App router → Skip link: renders (evidence: `src/App.jsx`)
- App router → Scroll progress: renders (evidence: `src/App.jsx`)
- App router → Back to top: renders (evidence: `src/App.jsx`)
- Home page → Hero section: renders (evidence: `src/pages/Home.jsx`)
- Home page → Value cards: renders (evidence: `src/pages/Home.jsx`)
- Home page → Featured projects: renders (evidence: `src/pages/Home.jsx`)
- Home page → Skills preview: renders (evidence: `src/pages/Home.jsx`)
- Projects page → Project catalog: reads (evidence: `src/pages/Projects.jsx`)
- Projects page → Project card: renders (evidence: `src/pages/Projects.jsx`)
- Gallery page → Gallery catalog: reads (evidence: `src/pages/Gallery.jsx`)
- Hero section → Typing effect: renders (evidence: `src/components/Hero.jsx`)
- Hero section → Animated counter: renders (evidence: `src/components/Hero.jsx`)
- Hero section → Magnetic button: renders (evidence: `src/components/Hero.jsx`)
- Typing effect → Typing hook: uses (evidence: `src/components/TypingEffect.jsx`)
- Site header → Theme toggle: renders (evidence: `src/components/Header.jsx`)
- Site header → Theme state: reads (evidence: `src/components/Header.jsx`)
- Theme toggle → Theme state: uses (evidence: `src/components/ThemeToggle.jsx`)
- Scroll reveal → Reveal observer: uses (evidence: `src/components/ScrollReveal.jsx`)
- Featured projects → Scroll reveal: renders (evidence: `src/components/FeaturedProjects.jsx`)
- Skills preview → Scroll reveal: renders (evidence: `src/components/SkillsPreview.jsx`)
- Value cards → Scroll reveal: renders (evidence: `src/components/ValueCards.jsx`)
- About page → Scroll reveal: renders (evidence: `src/pages/About.jsx`)
- Education page → Scroll reveal: renders (evidence: `src/pages/Education.jsx`)
- Contact page → Scroll reveal: renders (evidence: `src/pages/Contact.jsx`)
