# jeon1219/nowpop_web architecture

> Architecture diagram of the GitHub repository jeon1219/nowpop_web, 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/jeon1219/nowpop_web
- Repository: https://github.com/jeon1219/nowpop_web

## Overview

Nowpop is a React popup-event discovery UI: visitors browse a landing page, search and filter popup listings, open event details, and save bookmarks for later. Routes and bookmark state are coordinated in App; listing and detail screens use mock data, while bookmarks persist in browser localStorage. The map area is only a placeholder, and the README describes a Vite template rather than additional product capabilities. Relationships below are limited to calls and data use visible in the supplied excerpts or source index.

Main entry points: [`src/App.jsx`](https://github.com/jeon1219/nowpop_web/blob/main/src/App.jsx) (Routes and bookmarks), [`src/pages/Popups.jsx`](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/Popups.jsx) (Popup search), [`src/pages/PopupDetail.jsx`](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/PopupDetail.jsx) (Popup detail), [`src/pages/MyPage.jsx`](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/MyPage.jsx) (Bookmark page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Routes and bookmarks<br/>[App.jsx]"]
  node_header["Site header<br/>[Header.jsx]"]
end

subgraph group_discovery["Popup discovery"]
  node_home["Home landing<br/>[Home.jsx]"]
  node_listing["Popup search<br/>[Popups.jsx]"]
  node_filters["Search filters<br/>[FilterBar.jsx]"]
  node_detail["Popup detail<br/>[PopupDetail.jsx]"]
end

subgraph group_saved["Saved popups"]
  node_savedpage["Bookmark page<br/>[MyPage.jsx]"]
  node_bookmarks[("Browser bookmarks<br/>[App.jsx]")]
end

subgraph group_shared["Shared UI and data"]
  node_catalog[("Mock popup catalog<br/>[mockPopups.js]")]
  node_card["Popup card<br/>[PopupCard.jsx]"]
  node_badge["Status and category badge<br/>[Badge.jsx]"]
  node_utils["Popup display helpers<br/>[popupUtils.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_header
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_listing
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_savedpage
node_app -->|"reads and writes"| node_bookmarks
node_app -->|"passes bookmark state"| node_listing
node_app -->|"passes bookmark state"| node_detail
node_app -->|"passes bookmark state"| node_savedpage
node_listing -->|"filters data"| node_catalog
node_listing -->|"renders controls"| node_filters
node_listing -->|"renders results"| node_card
node_detail -->|"finds popup"| node_catalog
node_savedpage -->|"selects bookmarks"| node_catalog
node_savedpage -->|"renders saved items"| node_card
node_card -->|"renders status"| node_badge
node_card -->|"formats display"| node_utils
node_detail -->|"renders labels"| node_badge
node_detail -->|"formats status and dates"| node_utils

click node_entry "https://github.com/jeon1219/nowpop_web/blob/main/src/main.jsx"
click node_app "https://github.com/jeon1219/nowpop_web/blob/main/src/App.jsx"
click node_header "https://github.com/jeon1219/nowpop_web/blob/main/src/components/Header.jsx"
click node_home "https://github.com/jeon1219/nowpop_web/blob/main/src/pages/Home.jsx"
click node_listing "https://github.com/jeon1219/nowpop_web/blob/main/src/pages/Popups.jsx"
click node_filters "https://github.com/jeon1219/nowpop_web/blob/main/src/components/FilterBar.jsx"
click node_detail "https://github.com/jeon1219/nowpop_web/blob/main/src/pages/PopupDetail.jsx"
click node_savedpage "https://github.com/jeon1219/nowpop_web/blob/main/src/pages/MyPage.jsx"
click node_bookmarks "https://github.com/jeon1219/nowpop_web/blob/main/src/App.jsx"
click node_catalog "https://github.com/jeon1219/nowpop_web/blob/main/src/data/mockPopups.js"
click node_card "https://github.com/jeon1219/nowpop_web/blob/main/src/components/PopupCard.jsx"
click node_badge "https://github.com/jeon1219/nowpop_web/blob/main/src/components/Badge.jsx"
click node_utils "https://github.com/jeon1219/nowpop_web/blob/main/src/utils/popupUtils.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_entry,node_app,node_header toneBlue
class node_home,node_listing,node_filters,node_detail toneAmber
class node_savedpage,node_bookmarks toneMint
class node_catalog,node_card,node_badge,node_utils toneRose
class node_visitor toneIndigo
```

## Components

### App navigation

- [React entry](https://github.com/jeon1219/nowpop_web/blob/main/src/main.jsx): `src/main.jsx`
- [Routes and bookmarks](https://github.com/jeon1219/nowpop_web/blob/main/src/App.jsx): `src/App.jsx`
- [Site header](https://github.com/jeon1219/nowpop_web/blob/main/src/components/Header.jsx): `src/components/Header.jsx`

### Popup discovery

- [Home landing](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Popup search](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/Popups.jsx): `src/pages/Popups.jsx`
- [Search filters](https://github.com/jeon1219/nowpop_web/blob/main/src/components/FilterBar.jsx): `src/components/FilterBar.jsx`
- [Popup detail](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/PopupDetail.jsx): `src/pages/PopupDetail.jsx`

### Saved popups

- [Bookmark page](https://github.com/jeon1219/nowpop_web/blob/main/src/pages/MyPage.jsx): `src/pages/MyPage.jsx`
- [Browser bookmarks](https://github.com/jeon1219/nowpop_web/blob/main/src/App.jsx): `src/App.jsx`

### Shared UI and data

- [Mock popup catalog](https://github.com/jeon1219/nowpop_web/blob/main/src/data/mockPopups.js): `src/data/mockPopups.js`
- [Popup card](https://github.com/jeon1219/nowpop_web/blob/main/src/components/PopupCard.jsx): `src/components/PopupCard.jsx`
- [Status and category badge](https://github.com/jeon1219/nowpop_web/blob/main/src/components/Badge.jsx): `src/components/Badge.jsx`
- [Popup display helpers](https://github.com/jeon1219/nowpop_web/blob/main/src/utils/popupUtils.js): `src/utils/popupUtils.js`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens app (evidence: `src/main.jsx`)
- React entry → Routes and bookmarks: renders (evidence: `src/main.jsx`)
- Routes and bookmarks → Site header: renders (evidence: `src/App.jsx`)
- Routes and bookmarks → Home landing: routes to (evidence: `src/App.jsx`)
- Routes and bookmarks → Popup search: routes to (evidence: `src/App.jsx`)
- Routes and bookmarks → Popup detail: routes to (evidence: `src/App.jsx`)
- Routes and bookmarks → Bookmark page: routes to (evidence: `src/App.jsx`)
- Routes and bookmarks → Browser bookmarks: reads and writes (evidence: `src/App.jsx`)
- Routes and bookmarks → Popup search: passes bookmark state (evidence: `src/App.jsx`)
- Routes and bookmarks → Popup detail: passes bookmark state (evidence: `src/App.jsx`)
- Routes and bookmarks → Bookmark page: passes bookmark state (evidence: `src/App.jsx`)
- Popup search → Mock popup catalog: filters data (evidence: `src/pages/Popups.jsx`)
- Popup search → Search filters: renders controls (evidence: `src/pages/Popups.jsx`)
- Popup search → Popup card: renders results (evidence: `src/pages/Popups.jsx`)
- Popup detail → Mock popup catalog: finds popup (evidence: `src/pages/PopupDetail.jsx`)
- Bookmark page → Mock popup catalog: selects bookmarks (evidence: `src/pages/MyPage.jsx`)
- Bookmark page → Popup card: renders saved items (evidence: `src/pages/MyPage.jsx`)
- Popup card → Status and category badge: renders status (evidence: `src/components/PopupCard.jsx`)
- Popup card → Popup display helpers: formats display (evidence: `src/components/PopupCard.jsx`)
- Popup detail → Status and category badge: renders labels (evidence: `src/pages/PopupDetail.jsx`)
- Popup detail → Popup display helpers: formats status and dates (evidence: `src/pages/PopupDetail.jsx`)
