# newmi-git/portfolio-vue architecture

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

- Interactive diagram: https://gitdiagram.com/newmi-git/portfolio-vue
- Repository: https://github.com/newmi-git/portfolio-vue

## Overview

Portfolio-Vue is a Vue single-page portfolio. A visitor enters through the application bootstrap, which installs routing and state support, mounts the shell, and lets the router dispatch either the home profile or gallery view. The gallery currently uses local reactive image state, supports image selection, and opens a lightbox with Escape/click dismissal. The sampled code shows no API or persistent storage; gallery population is explicitly future-facing. Styling is loaded globally, with additional view-scoped presentation rules.

Main entry points: [`Frontend/src/main.js`](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/main.js) (Application Bootstrap), [`Frontend/src/router/index.js`](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/router/index.js) (Vue Router), [`Frontend/src/views/Gallery.vue`](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue) (Gallery View), [`Frontend/src/App.vue`](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/App.vue) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application Runtime"]
  node_main["Application Bootstrap<br/>[main.js]"]
  node_app["App Shell<br/>[App.vue]"]
  node_pinia["Pinia Plugin"]
  node_theme["Global Theme<br/>[theme.css]"]
end

subgraph group_navigation["Navigation Layer"]
  node_router["Vue Router<br/>[index.js]"]
end

subgraph group_portfolio["Portfolio Views"]
  node_home["Home Profile<br/>[Home.vue]"]
  node_gallery["Gallery View<br/>[Gallery.vue]"]
end

subgraph group_interaction["Interaction State"]
  node_home_state["Menu State<br/>[Home.vue]"]
  node_gallery_state["Gallery State<br/>[Gallery.vue]"]
  node_lightbox["Image Lightbox<br/>[Gallery.vue]"]
end

node_visitor(("Portfolio Visitor"))

node_visitor -->|"navigates"| node_router
node_main -->|"creates"| node_app
node_main -->|"installs"| node_pinia
node_main -->|"installs"| node_router
node_main -->|"loads styles"| node_theme
node_main -->|"mounts"| node_app
node_app -->|"renders routes"| node_router
node_router -->|"dispatches"| node_home
node_router -->|"dispatches"| node_gallery
node_home -->|"toggles menu"| node_home_state
node_gallery -->|"updates images"| node_gallery_state
node_gallery -->|"opens overlay"| node_lightbox
node_visitor -->|"selects image"| node_gallery

click node_main "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/main.js"
click node_app "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/App.vue"
click node_theme "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/assets/theme.css"
click node_router "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/router/index.js"
click node_home "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Home.vue"
click node_gallery "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue"
click node_home_state "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Home.vue"
click node_gallery_state "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue"
click node_lightbox "https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue"

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_main,node_app,node_pinia,node_theme toneBlue
class node_router toneAmber
class node_home,node_gallery toneMint
class node_home_state,node_gallery_state,node_lightbox toneRose
class node_visitor toneIndigo
```

## Components

### Application Runtime

- [Application Bootstrap](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/main.js): `Frontend/src/main.js`
- [App Shell](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/App.vue): `Frontend/src/App.vue`
- **Pinia Plugin**
- [Global Theme](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/assets/theme.css): `Frontend/src/assets/theme.css`

### Navigation Layer

- [Vue Router](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/router/index.js): `Frontend/src/router/index.js`

### Portfolio Views

- [Home Profile](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Home.vue): `Frontend/src/views/Home.vue`
- [Gallery View](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue): `Frontend/src/views/Gallery.vue`

### Interaction State

- [Menu State](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Home.vue): `Frontend/src/views/Home.vue`
- [Gallery State](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue): `Frontend/src/views/Gallery.vue`
- [Image Lightbox](https://github.com/newmi-git/portfolio-vue/blob/main/Frontend/src/views/Gallery.vue): `Frontend/src/views/Gallery.vue`

### Other components

- **Portfolio Visitor**

## Connections

- Portfolio Visitor → Vue Router: navigates
- Application Bootstrap → App Shell: creates
- Application Bootstrap → Pinia Plugin: installs
- Application Bootstrap → Vue Router: installs
- Application Bootstrap → Global Theme: loads styles
- Application Bootstrap → App Shell: mounts
- App Shell → Vue Router: renders routes
- Vue Router → Home Profile: dispatches
- Vue Router → Gallery View: dispatches
- Home Profile → Menu State: toggles menu
- Gallery View → Gallery State: updates images
- Gallery View → Image Lightbox: opens overlay
- Portfolio Visitor → Gallery View: selects image
