# ariful305/arts architecture

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

- Interactive diagram: https://gitdiagram.com/ariful305/arts
- Repository: https://github.com/ariful305/arts

## Overview

Arts of Shop is a Vue storefront for browsing fashion products and completing a shopping-bag/checkout journey. The router selects home, category, product, cart, checkout, account, and customer-information pages; catalog pages render product cards, and shopping actions use shared in-memory cart state. The app shell supplies navigation, drawers, footer, and notifications. The source index documents connections for several unsampled views, but no README or backend integration is provided, so persistence and payment processing are not represented.

Main entry points: [`router/index.js`](https://github.com/ariful305/arts/blob/main/router/index.js) (Route dispatch), [`composables/useCart.js`](https://github.com/ariful305/arts/blob/main/composables/useCart.js) (Cart state and totals), [`App.vue`](https://github.com/ariful305/arts/blob/main/App.vue) (Shared app layout), [`components/ProductCard.vue`](https://github.com/ariful305/arts/blob/main/components/ProductCard.vue) (Product card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Product browsing"]
  node_home["Home storefront<br/>[HomeView.vue]"]
  node_catalog["Product catalog data<br/>[products.js]"]
  node_category["Category browsing<br/>[CategoryView.vue]"]
  node_product["Product details"]
  node_productcard["Product card<br/>[ProductCard.vue]"]
end

subgraph group_commerce["Shopping and checkout"]
  node_cartstate["Cart state and totals<br/>[useCart.js]"]
  node_cartpage["Cart page<br/>[CartView.vue]"]
  node_cartdrawer["Cart drawer<br/>[CartDrawer.vue]"]
  node_checkout["Checkout page<br/>[CheckoutView.vue]"]
end

subgraph group_customers["Customer features"]
  node_account["Account and wishlist<br/>[AccountView.vue]"]
  node_reviews["Customer reviews<br/>[ReviewsView.vue]"]
  node_faq["FAQ<br/>[FaqView.vue]"]
  node_contact["Contact<br/>[ContactView.vue]"]
end

subgraph group_shell["Application shell"]
  node_router["Route dispatch<br/>[index.js]"]
  node_app["Shared app layout<br/>[App.vue]"]
  node_navbar["Navigation and search<br/>[TheNavbar.vue]"]
  node_ui["UI drawer state<br/>[useUI.js]"]
  node_mobile["Mobile navigation drawer<br/>[MobileDrawer.vue]"]
  node_footer["Footer<br/>[TheFooter.vue]"]
  node_toast["Toast notification"]
  node_whatsapp["WhatsApp contact shortcut"]
end

node_shopper(("Shopper"))

node_shopper -->|"opens pages"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_category
node_router -->|"routes to"| node_product
node_router -->|"routes to"| node_cartpage
node_router -->|"routes to"| node_checkout
node_router -->|"routes to"| node_reviews
node_router -->|"routes to"| node_faq
node_router -->|"routes to"| node_contact
node_router -->|"routes to"| node_account
node_home -->|"filters products"| node_catalog
node_category -->|"reads products"| node_catalog
node_home -->|"renders cards"| node_productcard
node_category -->|"renders cards"| node_productcard
node_product -->|"renders related"| node_productcard
node_productcard -->|"adds products"| node_cartstate
node_product -->|"adds products"| node_cartstate
node_cartpage -->|"uses cart state"| node_cartstate
node_checkout -->|"uses cart state"| node_cartstate
node_cartdrawer -->|"updates cart"| node_cartstate
node_navbar -->|"reads totals"| node_cartstate
node_navbar -->|"opens drawer"| node_ui
node_cartdrawer -->|"reads drawer state"| node_ui
node_mobile -->|"uses drawer state"| node_ui
node_account -->|"adds wishlist items"| node_cartstate
node_account -->|"opens cart drawer"| node_ui
node_contact -->|"uses cart actions"| node_cartstate
node_reviews -->|"shows toast"| node_cartstate
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_mobile
node_app -->|"renders"| node_cartdrawer
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_toast
node_app -->|"renders"| node_whatsapp
node_app -.->|"hosts routed views"| node_router

click node_router "https://github.com/ariful305/arts/blob/main/router/index.js"
click node_home "https://github.com/ariful305/arts/blob/main/views/HomeView.vue"
click node_catalog "https://github.com/ariful305/arts/blob/main/data/products.js"
click node_category "https://github.com/ariful305/arts/blob/main/views/CategoryView.vue"
click node_product "https://github.com/ariful305/arts/blob/main/views/SingleProductView.vue"
click node_productcard "https://github.com/ariful305/arts/blob/main/components/ProductCard.vue"
click node_cartstate "https://github.com/ariful305/arts/blob/main/composables/useCart.js"
click node_cartpage "https://github.com/ariful305/arts/blob/main/views/CartView.vue"
click node_cartdrawer "https://github.com/ariful305/arts/blob/main/components/CartDrawer.vue"
click node_checkout "https://github.com/ariful305/arts/blob/main/views/CheckoutView.vue"
click node_account "https://github.com/ariful305/arts/blob/main/views/AccountView.vue"
click node_reviews "https://github.com/ariful305/arts/blob/main/views/ReviewsView.vue"
click node_faq "https://github.com/ariful305/arts/blob/main/views/FaqView.vue"
click node_contact "https://github.com/ariful305/arts/blob/main/views/ContactView.vue"
click node_app "https://github.com/ariful305/arts/blob/main/App.vue"
click node_navbar "https://github.com/ariful305/arts/blob/main/components/TheNavbar.vue"
click node_ui "https://github.com/ariful305/arts/blob/main/composables/useUI.js"
click node_mobile "https://github.com/ariful305/arts/blob/main/components/MobileDrawer.vue"
click node_footer "https://github.com/ariful305/arts/blob/main/components/TheFooter.vue"
click node_toast "https://github.com/ariful305/arts/blob/main/components/ToastNotification.vue"
click node_whatsapp "https://github.com/ariful305/arts/blob/main/components/FloatingWhatsApp.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_home,node_catalog,node_category,node_product,node_productcard toneBlue
class node_cartstate,node_cartpage,node_cartdrawer,node_checkout toneAmber
class node_account,node_reviews,node_faq,node_contact toneMint
class node_router,node_app,node_navbar,node_ui,node_mobile,node_footer,node_toast,node_whatsapp toneRose
class node_shopper toneIndigo
```

## Components

### Product browsing

- [Home storefront](https://github.com/ariful305/arts/blob/main/views/HomeView.vue): `views/HomeView.vue`
- [Product catalog data](https://github.com/ariful305/arts/blob/main/data/products.js): `data/products.js`
- [Category browsing](https://github.com/ariful305/arts/blob/main/views/CategoryView.vue): `views/CategoryView.vue`
- [Product details](https://github.com/ariful305/arts/blob/main/views/SingleProductView.vue): `views/SingleProductView.vue`
- [Product card](https://github.com/ariful305/arts/blob/main/components/ProductCard.vue): `components/ProductCard.vue`

### Shopping and checkout

- [Cart state and totals](https://github.com/ariful305/arts/blob/main/composables/useCart.js): `composables/useCart.js`
- [Cart page](https://github.com/ariful305/arts/blob/main/views/CartView.vue): `views/CartView.vue`
- [Cart drawer](https://github.com/ariful305/arts/blob/main/components/CartDrawer.vue): `components/CartDrawer.vue`
- [Checkout page](https://github.com/ariful305/arts/blob/main/views/CheckoutView.vue): `views/CheckoutView.vue`

### Customer features

- [Account and wishlist](https://github.com/ariful305/arts/blob/main/views/AccountView.vue): `views/AccountView.vue`
- [Customer reviews](https://github.com/ariful305/arts/blob/main/views/ReviewsView.vue): `views/ReviewsView.vue`
- [FAQ](https://github.com/ariful305/arts/blob/main/views/FaqView.vue): `views/FaqView.vue`
- [Contact](https://github.com/ariful305/arts/blob/main/views/ContactView.vue): `views/ContactView.vue`

### Application shell

- [Route dispatch](https://github.com/ariful305/arts/blob/main/router/index.js): `router/index.js`
- [Shared app layout](https://github.com/ariful305/arts/blob/main/App.vue): `App.vue`
- [Navigation and search](https://github.com/ariful305/arts/blob/main/components/TheNavbar.vue): `components/TheNavbar.vue`
- [UI drawer state](https://github.com/ariful305/arts/blob/main/composables/useUI.js): `composables/useUI.js`
- [Mobile navigation drawer](https://github.com/ariful305/arts/blob/main/components/MobileDrawer.vue): `components/MobileDrawer.vue`
- [Footer](https://github.com/ariful305/arts/blob/main/components/TheFooter.vue): `components/TheFooter.vue`
- [Toast notification](https://github.com/ariful305/arts/blob/main/components/ToastNotification.vue): `components/ToastNotification.vue`
- [WhatsApp contact shortcut](https://github.com/ariful305/arts/blob/main/components/FloatingWhatsApp.vue): `components/FloatingWhatsApp.vue`

### Other components

- **Shopper**

## Connections

- Shopper → Route dispatch: opens pages (evidence: `router/index.js`)
- Route dispatch → Home storefront: routes to (evidence: `router/index.js`)
- Route dispatch → Category browsing: routes to (evidence: `router/index.js`)
- Route dispatch → Product details: routes to (evidence: `router/index.js`)
- Route dispatch → Cart page: routes to (evidence: `router/index.js`)
- Route dispatch → Checkout page: routes to (evidence: `router/index.js`)
- Route dispatch → Customer reviews: routes to (evidence: `router/index.js`)
- Route dispatch → FAQ: routes to (evidence: `router/index.js`)
- Route dispatch → Contact: routes to (evidence: `router/index.js`)
- Route dispatch → Account and wishlist: routes to (evidence: `router/index.js`)
- Home storefront → Product catalog data: filters products (evidence: `views/HomeView.vue`)
- Category browsing → Product catalog data: reads products (evidence: `views/CategoryView.vue`)
- Home storefront → Product card: renders cards (evidence: `views/HomeView.vue`)
- Category browsing → Product card: renders cards (evidence: `views/CategoryView.vue`)
- Product details → Product card: renders related (evidence: `views/SingleProductView.vue`)
- Product card → Cart state and totals: adds products (evidence: `components/ProductCard.vue`)
- Product details → Cart state and totals: adds products (evidence: `views/SingleProductView.vue`)
- Cart page → Cart state and totals: uses cart state (evidence: `views/CartView.vue`)
- Checkout page → Cart state and totals: uses cart state (evidence: `views/CheckoutView.vue`)
- Cart drawer → Cart state and totals: updates cart (evidence: `components/CartDrawer.vue`)
- Navigation and search → Cart state and totals: reads totals (evidence: `components/TheNavbar.vue`)
- Navigation and search → UI drawer state: opens drawer (evidence: `components/TheNavbar.vue`)
- Cart drawer → UI drawer state: reads drawer state (evidence: `components/CartDrawer.vue`)
- Mobile navigation drawer → UI drawer state: uses drawer state (evidence: `components/MobileDrawer.vue`)
- Account and wishlist → Cart state and totals: adds wishlist items (evidence: `views/AccountView.vue`)
- Account and wishlist → UI drawer state: opens cart drawer (evidence: `views/AccountView.vue`)
- Contact → Cart state and totals: uses cart actions (evidence: `views/ContactView.vue`)
- Customer reviews → Cart state and totals: shows toast (evidence: `views/ReviewsView.vue`)
- Shared app layout → Navigation and search: renders (evidence: `App.vue`)
- Shared app layout → Mobile navigation drawer: renders (evidence: `App.vue`)
- Shared app layout → Cart drawer: renders (evidence: `App.vue`)
- Shared app layout → Footer: renders (evidence: `App.vue`)
- Shared app layout → Toast notification: renders (evidence: `App.vue`)
- Shared app layout → WhatsApp contact shortcut: renders (evidence: `App.vue`)
- Shared app layout → Route dispatch: hosts routed views
