How srirajvasireddy/ruras-escape-website works
Rura’s Escape is a React website for marketing the puzzle game, offering a playable browser demo, store calls to action, support, and legal information. Visitors enter through the routed app, view the landing page or a secondary route, and can open the demo; route metadata and interaction measurement are handled separately. The README documents the major site capabilities, while the excerpts show selected routing, demo, SEO, and analytics wiring. Unexcerpted section implementations and some page relationships are represented only where documented.
Main entry points: analytics.ts Analytics client · App.tsx Route application · useSeo.ts Route metadata · HomePage.tsx Game landing page
Components 25
Visitor experience
- Route application
src/App.tsx - Game landing page
src/pages/HomePage.tsx - Playable puzzle demo
src/components/game/PuzzleExperience.tsx - Store calls to action
src/components/ui/AppStoreButton.tsx
Support and legal
- Support page
src/pages/SupportPage.tsx - Support FAQ
src/components/ui/FAQAccordion.tsx - Support topics
src/data/supportTopics.ts - Privacy page
src/pages/PrivacyPolicyPage.tsx - Privacy content
src/data/legal/privacy.ts - Terms page
src/pages/TermsPage.tsx - Terms content
src/data/legal/terms.ts - Legal page layout
src/components/layout/LegalPageLayout.tsx
Site measurement
- Analytics integration
src/components/analytics/Analytics.tsx - Interaction tracking
src/lib/autoTracking.ts - Analytics client
src/lib/analytics.ts
Shared site content
- Route metadata
src/hooks/useSeo.ts - Site configuration
src/config/site.ts - Reveal behavior
src/hooks/useReveal.ts - Icon set
src/components/ui/Icon.tsx - Decorative particle field
src/components/ui/ParticleField.tsx - Rura mascot artwork
src/components/ui/RuraMascot.tsx - Shared button styles
src/components/ui/buttonStyles.ts - FAQ content
src/data/faq.ts
Other components
- Visitor
- Google Analytics 4
Connections 29
- Visitor → Route application: opens routes
src/App.tsx - Route application → Game landing page: routes to
src/App.tsx - Route application → Privacy page: routes to
src/App.tsx - Route application → Terms page: routes to
src/App.tsx - Route application → Support page: routes to
src/App.tsx - Game landing page → Playable puzzle demo: opens demo
src/pages/HomePage.tsx - Game landing page → Store calls to action: renders calls
src/pages/HomePage.tsx - Privacy page → Legal page layout: uses layout
src/pages/PrivacyPolicyPage.tsx - Privacy page → Privacy content: loads content
src/pages/PrivacyPolicyPage.tsx - Terms page → Legal page layout: uses layout
src/pages/TermsPage.tsx - Terms page → Terms content: loads content
src/pages/TermsPage.tsx - Support page → Support FAQ: renders FAQ
src/pages/SupportPage.tsx - Support page → Support topics: reads topics
src/pages/SupportPage.tsx - Support FAQ → FAQ content: reads questions
src/components/ui/FAQAccordion.tsx - Game landing page → Route metadata: sets metadata
src/pages/HomePage.tsx - Privacy page → Route metadata: sets metadata
src/pages/PrivacyPolicyPage.tsx - Terms page → Route metadata: sets metadata
src/pages/TermsPage.tsx - Support page → Route metadata: sets metadata
src/pages/SupportPage.tsx - Route metadata → Site configuration: reads site values
src/hooks/useSeo.ts - Route metadata → Analytics client: reports page title
src/hooks/useSeo.ts - Route application → Analytics integration: mounts tracking
src/App.tsx - Analytics integration → Analytics client: initializes
src/components/analytics/Analytics.tsx - Analytics integration → Interaction tracking: starts tracking
src/components/analytics/Analytics.tsx - Interaction tracking → Analytics client: sends events
src/lib/autoTracking.ts - Analytics client → Google Analytics 4: reports events
README.md - Analytics client → Site configuration: reads measurement ID
src/lib/analytics.ts - Playable puzzle demo → Analytics client: reports game events
README.md - Store calls to action → Analytics client: reports CTA events
README.md - Legal page layout → Site configuration: reads contact values
src/components/layout/LegalPageLayout.tsx