How akashkishankarri/cxrrrr works
CXR is a React single-page site for the Centre for Extended Reality, combining its public lab experience with contact/request workflows, tutorials, quizzes, and administrative management. Visitors enter through routed pages; public content is displayed, quiz attempts are submitted, and contact messages are stored in Firebase. The README also documents 3D rendering, on-device face models, PDF preview, uploads, and server-side functions. Some central page implementations were not sampled, so links for those capabilities are shown only where documented; backend-function behavior is not inferred.
Main entry points: App.jsx SPA routes · firebaseConfig.js Firebase client · Home.jsx Lab home · Tutorials.jsx Tutorial library
Components 20
Web experience
- SPA routes
src/App.jsx - Lab home
src/pages/Home.jsx - Navigation
src/components/Navbar.jsx - Site footer
src/components/Footer.jsx - 3D canvas
src/components/ThreeCanvas.jsx - Face model assets
public/models
Learning
- Tutorial library
src/pages/Tutorials.jsx - Quiz catalog
src/pages/Quizzes.jsx - Quiz attempt
src/pages/QuizAttempt.jsx - PDF preview
src/components/PdfPreviewModal.jsx
Requests and admin
- Contact form
src/pages/ContactUs.jsx - Requests
src/pages/RequestForm.jsx - Admin login
src/pages/AdminLogin.jsx - Admin dashboard
src/pages/AdminDashboard.jsx
Data and media
- Firebase client
src/firebase/firebaseConfig.js - Firestore
- Cloudinary uploads
src/utils/cloudinaryUpload.js - Server functions
functions/index.js - Additional backend
functions-backend/index.js
Other components
- Visitor
Connections 25
- Visitor → SPA routes: opens
src/App.jsx - SPA routes → Lab home: routes to
src/App.jsx - SPA routes → Requests: routes to
src/App.jsx - SPA routes → Admin login: routes to
src/App.jsx - SPA routes → Admin dashboard: routes to
src/App.jsx - SPA routes → Contact form: routes to
src/App.jsx - SPA routes → Tutorial library: routes to
src/App.jsx - SPA routes → Quiz catalog: routes to
src/App.jsx - SPA routes → Quiz attempt: routes to
src/App.jsx - Lab home → 3D canvas: renders
src/pages/Home.jsx - Lab home → Firebase client: reads via
src/pages/Home.jsx - Contact form → Firebase client: writes via
src/pages/ContactUs.jsx - Tutorial library → Firebase client: reads via
src/pages/Tutorials.jsx - Quiz catalog → Firebase client: reads via
src/pages/Quizzes.jsx - Quiz attempt → Firebase client: loads and submits via
src/pages/QuizAttempt.jsx - Firebase client → Firestore: accesses
src/firebase/firebaseConfig.js - Lab home → Navigation: renders
src/pages/Home.jsx - Lab home → Site footer: renders
src/pages/Home.jsx - Contact form → Site footer: renders
src/pages/ContactUs.jsx - Tutorial library → Navigation: renders
src/pages/Tutorials.jsx - Tutorial library → Site footer: renders
src/pages/Tutorials.jsx - Quiz catalog → Navigation: renders
src/pages/Quizzes.jsx - Quiz catalog → Site footer: renders
src/pages/Quizzes.jsx - SPA routes → Face model assets: serves models
README.md - Cloudinary uploads → PDF preview: provides PDF media
README.md