How atzin-escandia/mindboard works
Project type and purpose
• Mindboard is a Single-Page Application (SPA) built entirely in the browser using React + TypeScript. Its purpose is to display a high-performance, virtualized masonry photo gallery with live search, detail views, and theme toggling. It consumes the Pexels REST API for photo data.
File structure
• Top‐level files
• index.html, main.tsx, App.tsx – entry point for the React app
• vite.config.ts, tsconfig*.json, package.json – build/config
• .env.example – environment variables (API key, API URL)
• src/
• pages/ – React Router pages (Home, PhotoDetail)
• components/ – Presentational and container components
– ui/ – shared UI primitives (Button, Input, Header, etc.)
• context/ – React Contexts (FilterContext, ThemeContext)
• hooks/ – custom hooks (useDebounce, useInfiniteScroll, useMasonryColumns, useOnScreen)
• services/ – API clients and data-fetching hooks (apiClient.ts with Axios, usePexels.ts using TanStack Query)
• models/ – TypeScript types for photo objects
• styles/ – global CSS (Tailwind entrypoint)
README for additional insights
• Key features:
• Virtualized masonry grid (renders only visible photos)
• Live search integrated with the grid
• Photo detail view with back-navigation to scroll position
• Light/dark theme toggle
• Technology stack: React, React Router DOM, TypeScript, Vite, TanStack Query, Tailwind CSS, Axios