# michaeltang3aaaaa/dit2163n_assignment1 architecture

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

- Interactive diagram: https://gitdiagram.com/michaeltang3aaaaa/dit2163n_assignment1
- Repository: https://github.com/michaeltang3aaaaa/dit2163n_assignment1

## Overview

Explore Malaysia is a React travel-discovery site. Visitors enter through the app shell, navigate to introductory, package-listing, category-highlight, and contact pages, and can change the visual theme. The main package list fetches static package data; category highlights are defined locally in the category page. The contact form validates and acknowledges input in the browser, with no submission service shown. The graph follows the active routing and imports in the sampled files; it does not treat the separate Header component as active, and unsampled styling or other wiring is omitted.

Main entry points: [`src/App.jsx`](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/App.jsx) (Routes and shell), [`src/main.jsx`](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/main.jsx) (React entry), [`src/components/Travel_Packages.jsx`](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Travel_Packages.jsx) (Travel packages), [`src/components/About.jsx`](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/About.jsx) (About and highlights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_shell["App shell"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Routes and shell<br/>[App.jsx]"]
end

subgraph group_travel_discovery["Travel discovery"]
  node_home["Home introduction<br/>[Home.jsx]"]
  node_packages["Travel packages"]
  node_package_data["Package catalog"]
  node_about["About and highlights<br/>[About.jsx]"]
  node_highlight_packages["Category packages"]
end

subgraph group_visitor_engagement["Visitor engagement"]
  node_contact["Contact form<br/>[Contact.jsx]"]
end

subgraph group_appearance["Appearance"]
  node_theme["Theme toggle<br/>[Theme_Toggle.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_packages
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_highlight_packages
node_app -->|"routes to"| node_contact
node_app -->|"renders"| node_theme
node_packages -->|"fetches"| node_package_data
node_about -->|"links to"| node_highlight_packages

click node_entry "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/main.jsx"
click node_app "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/App.jsx"
click node_home "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Home.jsx"
click node_packages "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Travel_Packages.jsx"
click node_package_data "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/public/Travel_Packages.json"
click node_about "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/About.jsx"
click node_highlight_packages "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/HighlightPackages.jsx"
click node_contact "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Contact.jsx"
click node_theme "https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Theme_Toggle.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 toneBlue
class node_home,node_packages,node_package_data,node_about,node_highlight_packages toneAmber
class node_contact toneMint
class node_theme toneRose
class node_visitor toneIndigo
```

## Components

### App shell

- [React entry](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/main.jsx): `src/main.jsx`
- [Routes and shell](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/App.jsx): `src/App.jsx`

### Travel discovery

- [Home introduction](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Home.jsx): `src/components/Home.jsx`
- [Travel packages](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Travel_Packages.jsx): `src/components/Travel_Packages.jsx`
- [Package catalog](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/public/Travel_Packages.json): `public/Travel_Packages.json`
- [About and highlights](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/About.jsx): `src/components/About.jsx`
- [Category packages](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/HighlightPackages.jsx): `src/components/HighlightPackages.jsx`

### Visitor engagement

- [Contact form](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Contact.jsx): `src/components/Contact.jsx`

### Appearance

- [Theme toggle](https://github.com/michaeltang3aaaaa/dit2163n_assignment1/blob/main/src/components/Theme_Toggle.jsx): `src/components/Theme_Toggle.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site
- React entry → Routes and shell: renders (evidence: `src/main.jsx`)
- Routes and shell → Home introduction: routes to (evidence: `src/App.jsx`)
- Routes and shell → Travel packages: routes to (evidence: `src/App.jsx`)
- Routes and shell → About and highlights: routes to (evidence: `src/App.jsx`)
- Routes and shell → Category packages: routes to (evidence: `src/App.jsx`)
- Routes and shell → Contact form: routes to (evidence: `src/App.jsx`)
- Routes and shell → Theme toggle: renders (evidence: `src/App.jsx`)
- Travel packages → Package catalog: fetches (evidence: `src/components/Travel_Packages.jsx`)
- About and highlights → Category packages: links to (evidence: `src/components/About.jsx`)
