How chandukasireddy/btu-tech-spark works
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: App.tsx App.tsx · Index.tsx Index · main.tsx main.tsx · meetups.ts meetups.ts
Components 27
App shell
Runtime entry, routing, and page composition
- index.html · Bootstraps the client app
index.html - main.tsx · Mounts the app and global styles
src/main.tsx - App.tsx · Top-level React shell
src/App.tsx - Index · Main single-page landing view
src/pages/Index.tsx - NotFound · Route fallback view
src/pages/NotFound.tsx - Navbar · Primary in-page navigation
src/components/Navbar.tsx - NavLink · Section link helper
src/components/NavLink.tsx - Sections · Hero, about, join, activities, projects, community, meetup, footer
- MeetupSection · Renders meetup archive content
src/components/MeetupSection.tsx - HeroSection · Landing hero content
src/components/HeroSection.tsx - AboutSection · About content block
src/components/AboutSection.tsx - WhyJoinSection · Reasons to join section
src/components/WhyJoinSection.tsx - ActivitiesSection · Activities overview section
src/components/ActivitiesSection.tsx - ProjectsSection · Projects showcase section
src/components/ProjectsSection.tsx - CommunitySection · Community section
src/components/CommunitySection.tsx - FooterSection · Page footer section
src/components/FooterSection.tsx
Content system
Meetup archive content and its data layer
- meetups.ts · Transforms meetup markdown into UI-ready data
src/data/meetups.ts - Meetup MD · Curated meetup entries
- Meetup images · Supporting images for meetup content
src/content/images-meetup
UI system
Shared design-system primitives and client behaviors
Tooling
Build, styling, and test infrastructure
- Styles · Global and component styling layer
src/index.css - App.css · Shell-level styles
src/App.css - Vite · Bundles the static client app
vite.config.ts - Tailwind · Utility CSS configuration
tailwind.config.ts - Tests · Vitest and Playwright coverage
vitest.config.ts - public · Static site assets served as-is
public
Connections 27
- 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