# joaomesq/cdh architecture

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

## Overview

CDH is a community website built with Astro and React. Visitors can learn about the community, explore its team and departments, read Markdown blog articles, find event and blog information, and contact or join the community. The README also describes search across events and blogs, though its implementation is not present in the sampled source. The graph preserves documented capabilities and directly evidenced form and component links; page composition and several feature implementations were not sampled.

Main entry points: [`src/content/blog`](https://github.com/joaomesq/cdh/tree/main/src/content/blog) (Blog articles), [`src/pages`](https://github.com/joaomesq/cdh/tree/main/src/pages) (Event and blog search), [`src/pages/blog.astro`](https://github.com/joaomesq/cdh/blob/main/src/pages/blog.astro) (Blog listing), [`src/pages/blog/[...slug].astro`](https://github.com/joaomesq/cdh/blob/main/src/pages/blog/%5B...slug%5D.astro) (Blog article)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site and discovery"]
  node_home["Home page<br/>[index.astro]"]
  node_blogpage["Blog listing<br/>[blog.astro]"]
  node_articlepage["Blog article<br/>[&#91;...slug&#93;.astro]"]
  node_contactpage["Contact page<br/>[contatos.astro]"]
  node_aboutpage["About page<br/>[quem-somos.astro]"]
  node_teampage["Team page<br/>[equipa.astro]"]
  node_search["Event and blog search"]
  node_hero["Homepage slider<br/>[Slider.tsx]"]
end

subgraph group_about["Community profile"]
  node_mission["Mission and values"]
  node_history["Community history<br/>[NossaHistoria.jsx]"]
  node_timeline["Community timeline<br/>[LinhaDoTempo.jsx]"]
  node_aboutsection["About overview<br/>[Quem_Somos.astro]"]
  node_activities["What we do<br/>[OqueFazemos.astro]"]
  node_partners["Partners<br/>[Parceiros.jsx]"]
  node_team["Community team<br/>[Equipa.tsx]"]
  node_departments["Departments<br/>[Departamento.tsx]"]
end

subgraph group_engagement["Member engagement"]
  node_cta["Call to action<br/>[Call-Action.tsx]"]
  node_contactform["Contact form<br/>[ContatoForm.tsx]"]
  node_contactinfo["Contact channels<br/>[ContatoInfo.tsx]"]
  node_newsletter["Newsletter signup<br/>[Newsletter.tsx]"]
end

subgraph group_content["Editorial content"]
  node_blogcollection["Blog articles"]
  node_blogconfig["Blog content schema<br/>[config.ts]"]
  node_events["Event information"]
end

node_visitor(("Website visitor"))
node_formsubmit["FormSubmit"]

node_visitor -->|"visits"| node_home
node_visitor -->|"browses"| node_blogpage
node_visitor -->|"reads"| node_articlepage
node_visitor -->|"learns about"| node_aboutpage
node_visitor -->|"explores"| node_teampage
node_visitor -->|"contacts"| node_contactpage
node_visitor -->|"searches"| node_search
node_visitor -->|"discovers"| node_events
node_hero -->|"renders"| node_cta
node_contactform -->|"submits to"| node_formsubmit
node_newsletter -->|"submits to"| node_formsubmit
node_blogpage -.->|"lists articles"| node_blogcollection
node_articlepage -.->|"renders articles"| node_blogcollection
node_blogconfig -->|"defines schema"| node_blogcollection
node_search -.->|"searches"| node_blogcollection
node_search -.->|"searches"| node_events

click node_home "https://github.com/joaomesq/cdh/blob/main/src/pages/index.astro"
click node_blogpage "https://github.com/joaomesq/cdh/blob/main/src/pages/blog.astro"
click node_articlepage "https://github.com/joaomesq/cdh/blob/main/src/pages/blog/%5B...slug%5D.astro"
click node_contactpage "https://github.com/joaomesq/cdh/blob/main/src/pages/contatos.astro"
click node_aboutpage "https://github.com/joaomesq/cdh/blob/main/src/pages/quem-somos.astro"
click node_teampage "https://github.com/joaomesq/cdh/blob/main/src/pages/equipa.astro"
click node_search "https://github.com/joaomesq/cdh/tree/main/src/pages"
click node_hero "https://github.com/joaomesq/cdh/blob/main/src/components/Slider/Slider.tsx"
click node_cta "https://github.com/joaomesq/cdh/blob/main/src/components/Call-To-Action/Call-Action.tsx"
click node_mission "https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/MissaoVisaoValores.jsx"
click node_history "https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/NossaHistoria.jsx"
click node_timeline "https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/LinhaDoTempo.jsx"
click node_aboutsection "https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/Quem_Somos.astro"
click node_activities "https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/OqueFazemos/OqueFazemos.astro"
click node_partners "https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/Parceiros.jsx"
click node_team "https://github.com/joaomesq/cdh/blob/main/src/components/Equipa/Equipa.tsx"
click node_departments "https://github.com/joaomesq/cdh/blob/main/src/components/Departamento/Departamento.tsx"
click node_contactform "https://github.com/joaomesq/cdh/blob/main/src/components/Contatos/ContatoForm.tsx"
click node_contactinfo "https://github.com/joaomesq/cdh/blob/main/src/components/Contatos/ContatoInfo.tsx"
click node_newsletter "https://github.com/joaomesq/cdh/blob/main/src/components/Newsletter/Newsletter.tsx"
click node_blogcollection "https://github.com/joaomesq/cdh/tree/main/src/content/blog"
click node_blogconfig "https://github.com/joaomesq/cdh/blob/main/src/content/config.ts"
click node_events "https://github.com/joaomesq/cdh/tree/main/src/pages"

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_blogpage,node_articlepage,node_contactpage,node_aboutpage,node_teampage,node_search,node_hero toneBlue
class node_mission,node_history,node_timeline,node_aboutsection,node_activities,node_partners,node_team,node_departments toneAmber
class node_cta,node_contactform,node_contactinfo,node_newsletter toneMint
class node_blogcollection,node_blogconfig,node_events toneRose
class node_visitor,node_formsubmit toneIndigo
```

## Components

### Site and discovery

- [Home page](https://github.com/joaomesq/cdh/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [Blog listing](https://github.com/joaomesq/cdh/blob/main/src/pages/blog.astro): `src/pages/blog.astro`
- [Blog article](https://github.com/joaomesq/cdh/blob/main/src/pages/blog/%5B...slug%5D.astro): `src/pages/blog/[...slug].astro`
- [Contact page](https://github.com/joaomesq/cdh/blob/main/src/pages/contatos.astro): `src/pages/contatos.astro`
- [About page](https://github.com/joaomesq/cdh/blob/main/src/pages/quem-somos.astro): `src/pages/quem-somos.astro`
- [Team page](https://github.com/joaomesq/cdh/blob/main/src/pages/equipa.astro): `src/pages/equipa.astro`
- [Event and blog search](https://github.com/joaomesq/cdh/tree/main/src/pages): `src/pages`
- [Homepage slider](https://github.com/joaomesq/cdh/blob/main/src/components/Slider/Slider.tsx): `src/components/Slider/Slider.tsx`

### Community profile

- [Mission and values](https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/MissaoVisaoValores.jsx): `src/components/Quem-Somos/MissaoVisaoValores.jsx`
- [Community history](https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/NossaHistoria.jsx): `src/components/Quem-Somos/NossaHistoria.jsx`
- [Community timeline](https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/LinhaDoTempo.jsx): `src/components/Quem-Somos/LinhaDoTempo.jsx`
- [About overview](https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/Quem_Somos.astro): `src/components/Quem-Somos/Quem_Somos.astro`
- [What we do](https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/OqueFazemos/OqueFazemos.astro): `src/components/Quem-Somos/OqueFazemos/OqueFazemos.astro`
- [Partners](https://github.com/joaomesq/cdh/blob/main/src/components/Quem-Somos/Parceiros.jsx): `src/components/Quem-Somos/Parceiros.jsx`
- [Community team](https://github.com/joaomesq/cdh/blob/main/src/components/Equipa/Equipa.tsx): `src/components/Equipa/Equipa.tsx`
- [Departments](https://github.com/joaomesq/cdh/blob/main/src/components/Departamento/Departamento.tsx): `src/components/Departamento/Departamento.tsx`

### Member engagement

- [Call to action](https://github.com/joaomesq/cdh/blob/main/src/components/Call-To-Action/Call-Action.tsx): `src/components/Call-To-Action/Call-Action.tsx`
- [Contact form](https://github.com/joaomesq/cdh/blob/main/src/components/Contatos/ContatoForm.tsx): `src/components/Contatos/ContatoForm.tsx`
- [Contact channels](https://github.com/joaomesq/cdh/blob/main/src/components/Contatos/ContatoInfo.tsx): `src/components/Contatos/ContatoInfo.tsx`
- [Newsletter signup](https://github.com/joaomesq/cdh/blob/main/src/components/Newsletter/Newsletter.tsx): `src/components/Newsletter/Newsletter.tsx`

### Editorial content

- [Blog articles](https://github.com/joaomesq/cdh/tree/main/src/content/blog): `src/content/blog`
- [Blog content schema](https://github.com/joaomesq/cdh/blob/main/src/content/config.ts): `src/content/config.ts`
- [Event information](https://github.com/joaomesq/cdh/tree/main/src/pages): `src/pages`

### Other components

- **Website visitor**
- **FormSubmit**

## Connections

- Website visitor → Home page: visits (evidence: `README.md`)
- Website visitor → Blog listing: browses (evidence: `README.md`)
- Website visitor → Blog article: reads (evidence: `README.md`)
- Website visitor → About page: learns about (evidence: `README.md`)
- Website visitor → Team page: explores (evidence: `README.md`)
- Website visitor → Contact page: contacts (evidence: `README.md`)
- Website visitor → Event and blog search: searches (evidence: `README.md`)
- Website visitor → Event information: discovers (evidence: `README.md`)
- Homepage slider → Call to action: renders (evidence: `src/components/Slider/Slider.tsx`)
- Contact form → FormSubmit: submits to (evidence: `src/components/Contatos/ContatoForm.tsx`)
- Newsletter signup → FormSubmit: submits to (evidence: `src/components/Newsletter/Newsletter.tsx`)
- Blog listing → Blog articles: lists articles (evidence: `README.md`)
- Blog article → Blog articles: renders articles (evidence: `README.md`)
- Blog content schema → Blog articles: defines schema (evidence: `src/content/config.ts`)
- Event and blog search → Blog articles: searches (evidence: `README.md`)
- Event and blog search → Event information: searches (evidence: `README.md`)
