# evatrilofficial-user/home_page architecture

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

- Interactive diagram: https://gitdiagram.com/evatrilofficial-user/home_page
- Repository: https://github.com/evatrilofficial-user/home_page

## Overview

Evatril is a Next.js event-planning and invitation platform, with venue discovery, invitation themes and uploads, pricing, customer support, and a multilingual editorial blog. A visitor can start on the home experience, explore services or search, and enter the invitation-upload flow; pricing and support are separate product paths. The graph includes documented page/view composition and source-indexed dependencies. Many routes and domain slices were not sampled, so their internal behavior and connections are intentionally limited.

Main entry points: [`src/views/Home.jsx`](https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Home.jsx) (Home experience), [`src/app/blog/[slug]/page.jsx`](https://github.com/evatrilofficial-user/home_page/blob/main/src/app/blog/%5Bslug%5D/page.jsx) (Blog article), [`src/views/UploadPage/UploadHero.jsx`](https://github.com/evatrilofficial-user/home_page/blob/main/src/views/UploadPage/UploadHero.jsx) (Upload experience), [`src/components/blog/CommentSection.jsx`](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/blog/CommentSection.jsx) (Article comments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Discovery experience"]
  node_home["Home experience<br/>[Home.jsx]"]
  node_home_route["Home routes<br/>[page.jsx]"]
  node_city_route["City home route<br/>[page.jsx]"]
  node_search["Search popup<br/>[SearchPopup.jsx]"]
  node_sidebar["Floating sidebar"]
  node_subnavbar["Sub-navigation<br/>[SubNavbar.jsx]"]
  node_compare["Comparison view<br/>[Compare.jsx]"]
  node_compare_route["Comparison route<br/>[page.jsx]"]
end

subgraph group_creation["Invitation creation"]
  node_upload["Upload experience<br/>[UploadHero.jsx]"]
  node_occasion_modal["Occasion selection<br/>[OccasionModal.jsx]"]
  node_pricing["Pricing catalog view<br/>[Pricing.jsx]"]
end

subgraph group_content["Blog and support"]
  node_support["Support chat<br/>[SupportChat.jsx]"]
  node_services["FAQ services<br/>[Service.jsx]"]
  node_blog_detail["Blog article<br/>[page.jsx]"]
  node_blog_language["Blog languages<br/>[blogLanguages.js]"]
  node_blog_text["Blog text utilities<br/>[blogText.js]"]
  node_comments["Article comments<br/>[CommentSection.jsx]"]
  node_contribute["Blog contribution modal"]
end

subgraph group_platform["App and services"]
  node_search_context["Search context<br/>[SearchContext.jsx]"]
  node_search_state["Search suggestions<br/>[searchSlice.js]"]
  node_occasion_state["Occasion filter"]
  node_upload_state["Uploaded themes"]
  node_pricing_state["Pricing catalog state"]
  node_faq_state["FAQ and chat state<br/>[faqSlice.js]"]
  node_blog_api["Blog data API<br/>[blog.js]"]
  node_comment_state["Comment state<br/>[commentSlice.js]"]
  node_token["Auth token cookie<br/>[tokenCookie.js]"]
  node_api["API middleware<br/>[ApiMiddleware.js]"]
end

node_visitor(("Visitor"))
node_api_service[("Evatril API")]

node_visitor -->|"opens"| node_home_route
node_visitor -->|"opens"| node_city_route
node_home_route -->|"renders"| node_home
node_city_route -->|"renders"| node_home
node_home -->|"uses"| node_search_context
node_home -->|"renders"| node_sidebar
node_home -->|"renders"| node_subnavbar
node_search -->|"uses"| node_search_context
node_search -->|"dispatches"| node_search_state
node_search_state -->|"requests data"| node_api
node_home -->|"renders"| node_support
node_services -->|"dispatches"| node_faq_state
node_services -->|"opens chat"| node_support
node_visitor -.->|"uses"| node_upload
node_upload -->|"opens"| node_occasion_modal
node_upload -->|"dispatches"| node_occasion_state
node_upload -->|"dispatches"| node_upload_state
node_visitor -->|"views"| node_pricing
node_pricing -->|"fetches catalog"| node_pricing_state
node_visitor -->|"reads"| node_blog_detail
node_blog_detail -->|"loads articles"| node_blog_api
node_blog_detail -->|"uses"| node_blog_language
node_blog_detail -->|"formats text"| node_blog_text
node_blog_detail -->|"renders"| node_comments
node_comments -->|"uses"| node_comment_state
node_comments -->|"opens"| node_contribute
node_comments -->|"reads token"| node_token
node_blog_api -->|"uses requests"| node_api
node_api -->|"reads token"| node_token
node_api -->|"sends requests"| node_api_service
node_visitor -->|"opens"| node_compare_route
node_compare_route -->|"renders"| node_compare

click node_home "https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Home.jsx"
click node_home_route "https://github.com/evatrilofficial-user/home_page/blob/main/src/app/page.jsx"
click node_city_route "https://github.com/evatrilofficial-user/home_page/blob/main/src/app/%5BcitySlug%5D/page.jsx"
click node_search "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/Reusable_Component/SearchPopup.jsx"
click node_search_context "https://github.com/evatrilofficial-user/home_page/blob/main/src/context/SearchContext.jsx"
click node_search_state "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/GlobalSearch/searchSlice.js"
click node_sidebar "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/FloatingSidebar.jsx"
click node_subnavbar "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/SubNavbar.jsx"
click node_upload "https://github.com/evatrilofficial-user/home_page/blob/main/src/views/UploadPage/UploadHero.jsx"
click node_occasion_modal "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/Reusable_Component/OccasionModal.jsx"
click node_occasion_state "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/OccasionFilter/occasionFilterSlice.js"
click node_upload_state "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/UploadTheme/uploadThemeSlice.js"
click node_pricing "https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Pricing.jsx"
click node_pricing_state "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/PricingCatalog/pricingCatalogSlice.js"
click node_support "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/SupportChat.jsx"
click node_services "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/Service.jsx"
click node_faq_state "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/Faq/faqSlice.js"
click node_blog_detail "https://github.com/evatrilofficial-user/home_page/blob/main/src/app/blog/%5Bslug%5D/page.jsx"
click node_blog_api "https://github.com/evatrilofficial-user/home_page/blob/main/src/lib/api/blog.js"
click node_blog_language "https://github.com/evatrilofficial-user/home_page/blob/main/src/utils/blogLanguages.js"
click node_blog_text "https://github.com/evatrilofficial-user/home_page/blob/main/src/utils/blogText.js"
click node_comments "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/blog/CommentSection.jsx"
click node_contribute "https://github.com/evatrilofficial-user/home_page/blob/main/src/components/blog/ContributeBlogModal.jsx"
click node_comment_state "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/BlogComments/commentSlice.js"
click node_token "https://github.com/evatrilofficial-user/home_page/blob/main/src/lib/tokenCookie.js"
click node_api "https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Middleware/ApiMiddleware.js"
click node_compare "https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Compare.jsx"
click node_compare_route "https://github.com/evatrilofficial-user/home_page/blob/main/src/app/compare/page.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_home,node_home_route,node_city_route,node_search,node_sidebar,node_subnavbar,node_compare,node_compare_route toneBlue
class node_upload,node_occasion_modal,node_pricing,node_api_service toneAmber
class node_support,node_services,node_blog_detail,node_blog_language,node_blog_text,node_comments,node_contribute toneMint
class node_search_context,node_search_state,node_occasion_state,node_upload_state,node_pricing_state,node_faq_state,node_blog_api,node_comment_state,node_token,node_api toneRose
class node_visitor toneIndigo
```

## Components

### Discovery experience

- [Home experience](https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Home.jsx): `src/views/Home.jsx`
- [Home routes](https://github.com/evatrilofficial-user/home_page/blob/main/src/app/page.jsx): `src/app/page.jsx`
- [City home route](https://github.com/evatrilofficial-user/home_page/blob/main/src/app/%5BcitySlug%5D/page.jsx): `src/app/[citySlug]/page.jsx`
- [Search popup](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/Reusable_Component/SearchPopup.jsx): `src/components/Reusable_Component/SearchPopup.jsx`
- [Floating sidebar](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/FloatingSidebar.jsx): `src/components/FloatingSidebar.jsx`
- [Sub-navigation](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/SubNavbar.jsx): `src/components/SubNavbar.jsx`
- [Comparison view](https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Compare.jsx): `src/views/Compare.jsx`
- [Comparison route](https://github.com/evatrilofficial-user/home_page/blob/main/src/app/compare/page.jsx): `src/app/compare/page.jsx`

### Invitation creation

- [Upload experience](https://github.com/evatrilofficial-user/home_page/blob/main/src/views/UploadPage/UploadHero.jsx): `src/views/UploadPage/UploadHero.jsx`
- [Occasion selection](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/Reusable_Component/OccasionModal.jsx): `src/components/Reusable_Component/OccasionModal.jsx`
- [Pricing catalog view](https://github.com/evatrilofficial-user/home_page/blob/main/src/views/Pricing.jsx): `src/views/Pricing.jsx`

### Blog and support

- [Support chat](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/SupportChat.jsx): `src/components/SupportChat.jsx`
- [FAQ services](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/Service.jsx): `src/components/Service.jsx`
- [Blog article](https://github.com/evatrilofficial-user/home_page/blob/main/src/app/blog/%5Bslug%5D/page.jsx): `src/app/blog/[slug]/page.jsx`
- [Blog languages](https://github.com/evatrilofficial-user/home_page/blob/main/src/utils/blogLanguages.js): `src/utils/blogLanguages.js`
- [Blog text utilities](https://github.com/evatrilofficial-user/home_page/blob/main/src/utils/blogText.js): `src/utils/blogText.js`
- [Article comments](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/blog/CommentSection.jsx): `src/components/blog/CommentSection.jsx`
- [Blog contribution modal](https://github.com/evatrilofficial-user/home_page/blob/main/src/components/blog/ContributeBlogModal.jsx): `src/components/blog/ContributeBlogModal.jsx`

### App and services

- [Search context](https://github.com/evatrilofficial-user/home_page/blob/main/src/context/SearchContext.jsx): `src/context/SearchContext.jsx`
- [Search suggestions](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/GlobalSearch/searchSlice.js): `src/store/Slices/GlobalSearch/searchSlice.js`
- [Occasion filter](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/OccasionFilter/occasionFilterSlice.js): `src/store/Slices/OccasionFilter/occasionFilterSlice.js`
- [Uploaded themes](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/UploadTheme/uploadThemeSlice.js): `src/store/Slices/UploadTheme/uploadThemeSlice.js`
- [Pricing catalog state](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/PricingCatalog/pricingCatalogSlice.js): `src/store/Slices/PricingCatalog/pricingCatalogSlice.js`
- [FAQ and chat state](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/Faq/faqSlice.js): `src/store/Slices/Faq/faqSlice.js`
- [Blog data API](https://github.com/evatrilofficial-user/home_page/blob/main/src/lib/api/blog.js): `src/lib/api/blog.js`
- [Comment state](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Slices/BlogComments/commentSlice.js): `src/store/Slices/BlogComments/commentSlice.js`
- [Auth token cookie](https://github.com/evatrilofficial-user/home_page/blob/main/src/lib/tokenCookie.js): `src/lib/tokenCookie.js`
- [API middleware](https://github.com/evatrilofficial-user/home_page/blob/main/src/store/Middleware/ApiMiddleware.js): `src/store/Middleware/ApiMiddleware.js`

### Other components

- **Visitor**
- **Evatril API**

## Connections

- Visitor → Home routes: opens (evidence: `src/app/page.jsx`)
- Visitor → City home route: opens (evidence: `src/app/[citySlug]/page.jsx`)
- Home routes → Home experience: renders (evidence: `src/app/page.jsx`)
- City home route → Home experience: renders (evidence: `src/app/[citySlug]/page.jsx`)
- Home experience → Search context: uses (evidence: `src/views/Home.jsx`)
- Home experience → Floating sidebar: renders (evidence: `src/views/Home.jsx`)
- Home experience → Sub-navigation: renders (evidence: `src/views/Home.jsx`)
- Search popup → Search context: uses (evidence: `src/components/Reusable_Component/SearchPopup.jsx`)
- Search popup → Search suggestions: dispatches (evidence: `src/components/Reusable_Component/SearchPopup.jsx`)
- Search suggestions → API middleware: requests data (evidence: `src/store/Slices/GlobalSearch/searchSlice.js`)
- Home experience → Support chat: renders (evidence: `src/views/Home.jsx`)
- FAQ services → FAQ and chat state: dispatches (evidence: `src/components/Service.jsx`)
- FAQ services → Support chat: opens chat (evidence: `src/components/Service.jsx`)
- Visitor → Upload experience: uses
- Upload experience → Occasion selection: opens (evidence: `src/views/UploadPage/UploadHero.jsx`)
- Upload experience → Occasion filter: dispatches (evidence: `src/views/UploadPage/UploadHero.jsx`)
- Upload experience → Uploaded themes: dispatches (evidence: `src/views/UploadPage/UploadHero.jsx`)
- Visitor → Pricing catalog view: views
- Pricing catalog view → Pricing catalog state: fetches catalog (evidence: `src/views/Pricing.jsx`)
- Visitor → Blog article: reads (evidence: `src/app/blog/[slug]/page.jsx`)
- Blog article → Blog data API: loads articles (evidence: `src/app/blog/[slug]/page.jsx`)
- Blog article → Blog languages: uses (evidence: `src/app/blog/[slug]/page.jsx`)
- Blog article → Blog text utilities: formats text (evidence: `src/app/blog/[slug]/page.jsx`)
- Blog article → Article comments: renders (evidence: `src/app/blog/[slug]/page.jsx`)
- Article comments → Comment state: uses (evidence: `src/components/blog/CommentSection.jsx`)
- Article comments → Blog contribution modal: opens (evidence: `src/components/blog/CommentSection.jsx`)
- Article comments → Auth token cookie: reads token (evidence: `src/components/blog/CommentSection.jsx`)
- Blog data API → API middleware: uses requests (evidence: `src/lib/api/blog.js`)
- API middleware → Auth token cookie: reads token (evidence: `src/store/Middleware/ApiMiddleware.js`)
- API middleware → Evatril API: sends requests (evidence: `src/store/Middleware/ApiMiddleware.js`)
- Visitor → Comparison route: opens (evidence: `src/app/compare/page.jsx`)
- Comparison route → Comparison view: renders (evidence: `src/app/compare/page.jsx`)
