# abeergandhi/credence architecture

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

## Overview

Credence is a real-estate brokerage marketing site for Dubai properties and services. Visitors browse property listings and area information, explore services and company content, then follow contact links to inquire. The sampled code shows a React Router app with a shared navigation/footer layout and page-level components; it does not show a backend, listing database, or transaction workflow. The README is the generic React/Vite template, so product capabilities are inferred from the source index and sampled page excerpts.

Main entry points: [`src/App.jsx`](https://github.com/abeergandhi/credence/blob/main/src/App.jsx) (Route App), [`src/pages/Properties.jsx`](https://github.com/abeergandhi/credence/blob/main/src/pages/Properties.jsx) (Properties), [`src/layouts/MainLayout.jsx`](https://github.com/abeergandhi/credence/blob/main/src/layouts/MainLayout.jsx) (Main Layout), [`src/pages/Services.jsx`](https://github.com/abeergandhi/credence/blob/main/src/pages/Services.jsx) (Services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and Navigation"]
  node_app["Route App<br/>[App.jsx]"]
  node_layout["Main Layout<br/>[MainLayout.jsx]"]
end

subgraph group_property["Property Discovery"]
  node_home["Home<br/>[Home.jsx]"]
  node_properties["Properties<br/>[Properties.jsx]"]
  node_property_card["Property Card<br/>[PropertyCard.jsx]"]
  node_area_modal["Area Details"]
end

subgraph group_content["Company Content"]
  node_services["Services<br/>[Services.jsx]"]
  node_developers["Developers<br/>[Developers.jsx]"]
  node_blogs["Blogs<br/>[Blogs.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_guide["Buyer Guide<br/>[Guide.jsx]"]
end

subgraph group_shared["Shared UI"]
  node_navbar["Navbar<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_scroll_top["Scroll Reset<br/>[ScrollToTop.jsx]"]
  node_scroll_button["Scroll Button<br/>[ScrollButton.jsx]"]
  node_contact_dropdown["Contact Options"]
end

node_visitor(("Visitor"))
node_whatsapp["WhatsApp"]

node_visitor -->|"opens routes"| node_app
node_app -->|"wraps pages"| node_layout
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_properties
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_developers
node_app -->|"routes to"| node_blogs
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_guide
node_app -->|"renders"| node_scroll_top
node_app -->|"renders"| node_scroll_button
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_footer
node_properties -->|"renders listings"| node_property_card
node_properties -->|"uses area details"| node_area_modal
node_properties -.->|"uses contact options"| node_contact_dropdown
node_services -->|"renders contact options"| node_contact_dropdown
node_blogs -.->|"uses contact options"| node_contact_dropdown
node_navbar -->|"links to"| node_whatsapp
node_home -->|"links to"| node_whatsapp
node_services -->|"links to"| node_whatsapp
node_footer -->|"links to"| node_whatsapp

click node_app "https://github.com/abeergandhi/credence/blob/main/src/App.jsx"
click node_layout "https://github.com/abeergandhi/credence/blob/main/src/layouts/MainLayout.jsx"
click node_home "https://github.com/abeergandhi/credence/blob/main/src/pages/Home.jsx"
click node_properties "https://github.com/abeergandhi/credence/blob/main/src/pages/Properties.jsx"
click node_property_card "https://github.com/abeergandhi/credence/blob/main/src/components/PropertyCard.jsx"
click node_area_modal "https://github.com/abeergandhi/credence/blob/main/src/components/AreaDetailsModal.jsx"
click node_services "https://github.com/abeergandhi/credence/blob/main/src/pages/Services.jsx"
click node_developers "https://github.com/abeergandhi/credence/blob/main/src/pages/Developers.jsx"
click node_blogs "https://github.com/abeergandhi/credence/blob/main/src/pages/Blogs.jsx"
click node_about "https://github.com/abeergandhi/credence/blob/main/src/pages/About.jsx"
click node_guide "https://github.com/abeergandhi/credence/blob/main/src/pages/Guide.jsx"
click node_navbar "https://github.com/abeergandhi/credence/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/abeergandhi/credence/blob/main/src/components/Footer.jsx"
click node_scroll_top "https://github.com/abeergandhi/credence/blob/main/src/components/ScrollToTop.jsx"
click node_scroll_button "https://github.com/abeergandhi/credence/blob/main/src/components/ScrollButton.jsx"
click node_contact_dropdown "https://github.com/abeergandhi/credence/blob/main/src/components/ContactDropdown.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,node_layout toneBlue
class node_home,node_properties,node_property_card,node_area_modal toneAmber
class node_services,node_developers,node_blogs,node_about,node_guide toneMint
class node_navbar,node_footer,node_scroll_top,node_scroll_button,node_contact_dropdown toneRose
class node_visitor,node_whatsapp toneIndigo
```

## Components

### App and Navigation

- [Route App](https://github.com/abeergandhi/credence/blob/main/src/App.jsx): `src/App.jsx`
- [Main Layout](https://github.com/abeergandhi/credence/blob/main/src/layouts/MainLayout.jsx): `src/layouts/MainLayout.jsx`

### Property Discovery

- [Home](https://github.com/abeergandhi/credence/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Properties](https://github.com/abeergandhi/credence/blob/main/src/pages/Properties.jsx): `src/pages/Properties.jsx`
- [Property Card](https://github.com/abeergandhi/credence/blob/main/src/components/PropertyCard.jsx): `src/components/PropertyCard.jsx`
- [Area Details](https://github.com/abeergandhi/credence/blob/main/src/components/AreaDetailsModal.jsx): `src/components/AreaDetailsModal.jsx`

### Company Content

- [Services](https://github.com/abeergandhi/credence/blob/main/src/pages/Services.jsx): `src/pages/Services.jsx`
- [Developers](https://github.com/abeergandhi/credence/blob/main/src/pages/Developers.jsx): `src/pages/Developers.jsx`
- [Blogs](https://github.com/abeergandhi/credence/blob/main/src/pages/Blogs.jsx): `src/pages/Blogs.jsx`
- [About](https://github.com/abeergandhi/credence/blob/main/src/pages/About.jsx): `src/pages/About.jsx`
- [Buyer Guide](https://github.com/abeergandhi/credence/blob/main/src/pages/Guide.jsx): `src/pages/Guide.jsx`

### Shared UI

- [Navbar](https://github.com/abeergandhi/credence/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer](https://github.com/abeergandhi/credence/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Scroll Reset](https://github.com/abeergandhi/credence/blob/main/src/components/ScrollToTop.jsx): `src/components/ScrollToTop.jsx`
- [Scroll Button](https://github.com/abeergandhi/credence/blob/main/src/components/ScrollButton.jsx): `src/components/ScrollButton.jsx`
- [Contact Options](https://github.com/abeergandhi/credence/blob/main/src/components/ContactDropdown.jsx): `src/components/ContactDropdown.jsx`

### Other components

- **Visitor**
- **WhatsApp**

## Connections

- Visitor → Route App: opens routes (evidence: `src/App.jsx`)
- Route App → Main Layout: wraps pages (evidence: `src/App.jsx`)
- Route App → Home: routes to (evidence: `src/App.jsx`)
- Route App → Properties: routes to (evidence: `src/App.jsx`)
- Route App → Services: routes to (evidence: `src/App.jsx`)
- Route App → Developers: routes to (evidence: `src/App.jsx`)
- Route App → Blogs: routes to (evidence: `src/App.jsx`)
- Route App → About: routes to (evidence: `src/App.jsx`)
- Route App → Buyer Guide: routes to (evidence: `src/App.jsx`)
- Route App → Scroll Reset: renders (evidence: `src/App.jsx`)
- Route App → Scroll Button: renders (evidence: `src/App.jsx`)
- Main Layout → Navbar: renders (evidence: `src/layouts/MainLayout.jsx`)
- Main Layout → Footer: renders (evidence: `src/layouts/MainLayout.jsx`)
- Properties → Property Card: renders listings (evidence: `src/pages/Properties.jsx`)
- Properties → Area Details: uses area details (evidence: `src/pages/Properties.jsx`)
- Properties → Contact Options: uses contact options (evidence: `src/pages/Properties.jsx`)
- Services → Contact Options: renders contact options (evidence: `src/pages/Services.jsx`)
- Blogs → Contact Options: uses contact options (evidence: `src/pages/Blogs.jsx`)
- Navbar → WhatsApp: links to (evidence: `src/components/Navbar.jsx`)
- Home → WhatsApp: links to (evidence: `src/pages/Home.jsx`)
- Services → WhatsApp: links to (evidence: `src/pages/Services.jsx`)
- Footer → WhatsApp: links to (evidence: `src/components/Footer.jsx`)
