# greenbird122/bunyala-agriclimate architecture

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

- Interactive diagram: https://gitdiagram.com/greenbird122/bunyala-agriclimate
- Repository: https://github.com/greenbird122/bunyala-agriclimate

## Overview

This is a multilingual React website for Bunyala Agri-Climate Industrial Park. Visitors enter through the routed app to explore company information, solutions, impact, people, news, galleries, and contact options. Pages combine static content with Sanity-backed news and gallery data; shared layout, localization, theme, and presentation components support that experience. Several pages and integrations are represented by the tree or README but were not sampled, so those links are omitted or marked unverified rather than assumed.

Main entry points: [`src/App.jsx`](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/App.jsx) (Router and layout), [`src/pages/Impact.jsx`](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Impact.jsx) (Impact), [`src/pages/About.jsx`](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/About.jsx) (About), [`src/hooks/useGalleryImages.jsx`](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/hooks/useGalleryImages.jsx) (Gallery data hook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site navigation"]
  node_app["Router and layout<br/>[App.jsx]"]
end

subgraph group_content["Company content"]
  node_home["Home<br/>[Home.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_solutions["Solutions<br/>[Solutions.jsx]"]
  node_solution_detail["Solution detail<br/>[SolutionDetail.jsx]"]
  node_impact["Impact<br/>[Impact.jsx]"]
  node_team["Team<br/>[Team.jsx]"]
  node_team_detail["Team profile"]
  node_partners["Partners<br/>[Partners.jsx]"]
  node_news["News<br/>[News.jsx]"]
  node_article["Article detail<br/>[ArticleDetail.jsx]"]
  node_contact["Contact<br/>[Contact.jsx]"]
  node_impact_data["Impact statistics<br/>[impact-stats.js]"]
  node_sdg_data["SDG content<br/>[sdgs.js]"]
end

subgraph group_media["Media and CMS"]
  node_gallery["Gallery<br/>[Gallery.jsx]"]
  node_gallery_hook["Gallery data hook"]
  node_sanity["Sanity client<br/>[sanity.js]"]
  node_sanity_service[("Sanity CMS")]
  node_image_url["Image URL helpers<br/>[imageUrl.js]"]
  node_masonry["Image masonry<br/>[ImageMasonry.jsx]"]
end

subgraph group_shared["Shared experience"]
  node_header["Navigation header<br/>[Header.jsx]"]
  node_i18n["Language provider<br/>[index.jsx]"]
  node_dark_mode["Dark mode provider<br/>[useDarkMode.jsx]"]
  node_hero["Hero section<br/>[Hero.jsx]"]
  node_feature["Feature callout<br/>[FeatureCallout.jsx]"]
  node_stats["Impact counters<br/>[StatsCounter.jsx]"]
  node_sdg_badge["SDG badges<br/>[SDGBadge.jsx]"]
  node_newsletter["Newsletter form<br/>[NewsletterForm.jsx]"]
  node_social["Social links<br/>[SocialIcons.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_solutions
node_app -->|"routes to"| node_solution_detail
node_app -->|"routes to"| node_impact
node_app -->|"routes to"| node_team
node_app -->|"routes to"| node_team_detail
node_app -->|"routes to"| node_partners
node_app -->|"routes to"| node_news
node_app -->|"routes to"| node_article
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_gallery
node_app -->|"renders"| node_header
node_app -->|"provides"| node_i18n
node_app -->|"provides"| node_dark_mode
node_about -->|"renders"| node_hero
node_about -->|"renders"| node_feature
node_about -->|"renders"| node_sdg_badge
node_about -->|"renders"| node_masonry
node_impact -->|"renders"| node_stats
node_impact -->|"renders"| node_sdg_badge
node_impact -->|"renders"| node_masonry
node_impact -->|"loads gallery"| node_gallery_hook
node_impact -->|"uses statistics"| node_impact_data
node_impact -->|"uses goals"| node_sdg_data
node_gallery -->|"loads images"| node_gallery_hook
node_gallery -->|"renders"| node_masonry
node_gallery_hook -->|"fetches gallery"| node_sanity
node_gallery_hook -.->|"queries"| node_sanity_service
node_gallery_hook -.->|"builds image URLs"| node_image_url
node_news -.->|"loads articles"| node_sanity
node_article -.->|"loads article"| node_sanity
node_team_detail -.->|"loads profile"| node_sanity
node_masonry -->|"formats images"| node_image_url
node_about -->|"translates text"| node_i18n
node_header -->|"reads language"| node_i18n
node_header -->|"toggles theme"| node_dark_mode
node_contact -->|"renders"| node_newsletter
node_contact -->|"renders"| node_social
node_newsletter -.->|"collects signup"| node_visitor

click node_app "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/App.jsx"
click node_header "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/layout/Header.jsx"
click node_home "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Home.jsx"
click node_about "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/About.jsx"
click node_solutions "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Solutions.jsx"
click node_solution_detail "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/SolutionDetail.jsx"
click node_impact "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Impact.jsx"
click node_team "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Team.jsx"
click node_team_detail "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/TeamMemberDetail.jsx"
click node_partners "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Partners.jsx"
click node_news "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/News.jsx"
click node_article "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/ArticleDetail.jsx"
click node_contact "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Contact.jsx"
click node_gallery "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Gallery.jsx"
click node_gallery_hook "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/hooks/useGalleryImages.jsx"
click node_sanity "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/lib/sanity.js"
click node_image_url "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/lib/imageUrl.js"
click node_masonry "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/ImageMasonry.jsx"
click node_i18n "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/i18n/index.jsx"
click node_dark_mode "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/hooks/useDarkMode.jsx"
click node_hero "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/Hero.jsx"
click node_feature "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/sections/FeatureCallout.jsx"
click node_stats "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/StatsCounter.jsx"
click node_impact_data "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/data/impact-stats.js"
click node_sdg_badge "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/SDGBadge.jsx"
click node_sdg_data "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/data/sdgs.js"
click node_newsletter "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/NewsletterForm.jsx"
click node_social "https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/SocialIcons.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_app toneBlue
class node_home,node_about,node_solutions,node_solution_detail,node_impact,node_team,node_team_detail,node_partners,node_news,node_article,node_contact,node_impact_data,node_sdg_data toneAmber
class node_gallery,node_gallery_hook,node_sanity,node_sanity_service,node_image_url,node_masonry toneMint
class node_header,node_i18n,node_dark_mode,node_hero,node_feature,node_stats,node_sdg_badge,node_newsletter,node_social toneRose
class node_visitor toneIndigo
```

## Components

### Site navigation

- [Router and layout](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/App.jsx): `src/App.jsx`

### Company content

- [Home](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [About](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Solutions](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Solutions.jsx): `src/pages/Solutions.jsx`
- [Solution detail](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/SolutionDetail.jsx): `src/pages/SolutionDetail.jsx`
- [Impact](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Impact.jsx): `src/pages/Impact.jsx`
- [Team](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Team.jsx): `src/pages/Team.jsx`
- [Team profile](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/TeamMemberDetail.jsx): `src/pages/TeamMemberDetail.jsx`
- [Partners](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Partners.jsx): `src/pages/Partners.jsx`
- [News](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/News.jsx): `src/pages/News.jsx`
- [Article detail](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/ArticleDetail.jsx): `src/pages/ArticleDetail.jsx`
- [Contact](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Contact.jsx): `src/pages/Contact.jsx`
- [Impact statistics](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/data/impact-stats.js): `src/data/impact-stats.js`
- [SDG content](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/data/sdgs.js): `src/data/sdgs.js`

### Media and CMS

- [Gallery](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/pages/Gallery.jsx): `src/pages/Gallery.jsx`
- [Gallery data hook](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/hooks/useGalleryImages.jsx): `src/hooks/useGalleryImages.jsx`
- [Sanity client](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/lib/sanity.js): `src/lib/sanity.js`
- **Sanity CMS**
- [Image URL helpers](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/lib/imageUrl.js): `src/lib/imageUrl.js`
- [Image masonry](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/ImageMasonry.jsx): `src/components/ui/ImageMasonry.jsx`

### Shared experience

- [Navigation header](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/layout/Header.jsx): `src/components/layout/Header.jsx`
- [Language provider](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/i18n/index.jsx): `src/i18n/index.jsx`
- [Dark mode provider](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/hooks/useDarkMode.jsx): `src/hooks/useDarkMode.jsx`
- [Hero section](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/Hero.jsx): `src/components/ui/Hero.jsx`
- [Feature callout](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/sections/FeatureCallout.jsx): `src/components/sections/FeatureCallout.jsx`
- [Impact counters](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/StatsCounter.jsx): `src/components/ui/StatsCounter.jsx`
- [SDG badges](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/SDGBadge.jsx): `src/components/ui/SDGBadge.jsx`
- [Newsletter form](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/NewsletterForm.jsx): `src/components/ui/NewsletterForm.jsx`
- [Social links](https://github.com/greenbird122/bunyala-agriclimate/blob/main/src/components/ui/SocialIcons.jsx): `src/components/ui/SocialIcons.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → Router and layout: opens (evidence: `src/App.jsx`)
- Router and layout → Home: routes to (evidence: `src/App.jsx`)
- Router and layout → About: routes to (evidence: `src/App.jsx`)
- Router and layout → Solutions: routes to (evidence: `src/App.jsx`)
- Router and layout → Solution detail: routes to (evidence: `src/App.jsx`)
- Router and layout → Impact: routes to (evidence: `src/App.jsx`)
- Router and layout → Team: routes to (evidence: `src/App.jsx`)
- Router and layout → Team profile: routes to (evidence: `src/App.jsx`)
- Router and layout → Partners: routes to (evidence: `src/App.jsx`)
- Router and layout → News: routes to (evidence: `src/App.jsx`)
- Router and layout → Article detail: routes to (evidence: `src/App.jsx`)
- Router and layout → Contact: routes to (evidence: `src/App.jsx`)
- Router and layout → Gallery: routes to (evidence: `src/App.jsx`)
- Router and layout → Navigation header: renders (evidence: `src/App.jsx`)
- Router and layout → Language provider: provides (evidence: `src/App.jsx`)
- Router and layout → Dark mode provider: provides (evidence: `src/App.jsx`)
- About → Hero section: renders (evidence: `src/pages/About.jsx`)
- About → Feature callout: renders (evidence: `src/pages/About.jsx`)
- About → SDG badges: renders (evidence: `src/pages/About.jsx`)
- About → Image masonry: renders (evidence: `src/pages/About.jsx`)
- Impact → Impact counters: renders (evidence: `src/pages/Impact.jsx`)
- Impact → SDG badges: renders (evidence: `src/pages/Impact.jsx`)
- Impact → Image masonry: renders (evidence: `src/pages/Impact.jsx`)
- Impact → Gallery data hook: loads gallery (evidence: `src/pages/Impact.jsx`)
- Impact → Impact statistics: uses statistics (evidence: `src/pages/Impact.jsx`)
- Impact → SDG content: uses goals (evidence: `src/pages/Impact.jsx`)
- Gallery → Gallery data hook: loads images (evidence: `src/pages/Gallery.jsx`)
- Gallery → Image masonry: renders (evidence: `src/pages/Gallery.jsx`)
- Gallery data hook → Sanity client: fetches gallery (evidence: `src/hooks/useGalleryImages.jsx`)
- Gallery data hook → Sanity CMS: queries
- Gallery data hook → Image URL helpers: builds image URLs
- News → Sanity client: loads articles (evidence: `src/pages/News.jsx`)
- Article detail → Sanity client: loads article (evidence: `src/pages/ArticleDetail.jsx`)
- Team profile → Sanity client: loads profile (evidence: `src/pages/TeamMemberDetail.jsx`)
- Image masonry → Image URL helpers: formats images (evidence: `src/components/ui/ImageMasonry.jsx`)
- About → Language provider: translates text (evidence: `src/pages/About.jsx`)
- Navigation header → Language provider: reads language (evidence: `src/components/layout/Header.jsx`)
- Navigation header → Dark mode provider: toggles theme (evidence: `src/components/layout/Header.jsx`)
- Contact → Newsletter form: renders (evidence: `src/pages/Contact.jsx`)
- Contact → Social links: renders (evidence: `src/pages/Contact.jsx`)
- Newsletter form → Visitor: collects signup
