# devansh2007-ruikar/gdg-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/devansh2007-ruikar/gdg-frontend
- Repository: https://github.com/devansh2007-ruikar/gdg-frontend

## Overview

This is the GDG On Campus Ramdeobaba University recruitment landing portal: visitors explore the chapter, its events, team, FAQs and contact information, or use the Gemini assistant for guidance. The page assembles its sections, while the assistant sends chat requests to a server route that streams Gemini output or a fallback response. README-documented navigation links connect users to the separate event platform. Some section implementations are unsampled, so those links rely on README or page-assembly evidence; optional external services are shown separately.

Main entry points: [`src/app/page.tsx`](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/app/page.tsx) (Home Page), [`src/app/api/chat/route.ts`](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/app/api/chat/route.ts) (Chat API), [`src/components/sections/Navbar.tsx`](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Navbar.tsx) (Navigation), [`src/components/sections/UpcomingEvent.tsx`](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/UpcomingEvent.tsx) (Upcoming Events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Landing Portal"]
  node_page["Home Page<br/>[page.tsx]"]
  node_navigation["Navigation<br/>[Navbar.tsx]"]
  node_theme["Theme Toggle<br/>[ThemeToggle.tsx]"]
end

subgraph group_content["Chapter Content"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_events["Upcoming Events<br/>[UpcomingEvent.tsx]"]
  node_team["Meet the Team<br/>[MeetTheTeam.tsx]"]
  node_faqs["FAQs<br/>[FAQs.tsx]"]
  node_footer["Contact Footer<br/>[Footer.tsx]"]
  node_eventdata["Event Content<br/>[events.ts]"]
  node_faqdata["FAQ Content<br/>[faqs.ts]"]
  node_teamdata["Team Content<br/>[team.ts]"]
  node_footerdata["Footer Content<br/>[footer.ts]"]
end

subgraph group_assistant["AI Assistant"]
  node_launcher["AI Launcher"]
  node_modal["Chat Modal"]
  node_chatapi["Chat API<br/>[route.ts]"]
end

subgraph group_integrations["External Platforms"]
  node_gemini{{"Gemini AI"}}
  node_eventplatform{{"Event Platform"}}
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_page
node_page -->|"renders"| node_navigation
node_page -->|"renders"| node_hero
node_page -->|"renders"| node_events
node_page -->|"renders"| node_team
node_page -->|"renders"| node_faqs
node_page -->|"renders"| node_footer
node_page -->|"renders"| node_launcher
node_navigation -->|"renders"| node_theme
node_events -->|"reads"| node_eventdata
node_faqs -.->|"reads"| node_faqdata
node_footer -->|"reads"| node_footerdata
node_launcher -->|"opens"| node_modal
node_visitor -->|"asks"| node_modal
node_modal -.->|"posts chat"| node_chatapi
node_chatapi -->|"streams response"| node_gemini
node_chatapi -->|"reads"| node_faqdata
node_chatapi -->|"reads"| node_teamdata
node_chatapi -->|"reads"| node_eventdata
node_chatapi -->|"reads"| node_footerdata
node_visitor -.->|"joins or registers"| node_eventplatform
node_navigation -.->|"links to login"| node_eventplatform
node_events -.->|"links to events"| node_eventplatform

click node_page "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/app/page.tsx"
click node_navigation "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Navbar.tsx"
click node_theme "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/ui/ThemeToggle.tsx"
click node_hero "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Hero.tsx"
click node_events "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/UpcomingEvent.tsx"
click node_team "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/MeetTheTeam.tsx"
click node_faqs "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/FAQs.tsx"
click node_footer "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Footer.tsx"
click node_eventdata "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/events.ts"
click node_faqdata "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/faqs.ts"
click node_teamdata "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/team.ts"
click node_footerdata "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/footer.ts"
click node_launcher "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/ai/AIAssistantLauncher.tsx"
click node_modal "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/ai/AIAssistantModal.tsx"
click node_chatapi "https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/app/api/chat/route.ts"

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_page,node_navigation,node_theme toneBlue
class node_hero,node_events,node_team,node_faqs,node_footer,node_eventdata,node_faqdata,node_teamdata,node_footerdata toneAmber
class node_launcher,node_modal,node_chatapi toneMint
class node_gemini,node_eventplatform toneRose
class node_visitor toneIndigo
```

## Components

### Landing Portal

- [Home Page](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Navigation](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Navbar.tsx): `src/components/sections/Navbar.tsx`
- [Theme Toggle](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/ui/ThemeToggle.tsx): `src/components/ui/ThemeToggle.tsx`

### Chapter Content

- [Hero](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Hero.tsx): `src/components/sections/Hero.tsx`
- [Upcoming Events](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/UpcomingEvent.tsx): `src/components/sections/UpcomingEvent.tsx`
- [Meet the Team](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/MeetTheTeam.tsx): `src/components/sections/MeetTheTeam.tsx`
- [FAQs](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/FAQs.tsx): `src/components/sections/FAQs.tsx`
- [Contact Footer](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/sections/Footer.tsx): `src/components/sections/Footer.tsx`
- [Event Content](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/events.ts): `src/data/events.ts`
- [FAQ Content](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/faqs.ts): `src/data/faqs.ts`
- [Team Content](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/team.ts): `src/data/team.ts`
- [Footer Content](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/data/footer.ts): `src/data/footer.ts`

### AI Assistant

- [AI Launcher](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/ai/AIAssistantLauncher.tsx): `src/components/ai/AIAssistantLauncher.tsx`
- [Chat Modal](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/components/ai/AIAssistantModal.tsx): `src/components/ai/AIAssistantModal.tsx`
- [Chat API](https://github.com/devansh2007-ruikar/gdg-frontend/blob/main/src/app/api/chat/route.ts): `src/app/api/chat/route.ts`

### External Platforms

- **Gemini AI**
- **Event Platform**

### Other components

- **Visitor**

## Connections

- Visitor → Home Page: opens (evidence: `src/app/page.tsx`)
- Home Page → Navigation: renders (evidence: `src/app/page.tsx`)
- Home Page → Hero: renders (evidence: `src/app/page.tsx`)
- Home Page → Upcoming Events: renders (evidence: `src/app/page.tsx`)
- Home Page → Meet the Team: renders (evidence: `src/app/page.tsx`)
- Home Page → FAQs: renders (evidence: `src/app/page.tsx`)
- Home Page → Contact Footer: renders (evidence: `src/app/page.tsx`)
- Home Page → AI Launcher: renders (evidence: `src/app/page.tsx`)
- Navigation → Theme Toggle: renders (evidence: `src/components/sections/Navbar.tsx`)
- Upcoming Events → Event Content: reads (evidence: `src/data/events.ts`)
- FAQs → FAQ Content: reads
- Contact Footer → Footer Content: reads (evidence: `src/components/sections/Footer.tsx`)
- AI Launcher → Chat Modal: opens (evidence: `src/components/ai/AIAssistantLauncher.tsx`)
- Visitor → Chat Modal: asks (evidence: `src/components/ai/AIAssistantModal.tsx`)
- Chat Modal → Chat API: posts chat
- Chat API → Gemini AI: streams response (evidence: `src/app/api/chat/route.ts`)
- Chat API → FAQ Content: reads (evidence: `src/app/api/chat/route.ts`)
- Chat API → Team Content: reads (evidence: `src/app/api/chat/route.ts`)
- Chat API → Event Content: reads (evidence: `src/app/api/chat/route.ts`)
- Chat API → Footer Content: reads (evidence: `src/app/api/chat/route.ts`)
- Visitor → Event Platform: joins or registers (evidence: `README.md`)
- Navigation → Event Platform: links to login (evidence: `README.md`)
- Upcoming Events → Event Platform: links to events (evidence: `README.md`)
