# srirajvasireddy/ruras-escape-website architecture

> Architecture diagram of the GitHub repository srirajvasireddy/ruras-escape-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/srirajvasireddy/ruras-escape-website
- Repository: https://github.com/srirajvasireddy/ruras-escape-website

## Overview

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: [`src/lib/analytics.ts`](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/lib/analytics.ts) (Analytics client), [`src/App.tsx`](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/App.tsx) (Route application), [`src/hooks/useSeo.ts`](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/hooks/useSeo.ts) (Route metadata), [`src/pages/HomePage.tsx`](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/HomePage.tsx) (Game landing page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Visitor experience"]
  node_app["Route application<br/>[App.tsx]"]
  node_home["Game landing page<br/>[HomePage.tsx]"]
  node_demo["Playable puzzle demo"]
  node_store_ctas["Store calls to action<br/>[AppStoreButton.tsx]"]
end

subgraph group_support_legal["Support and legal"]
  node_support_page["Support page<br/>[SupportPage.tsx]"]
  node_faq["Support FAQ<br/>[FAQAccordion.tsx]"]
  node_support_topics["Support topics<br/>[supportTopics.ts]"]
  node_privacy_page["Privacy page"]
  node_privacy_content["Privacy content<br/>[privacy.ts]"]
  node_terms_page["Terms page<br/>[TermsPage.tsx]"]
  node_terms_content["Terms content<br/>[terms.ts]"]
  node_legal_layout["Legal page layout"]
end

subgraph group_measurement["Site measurement"]
  node_analytics_ui["Analytics integration<br/>[Analytics.tsx]"]
  node_auto_tracking["Interaction tracking<br/>[autoTracking.ts]"]
  node_analytics["Analytics client<br/>[analytics.ts]"]
end

subgraph group_shared["Shared site content"]
  node_seo["Route metadata<br/>[useSeo.ts]"]
  node_site_config["Site configuration<br/>[site.ts]"]
  node_reveal["Reveal behavior<br/>[useReveal.ts]"]
  node_icons["Icon set<br/>[Icon.tsx]"]
  node_particles["Decorative particle field<br/>[ParticleField.tsx]"]
  node_mascot["Rura mascot artwork<br/>[RuraMascot.tsx]"]
  node_button_styles["Shared button styles<br/>[buttonStyles.ts]"]
  node_faq_data["FAQ content<br/>[faq.ts]"]
end

node_visitor(("Visitor"))
node_google_analytics["Google Analytics 4"]

node_visitor -->|"opens routes"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_privacy_page
node_app -->|"routes to"| node_terms_page
node_app -->|"routes to"| node_support_page
node_home -->|"opens demo"| node_demo
node_home -->|"renders calls"| node_store_ctas
node_privacy_page -->|"uses layout"| node_legal_layout
node_privacy_page -->|"loads content"| node_privacy_content
node_terms_page -->|"uses layout"| node_legal_layout
node_terms_page -->|"loads content"| node_terms_content
node_support_page -->|"renders FAQ"| node_faq
node_support_page -->|"reads topics"| node_support_topics
node_faq -->|"reads questions"| node_faq_data
node_home -->|"sets metadata"| node_seo
node_privacy_page -->|"sets metadata"| node_seo
node_terms_page -->|"sets metadata"| node_seo
node_support_page -->|"sets metadata"| node_seo
node_seo -->|"reads site values"| node_site_config
node_seo -->|"reports page title"| node_analytics
node_app -->|"mounts tracking"| node_analytics_ui
node_analytics_ui -->|"initializes"| node_analytics
node_analytics_ui -->|"starts tracking"| node_auto_tracking
node_auto_tracking -->|"sends events"| node_analytics
node_analytics -->|"reports events"| node_google_analytics
node_analytics -->|"reads measurement ID"| node_site_config
node_demo -->|"reports game events"| node_analytics
node_store_ctas -->|"reports CTA events"| node_analytics
node_legal_layout -->|"reads contact values"| node_site_config

click node_app "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/App.tsx"
click node_home "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/HomePage.tsx"
click node_demo "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/game/PuzzleExperience.tsx"
click node_store_ctas "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/AppStoreButton.tsx"
click node_support_page "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/SupportPage.tsx"
click node_faq "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/FAQAccordion.tsx"
click node_support_topics "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/supportTopics.ts"
click node_privacy_page "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/PrivacyPolicyPage.tsx"
click node_privacy_content "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/legal/privacy.ts"
click node_terms_page "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/TermsPage.tsx"
click node_terms_content "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/legal/terms.ts"
click node_legal_layout "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/layout/LegalPageLayout.tsx"
click node_analytics_ui "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/analytics/Analytics.tsx"
click node_auto_tracking "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/lib/autoTracking.ts"
click node_analytics "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/lib/analytics.ts"
click node_seo "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/hooks/useSeo.ts"
click node_site_config "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/config/site.ts"
click node_reveal "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/hooks/useReveal.ts"
click node_icons "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/Icon.tsx"
click node_particles "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/ParticleField.tsx"
click node_mascot "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/RuraMascot.tsx"
click node_button_styles "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/buttonStyles.ts"
click node_faq_data "https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/faq.ts"

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_app,node_home,node_demo,node_store_ctas toneBlue
class node_support_page,node_faq,node_support_topics,node_privacy_page,node_privacy_content,node_terms_page,node_terms_content,node_legal_layout toneAmber
class node_analytics_ui,node_auto_tracking,node_analytics toneMint
class node_seo,node_site_config,node_reveal,node_icons,node_particles,node_mascot,node_button_styles,node_faq_data toneRose
class node_visitor,node_google_analytics toneIndigo
```

## Components

### Visitor experience

- [Route application](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/App.tsx): `src/App.tsx`
- [Game landing page](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/HomePage.tsx): `src/pages/HomePage.tsx`
- [Playable puzzle demo](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/game/PuzzleExperience.tsx): `src/components/game/PuzzleExperience.tsx`
- [Store calls to action](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/AppStoreButton.tsx): `src/components/ui/AppStoreButton.tsx`

### Support and legal

- [Support page](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/SupportPage.tsx): `src/pages/SupportPage.tsx`
- [Support FAQ](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/FAQAccordion.tsx): `src/components/ui/FAQAccordion.tsx`
- [Support topics](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/supportTopics.ts): `src/data/supportTopics.ts`
- [Privacy page](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/PrivacyPolicyPage.tsx): `src/pages/PrivacyPolicyPage.tsx`
- [Privacy content](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/legal/privacy.ts): `src/data/legal/privacy.ts`
- [Terms page](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/pages/TermsPage.tsx): `src/pages/TermsPage.tsx`
- [Terms content](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/legal/terms.ts): `src/data/legal/terms.ts`
- [Legal page layout](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/layout/LegalPageLayout.tsx): `src/components/layout/LegalPageLayout.tsx`

### Site measurement

- [Analytics integration](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/analytics/Analytics.tsx): `src/components/analytics/Analytics.tsx`
- [Interaction tracking](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/lib/autoTracking.ts): `src/lib/autoTracking.ts`
- [Analytics client](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/lib/analytics.ts): `src/lib/analytics.ts`

### Shared site content

- [Route metadata](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/hooks/useSeo.ts): `src/hooks/useSeo.ts`
- [Site configuration](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/config/site.ts): `src/config/site.ts`
- [Reveal behavior](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/hooks/useReveal.ts): `src/hooks/useReveal.ts`
- [Icon set](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/Icon.tsx): `src/components/ui/Icon.tsx`
- [Decorative particle field](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/ParticleField.tsx): `src/components/ui/ParticleField.tsx`
- [Rura mascot artwork](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/RuraMascot.tsx): `src/components/ui/RuraMascot.tsx`
- [Shared button styles](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/components/ui/buttonStyles.ts): `src/components/ui/buttonStyles.ts`
- [FAQ content](https://github.com/srirajvasireddy/ruras-escape-website/blob/main/src/data/faq.ts): `src/data/faq.ts`

### Other components

- **Visitor**
- **Google Analytics 4**

## Connections

- Visitor → Route application: opens routes (evidence: `src/App.tsx`)
- Route application → Game landing page: routes to (evidence: `src/App.tsx`)
- Route application → Privacy page: routes to (evidence: `src/App.tsx`)
- Route application → Terms page: routes to (evidence: `src/App.tsx`)
- Route application → Support page: routes to (evidence: `src/App.tsx`)
- Game landing page → Playable puzzle demo: opens demo (evidence: `src/pages/HomePage.tsx`)
- Game landing page → Store calls to action: renders calls (evidence: `src/pages/HomePage.tsx`)
- Privacy page → Legal page layout: uses layout (evidence: `src/pages/PrivacyPolicyPage.tsx`)
- Privacy page → Privacy content: loads content (evidence: `src/pages/PrivacyPolicyPage.tsx`)
- Terms page → Legal page layout: uses layout (evidence: `src/pages/TermsPage.tsx`)
- Terms page → Terms content: loads content (evidence: `src/pages/TermsPage.tsx`)
- Support page → Support FAQ: renders FAQ (evidence: `src/pages/SupportPage.tsx`)
- Support page → Support topics: reads topics (evidence: `src/pages/SupportPage.tsx`)
- Support FAQ → FAQ content: reads questions (evidence: `src/components/ui/FAQAccordion.tsx`)
- Game landing page → Route metadata: sets metadata (evidence: `src/pages/HomePage.tsx`)
- Privacy page → Route metadata: sets metadata (evidence: `src/pages/PrivacyPolicyPage.tsx`)
- Terms page → Route metadata: sets metadata (evidence: `src/pages/TermsPage.tsx`)
- Support page → Route metadata: sets metadata (evidence: `src/pages/SupportPage.tsx`)
- Route metadata → Site configuration: reads site values (evidence: `src/hooks/useSeo.ts`)
- Route metadata → Analytics client: reports page title (evidence: `src/hooks/useSeo.ts`)
- Route application → Analytics integration: mounts tracking (evidence: `src/App.tsx`)
- Analytics integration → Analytics client: initializes (evidence: `src/components/analytics/Analytics.tsx`)
- Analytics integration → Interaction tracking: starts tracking (evidence: `src/components/analytics/Analytics.tsx`)
- Interaction tracking → Analytics client: sends events (evidence: `src/lib/autoTracking.ts`)
- Analytics client → Google Analytics 4: reports events (evidence: `README.md`)
- Analytics client → Site configuration: reads measurement ID (evidence: `src/lib/analytics.ts`)
- Playable puzzle demo → Analytics client: reports game events (evidence: `README.md`)
- Store calls to action → Analytics client: reports CTA events (evidence: `README.md`)
- Legal page layout → Site configuration: reads contact values (evidence: `src/components/layout/LegalPageLayout.tsx`)
