# sharashizain/cambangay_portfolio_hci101 architecture

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

- Interactive diagram: https://gitdiagram.com/sharashizain/cambangay_portfolio_hci101
- Repository: https://github.com/sharashizain/cambangay_portfolio_hci101

## Overview

This repository is a browser-based personal portfolio. Visitors can view a profile, skills, hobbies, and project goal; navigate between sections; and add, filter, and revisit portfolio entries stored in browser localStorage. The sampled JavaScript shows these behaviors, but the README is empty and the HTML files were not sampled, so page wiring and the relationship between the separate scripts remain unverified.

Main entry points: [`script.js`](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js) (Entry form), [`home.js`](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/home.js) (Hero typewriter), [`single-page-nav.js`](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/single-page-nav.js) (Scroll navigation), [`info.js`](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/info.js) (Profile display)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio presentation"]
  node_site["Portfolio site<br/>[index.html]"]
  node_hero["Hero typewriter<br/>[home.js]"]
  node_section_nav["Section navigation<br/>[script.js]"]
  node_scroll_nav["Scroll navigation<br/>[single-page-nav.js]"]
  node_nav_mode["Navigation mode<br/>[nav-mode.js]"]
end

subgraph group_profile["Profile content"]
  node_profile_display["Profile display<br/>[info.js]"]
end

subgraph group_entries["Portfolio entries"]
  node_entry_form["Entry form<br/>[script.js]"]
  node_entry_view["Entry rendering and filter<br/>[script.js]"]
  node_entry_store[("Browser entry storage")]
end

node_visitor(("Visitor"))

node_visitor -->|"views animation"| node_hero
node_visitor -->|"views profile"| node_profile_display
node_visitor -->|"submits entries"| node_entry_form
node_visitor -->|"selects sections"| node_section_nav
node_visitor -->|"navigates sections"| node_scroll_nav
node_entry_form -->|"writes entries"| node_entry_store
node_entry_store -->|"loads entries"| node_entry_view
node_entry_form -->|"refreshes display"| node_entry_view
node_visitor -->|"filters entries"| node_entry_view

click node_site "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/index.html"
click node_hero "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/home.js"
click node_section_nav "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js"
click node_scroll_nav "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/single-page-nav.js"
click node_nav_mode "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/nav-mode.js"
click node_profile_display "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/info.js"
click node_entry_form "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js"
click node_entry_view "https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js"

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_site,node_hero,node_section_nav,node_scroll_nav,node_nav_mode toneBlue
class node_profile_display toneAmber
class node_entry_form,node_entry_view,node_entry_store toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio presentation

- [Portfolio site](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/index.html): `index.html`
- [Hero typewriter](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/home.js): `home.js`
- [Section navigation](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js): `script.js`
- [Scroll navigation](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/single-page-nav.js): `single-page-nav.js`
- [Navigation mode](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/nav-mode.js): `nav-mode.js`

### Profile content

- [Profile display](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/info.js): `info.js`

### Portfolio entries

- [Entry form](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js): `script.js`
- [Entry rendering and filter](https://github.com/sharashizain/cambangay_portfolio_hci101/blob/main/script.js): `script.js`
- **Browser entry storage**

### Other components

- **Visitor**

## Connections

- Visitor → Hero typewriter: views animation (evidence: `home.js`)
- Visitor → Profile display: views profile (evidence: `info.js`)
- Visitor → Entry form: submits entries (evidence: `script.js`)
- Visitor → Section navigation: selects sections (evidence: `script.js`)
- Visitor → Scroll navigation: navigates sections (evidence: `single-page-nav.js`)
- Entry form → Browser entry storage: writes entries (evidence: `script.js`)
- Browser entry storage → Entry rendering and filter: loads entries (evidence: `script.js`)
- Entry form → Entry rendering and filter: refreshes display (evidence: `script.js`)
- Visitor → Entry rendering and filter: filters entries (evidence: `script.js`)
