# chandukasireddy/btu-tech-spark architecture

> Architecture diagram of the GitHub repository chandukasireddy/btu-tech-spark, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandukasireddy/btu-tech-spark
- Repository: https://github.com/chandukasireddy/btu-tech-spark

## Overview

1. This is a client-side React application built with Vite, TypeScript, Tailwind CSS, and shadcn/ui. Architecturally it behaves like a static single-page site rather than a server-backed app.

2. The runtime entry path is conventional: `index.html` loads `src/main.tsx`, which mounts the React app and global styles from `src/index.css` / `src/App.css`. `src/App.tsx` is the top-level shell, and `src/pages/Index.tsx` is the main landing page. `src/pages/NotFound.tsx` provides the fallback route.

3. The page is composed from section-level feature components under `src/components/`: `HeroSection`, `AboutSection`, `WhyJoinSection`, `ActivitiesSection`, `ProjectsSection`, `CommunitySection`, `MeetupSection`, and `FooterSection`. `Navbar` and `NavLink` provide in-page navigation, so the primary interaction model is scrolling between anchored sections.

4. Content is split from presentation. Meetup-related content lives under `src/content/meetups/*.md` and supporting images under `src/content/images-meetup`. `src/data/meetups.ts` is the data layer that likely aggregates or transforms those markdown entries into a format the UI can render.

5. The meetup subsystem is the main content-driven part of the app. The presence of 21 markdown meetup files suggests a curated archive or timeline view, probably surfaced by `MeetupSection` and backed by the data module rather than fetched from an API.

6. Shared UI building blocks live in `src/components/ui/`. This is a full shadcn-style component library wrapper set, covering dialogs, forms, menus, tables, toasts, tooltips, and more. These primitives are reused by the higher-level sections to keep the look-and-feel consistent.

7. Custom hooks provide small cross-cutting behaviors: `use-mobile` for responsive behavior, `useCountdown` for time-based UI, and toast hooks for user feedback. These are client-side only and support interactivity without introducing a backend state layer.

8. Styling is handled through Tailwind and the usual PostCSS/Tailwind config files, with global CSS in `src/index.css` plus component-specific styles where needed. The design system is mostly utility-driven, with the shadcn primitives acting as the base abstraction.

9. Testing is split into unit/integration and browser layers. `vitest.config.ts` and `src/test/*` indicate component/unit tests, while `playwright.config.ts` plus `playwright-fixture.ts` show end-to-end browser coverage. That suggests the repo validates both rendering and user flows in the browser.

10. The build/deploy boundary is simple: there is no visible API service, database, or authentication subsystem. Static assets come from `public/`, and the entire site is bundled at build time by Vite and served as a static frontend.

Main entry points: [`src/App.tsx`](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/App.tsx) (App.tsx), [`src/pages/Index.tsx`](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/pages/Index.tsx) (Index), [`src/main.tsx`](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/main.tsx) (main.tsx), [`src/data/meetups.ts`](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/data/meetups.ts) (meetups.ts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_index_html["index.html<br/>entry html<br/>[index.html]"]
  node_main_tsx["main.tsx<br/>react entry<br/>[main.tsx]"]
  node_app_tsx["App.tsx<br/>app shell<br/>[App.tsx]"]
  node_index_page["Index<br/>landing page<br/>[Index.tsx]"]
  node_not_found["NotFound<br/>fallback page<br/>[NotFound.tsx]"]
  node_navbar["Navbar<br/>navigation<br/>[Navbar.tsx]"]
  node_navlink["NavLink<br/>anchor link<br/>[NavLink.tsx]"]
  node_sections["Sections"]
  node_meetup_section["MeetupSection<br/>content section<br/>[MeetupSection.tsx]"]
  node_hero_section["HeroSection<br/>feature section<br/>[HeroSection.tsx]"]
  node_about_section["AboutSection<br/>feature section<br/>[AboutSection.tsx]"]
  node_why_join_section["WhyJoinSection<br/>feature section<br/>[WhyJoinSection.tsx]"]
  node_activities_section["ActivitiesSection<br/>feature section"]
  node_projects_section["ProjectsSection<br/>feature section"]
  node_community_section["CommunitySection<br/>feature section"]
  node_footer_section["FooterSection<br/>feature section<br/>[FooterSection.tsx]"]
end

subgraph group_content["Content system"]
  node_meetup_data["meetups.ts<br/>content model<br/>[meetups.ts]"]
  node_meetup_md["Meetup MD<br/>markdown archive"]
  node_meetup_images[("Meetup images<br/>media assets")]
end

subgraph group_ui["UI system"]
  node_ui_kit["UI kit<br/>shadcn primitives<br/>[accordion.tsx]"]
  node_hooks["Hooks<br/>[use-mobile.tsx]"]
end

subgraph group_tooling["Tooling"]
  node_styles["Styles<br/>tailwind css<br/>[index.css]"]
  node_app_css["App.css<br/>app css<br/>[App.css]"]
  node_vite["Vite<br/>build tool<br/>[vite.config.ts]"]
  node_tailwind["Tailwind<br/>style config<br/>[tailwind.config.ts]"]
  node_tests["Tests<br/>browser + unit<br/>[vitest.config.ts]"]
  node_public_assets[("public<br/>static assets")]
end

node_index_html -->|"loads"| node_main_tsx
node_main_tsx -->|"mounts"| node_app_tsx
node_main_tsx -->|"imports"| node_styles
node_app_tsx -->|"routes to"| node_index_page
node_app_tsx -->|"fallbacks to"| node_not_found
node_index_page -->|"uses"| node_navbar
node_navbar -->|"composes"| node_navlink
node_index_page -->|"assembles"| node_sections
node_sections -->|"includes"| node_hero_section
node_sections -->|"includes"| node_about_section
node_sections -->|"includes"| node_why_join_section
node_sections -->|"includes"| node_activities_section
node_sections -->|"includes"| node_projects_section
node_sections -->|"includes"| node_community_section
node_sections -->|"includes"| node_meetup_section
node_sections -->|"includes"| node_footer_section
node_meetup_section -->|"reads"| node_meetup_data
node_meetup_data -->|"parses"| node_meetup_md
node_meetup_data -->|"references"| node_meetup_images
node_sections -->|"uses"| node_ui_kit
node_sections -->|"uses"| node_hooks
node_ui_kit -->|"styled by"| node_styles
node_app_tsx -->|"styles"| node_app_css
node_tailwind -->|"drives"| node_styles
node_vite -->|"serves"| node_public_assets
node_tests -.->|"covers"| node_index_page
node_tests -.->|"covers"| node_meetup_section

click node_index_html "https://github.com/chandukasireddy/btu-tech-spark/blob/main/index.html"
click node_main_tsx "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/main.tsx"
click node_app_tsx "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/App.tsx"
click node_index_page "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/pages/Index.tsx"
click node_not_found "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/pages/NotFound.tsx"
click node_navbar "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/Navbar.tsx"
click node_navlink "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/NavLink.tsx"
click node_meetup_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/MeetupSection.tsx"
click node_hero_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/HeroSection.tsx"
click node_about_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/AboutSection.tsx"
click node_why_join_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/WhyJoinSection.tsx"
click node_activities_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/ActivitiesSection.tsx"
click node_projects_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/ProjectsSection.tsx"
click node_community_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/CommunitySection.tsx"
click node_footer_section "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/FooterSection.tsx"
click node_meetup_data "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/data/meetups.ts"
click node_meetup_images "https://github.com/chandukasireddy/btu-tech-spark/tree/main/src/content/images-meetup"
click node_ui_kit "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/ui/accordion.tsx"
click node_hooks "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/hooks/use-mobile.tsx"
click node_styles "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/index.css"
click node_app_css "https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/App.css"
click node_vite "https://github.com/chandukasireddy/btu-tech-spark/blob/main/vite.config.ts"
click node_tailwind "https://github.com/chandukasireddy/btu-tech-spark/blob/main/tailwind.config.ts"
click node_tests "https://github.com/chandukasireddy/btu-tech-spark/blob/main/vitest.config.ts"
click node_public_assets "https://github.com/chandukasireddy/btu-tech-spark/tree/main/public"

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_index_html,node_main_tsx,node_app_tsx,node_index_page,node_not_found,node_navbar,node_navlink,node_sections,node_meetup_section,node_hero_section,node_about_section,node_why_join_section,node_activities_section,node_projects_section,node_community_section,node_footer_section toneBlue
class node_meetup_data,node_meetup_md,node_meetup_images toneAmber
class node_ui_kit,node_hooks toneMint
class node_styles,node_app_css,node_vite,node_tailwind,node_tests,node_public_assets toneRose
```

## Components

### App shell

Runtime entry, routing, and page composition

- [index.html](https://github.com/chandukasireddy/btu-tech-spark/blob/main/index.html): entry html · Bootstraps the client app · `index.html`
- [main.tsx](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/main.tsx): react entry · Mounts the app and global styles · `src/main.tsx`
- [App.tsx](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/App.tsx): app shell · Top-level React shell · `src/App.tsx`
- [Index](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/pages/Index.tsx): landing page · Main single-page landing view · `src/pages/Index.tsx`
- [NotFound](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/pages/NotFound.tsx): fallback page · Route fallback view · `src/pages/NotFound.tsx`
- [Navbar](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/Navbar.tsx): navigation · Primary in-page navigation · `src/components/Navbar.tsx`
- [NavLink](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/NavLink.tsx): anchor link · Section link helper · `src/components/NavLink.tsx`
- **Sections**: page sections · Hero, about, join, activities, projects, community, meetup, footer
- [MeetupSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/MeetupSection.tsx): content section · Renders meetup archive content · `src/components/MeetupSection.tsx`
- [HeroSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/HeroSection.tsx): feature section · Landing hero content · `src/components/HeroSection.tsx`
- [AboutSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/AboutSection.tsx): feature section · About content block · `src/components/AboutSection.tsx`
- [WhyJoinSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/WhyJoinSection.tsx): feature section · Reasons to join section · `src/components/WhyJoinSection.tsx`
- [ActivitiesSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/ActivitiesSection.tsx): feature section · Activities overview section · `src/components/ActivitiesSection.tsx`
- [ProjectsSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/ProjectsSection.tsx): feature section · Projects showcase section · `src/components/ProjectsSection.tsx`
- [CommunitySection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/CommunitySection.tsx): feature section · Community section · `src/components/CommunitySection.tsx`
- [FooterSection](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/FooterSection.tsx): feature section · Page footer section · `src/components/FooterSection.tsx`

### Content system

Meetup archive content and its data layer

- [meetups.ts](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/data/meetups.ts): content model · Transforms meetup markdown into UI-ready data · `src/data/meetups.ts`
- **Meetup MD**: markdown archive · Curated meetup entries
- [Meetup images](https://github.com/chandukasireddy/btu-tech-spark/tree/main/src/content/images-meetup): media assets · Supporting images for meetup content · `src/content/images-meetup`

### UI system

Shared design-system primitives and client behaviors

- [UI kit](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/components/ui/accordion.tsx): shadcn primitives · Reusable dialogs, forms, menus, tables, toasts, and controls · `src/components/ui/accordion.tsx`
- [Hooks](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/hooks/use-mobile.tsx): client hooks · Responsive, countdown, and toast behavior · `src/hooks/use-mobile.tsx`

### Tooling

Build, styling, and test infrastructure

- [Styles](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/index.css): tailwind css · Global and component styling layer · `src/index.css`
- [App.css](https://github.com/chandukasireddy/btu-tech-spark/blob/main/src/App.css): app css · Shell-level styles · `src/App.css`
- [Vite](https://github.com/chandukasireddy/btu-tech-spark/blob/main/vite.config.ts): build tool · Bundles the static client app · `vite.config.ts`
- [Tailwind](https://github.com/chandukasireddy/btu-tech-spark/blob/main/tailwind.config.ts): style config · Utility CSS configuration · `tailwind.config.ts`
- [Tests](https://github.com/chandukasireddy/btu-tech-spark/blob/main/vitest.config.ts): browser + unit · Vitest and Playwright coverage · `vitest.config.ts`
- [public](https://github.com/chandukasireddy/btu-tech-spark/tree/main/public): static assets · Static site assets served as-is · `public`

## Connections

- index.html → main.tsx: loads · HTML entry loads the React bootstrap
- main.tsx → App.tsx: mounts · Creates the React root and renders the app shell
- main.tsx → Styles: imports · Includes global CSS
- App.tsx → Index: routes to · Main application view
- App.tsx → NotFound: fallbacks to · Route fallback screen
- Index → Navbar: uses · Top-level page navigation
- Navbar → NavLink: composes · Builds section anchors from link helper
- Index → Sections: assembles · Composes the landing page from feature sections
- Sections → HeroSection: includes · Hero is a main landing section
- Sections → AboutSection: includes · About is a main landing section
- Sections → WhyJoinSection: includes · Why join is a main landing section
- Sections → ActivitiesSection: includes · Activities is a main landing section
- Sections → ProjectsSection: includes · Projects is a main landing section
- Sections → CommunitySection: includes · Community is a main landing section
- Sections → MeetupSection: includes · Meetup archive is a main landing section
- Sections → FooterSection: includes · Footer closes the landing page
- MeetupSection → meetups.ts: reads · Consumes meetup content model
- meetups.ts → Meetup MD: parses · Aggregates markdown entries
- meetups.ts → Meetup images: references · Links supporting media assets
- Sections → UI kit: uses · Feature sections rely on shared primitives
- Sections → Hooks: uses · Sections use client-side behaviors
- UI kit → Styles: styled by · Primitives are rendered with utility CSS
- App.tsx → App.css: styles · App shell-specific styling
- Tailwind → Styles: drives · Utility CSS system underpins the site styling
- Vite → public: serves · Static assets are bundled/served by the build
- Tests → Index: covers · Browser and component tests validate the UI
- Tests → MeetupSection: covers · Content-driven meetup rendering is tested
