# agladima/fgr architecture

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

- Interactive diagram: https://gitdiagram.com/agladima/fgr
- Repository: https://github.com/agladima/fgr

## Overview

This is the public-facing website for FGR Career Development Center. Visitors learn about the organization, explore skills programmes and partnerships, review impact and resources, and reach contact, enrolment, or partnership-enquiry forms. The sampled forms show client-side validation and feedback, but no submission service or persistent store; those connections are therefore omitted. Some page and shared-component relationships are supported by the source index or excerpts, while unsampled implementation details are not inferred.

Main entry points: [`frontend/src/app/page.tsx`](https://github.com/agladima/fgr/blob/master/frontend/src/app/page.tsx) (Home), [`frontend/src/app/programmes/page.tsx`](https://github.com/agladima/fgr/blob/master/frontend/src/app/programmes/page.tsx) (Programmes), [`frontend/src/app/partnership-enquiry/page.tsx`](https://github.com/agladima/fgr/blob/master/frontend/src/app/partnership-enquiry/page.tsx) (Partnership enquiry), [`frontend/src/components/ui/Container/Container.tsx`](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Container/Container.tsx) (Container)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Public pages"]
  node_home["Home<br/>[page.tsx]"]
  node_about["About<br/>[page.tsx]"]
  node_programmes["Programmes<br/>[page.tsx]"]
  node_partnerships["Partnerships<br/>[page.tsx]"]
  node_impact["Impact<br/>[page.tsx]"]
  node_news["News and events<br/>[page.tsx]"]
  node_services["Professional services<br/>[page.tsx]"]
  node_resources["Resources<br/>[page.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
end

subgraph group_navigation["Site navigation"]
  node_header["Header navigation<br/>[Header.tsx]"]
  node_mobile["Mobile navigation<br/>[MobileNav.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_shared["Shared presentation"]
  node_container["Container<br/>[Container.tsx]"]
  node_button["Button<br/>[Button.tsx]"]
  node_card["Card<br/>[Card.tsx]"]
  node_badge["Badge<br/>[Badge.tsx]"]
  node_heading["Section heading<br/>[SectionHeading.tsx]"]
  node_feedback["Feedback state<br/>[FeedbackState.tsx]"]
  node_motion["Motion section<br/>[MotionSection.tsx]"]
  node_stagger["Stagger group<br/>[StaggerGroup.tsx]"]
end

subgraph group_forms["Enquiry and enrolment"]
  node_contact["Contact form<br/>[page.tsx]"]
  node_registration["Registration form<br/>[page.tsx]"]
  node_partnerform["Partnership enquiry<br/>[page.tsx]"]
  node_validation["Field validation<br/>[validation.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"submits details"| node_contact
node_visitor -->|"registers"| node_registration
node_visitor -->|"enquires"| node_partnerform
node_header -->|"opens drawer"| node_mobile
node_home -->|"links to"| node_programmes
node_about -->|"links to"| node_programmes
node_contact -->|"links to"| node_partnerform
node_registration -->|"validates fields"| node_validation
node_home -->|"renders"| node_container
node_home -->|"renders"| node_button
node_home -->|"renders"| node_heading
node_home -->|"renders"| node_motion
node_home -->|"renders"| node_stagger
node_programmes -->|"renders"| node_container
node_programmes -->|"renders"| node_heading
node_programmes -->|"renders"| node_stagger
node_partnerform -->|"renders"| node_feedback
node_footer -->|"renders"| node_container
node_layout -.->|"serves pages"| node_visitor

click node_home "https://github.com/agladima/fgr/blob/master/frontend/src/app/page.tsx"
click node_about "https://github.com/agladima/fgr/blob/master/frontend/src/app/about/page.tsx"
click node_programmes "https://github.com/agladima/fgr/blob/master/frontend/src/app/programmes/page.tsx"
click node_partnerships "https://github.com/agladima/fgr/blob/master/frontend/src/app/partnerships/page.tsx"
click node_impact "https://github.com/agladima/fgr/blob/master/frontend/src/app/impact/page.tsx"
click node_news "https://github.com/agladima/fgr/blob/master/frontend/src/app/news-events/page.tsx"
click node_services "https://github.com/agladima/fgr/blob/master/frontend/src/app/professional-services/page.tsx"
click node_resources "https://github.com/agladima/fgr/blob/master/frontend/src/app/resources/page.tsx"
click node_header "https://github.com/agladima/fgr/blob/master/frontend/src/components/navigation/Header/Header.tsx"
click node_mobile "https://github.com/agladima/fgr/blob/master/frontend/src/components/navigation/MobileNav/MobileNav.tsx"
click node_footer "https://github.com/agladima/fgr/blob/master/frontend/src/components/layout/Footer/Footer.tsx"
click node_contact "https://github.com/agladima/fgr/blob/master/frontend/src/app/contact/page.tsx"
click node_registration "https://github.com/agladima/fgr/blob/master/frontend/src/app/register/page.tsx"
click node_partnerform "https://github.com/agladima/fgr/blob/master/frontend/src/app/partnership-enquiry/page.tsx"
click node_validation "https://github.com/agladima/fgr/blob/master/frontend/src/lib/validation.ts"
click node_container "https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Container/Container.tsx"
click node_button "https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Button/Button.tsx"
click node_card "https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Card/Card.tsx"
click node_badge "https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Badge/Badge.tsx"
click node_heading "https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/SectionHeading/SectionHeading.tsx"
click node_feedback "https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Feedback/FeedbackState.tsx"
click node_motion "https://github.com/agladima/fgr/blob/master/frontend/src/components/animations/MotionSection.tsx"
click node_stagger "https://github.com/agladima/fgr/blob/master/frontend/src/components/animations/StaggerGroup.tsx"
click node_layout "https://github.com/agladima/fgr/blob/master/frontend/src/app/layout.tsx"

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_about,node_programmes,node_partnerships,node_impact,node_news,node_services,node_resources,node_layout toneBlue
class node_header,node_mobile,node_footer toneAmber
class node_container,node_button,node_card,node_badge,node_heading,node_feedback,node_motion,node_stagger toneMint
class node_contact,node_registration,node_partnerform,node_validation toneRose
class node_visitor toneIndigo
```

## Components

### Public pages

- [Home](https://github.com/agladima/fgr/blob/master/frontend/src/app/page.tsx): `frontend/src/app/page.tsx`
- [About](https://github.com/agladima/fgr/blob/master/frontend/src/app/about/page.tsx): `frontend/src/app/about/page.tsx`
- [Programmes](https://github.com/agladima/fgr/blob/master/frontend/src/app/programmes/page.tsx): `frontend/src/app/programmes/page.tsx`
- [Partnerships](https://github.com/agladima/fgr/blob/master/frontend/src/app/partnerships/page.tsx): `frontend/src/app/partnerships/page.tsx`
- [Impact](https://github.com/agladima/fgr/blob/master/frontend/src/app/impact/page.tsx): `frontend/src/app/impact/page.tsx`
- [News and events](https://github.com/agladima/fgr/blob/master/frontend/src/app/news-events/page.tsx): `frontend/src/app/news-events/page.tsx`
- [Professional services](https://github.com/agladima/fgr/blob/master/frontend/src/app/professional-services/page.tsx): `frontend/src/app/professional-services/page.tsx`
- [Resources](https://github.com/agladima/fgr/blob/master/frontend/src/app/resources/page.tsx): `frontend/src/app/resources/page.tsx`
- [Root layout](https://github.com/agladima/fgr/blob/master/frontend/src/app/layout.tsx): `frontend/src/app/layout.tsx`

### Site navigation

- [Header navigation](https://github.com/agladima/fgr/blob/master/frontend/src/components/navigation/Header/Header.tsx): `frontend/src/components/navigation/Header/Header.tsx`
- [Mobile navigation](https://github.com/agladima/fgr/blob/master/frontend/src/components/navigation/MobileNav/MobileNav.tsx): `frontend/src/components/navigation/MobileNav/MobileNav.tsx`
- [Footer](https://github.com/agladima/fgr/blob/master/frontend/src/components/layout/Footer/Footer.tsx): `frontend/src/components/layout/Footer/Footer.tsx`

### Shared presentation

- [Container](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Container/Container.tsx): `frontend/src/components/ui/Container/Container.tsx`
- [Button](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Button/Button.tsx): `frontend/src/components/ui/Button/Button.tsx`
- [Card](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Card/Card.tsx): `frontend/src/components/ui/Card/Card.tsx`
- [Badge](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Badge/Badge.tsx): `frontend/src/components/ui/Badge/Badge.tsx`
- [Section heading](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/SectionHeading/SectionHeading.tsx): `frontend/src/components/ui/SectionHeading/SectionHeading.tsx`
- [Feedback state](https://github.com/agladima/fgr/blob/master/frontend/src/components/ui/Feedback/FeedbackState.tsx): `frontend/src/components/ui/Feedback/FeedbackState.tsx`
- [Motion section](https://github.com/agladima/fgr/blob/master/frontend/src/components/animations/MotionSection.tsx): `frontend/src/components/animations/MotionSection.tsx`
- [Stagger group](https://github.com/agladima/fgr/blob/master/frontend/src/components/animations/StaggerGroup.tsx): `frontend/src/components/animations/StaggerGroup.tsx`

### Enquiry and enrolment

- [Contact form](https://github.com/agladima/fgr/blob/master/frontend/src/app/contact/page.tsx): `frontend/src/app/contact/page.tsx`
- [Registration form](https://github.com/agladima/fgr/blob/master/frontend/src/app/register/page.tsx): `frontend/src/app/register/page.tsx`
- [Partnership enquiry](https://github.com/agladima/fgr/blob/master/frontend/src/app/partnership-enquiry/page.tsx): `frontend/src/app/partnership-enquiry/page.tsx`
- [Field validation](https://github.com/agladima/fgr/blob/master/frontend/src/lib/validation.ts): `frontend/src/lib/validation.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home: opens
- Site visitor → Contact form: submits details
- Site visitor → Registration form: registers
- Site visitor → Partnership enquiry: enquires
- Header navigation → Mobile navigation: opens drawer (evidence: `frontend/src/components/navigation/Header/Header.tsx`)
- Home → Programmes: links to (evidence: `frontend/src/app/page.tsx`)
- About → Programmes: links to (evidence: `frontend/src/app/about/page.tsx`)
- Contact form → Partnership enquiry: links to (evidence: `frontend/src/app/contact/page.tsx`)
- Registration form → Field validation: validates fields (evidence: `frontend/src/app/register/page.tsx`)
- Home → Container: renders (evidence: `frontend/src/app/page.tsx`)
- Home → Button: renders (evidence: `frontend/src/app/page.tsx`)
- Home → Section heading: renders (evidence: `frontend/src/app/page.tsx`)
- Home → Motion section: renders (evidence: `frontend/src/app/page.tsx`)
- Home → Stagger group: renders (evidence: `frontend/src/app/page.tsx`)
- Programmes → Container: renders (evidence: `frontend/src/app/programmes/page.tsx`)
- Programmes → Section heading: renders (evidence: `frontend/src/app/programmes/page.tsx`)
- Programmes → Stagger group: renders (evidence: `frontend/src/app/programmes/page.tsx`)
- Partnership enquiry → Feedback state: renders (evidence: `frontend/src/app/partnership-enquiry/page.tsx`)
- Footer → Container: renders (evidence: `frontend/src/components/layout/Footer/Footer.tsx`)
- Root layout → Site visitor: serves pages
