# unicorntechnology2026/unicorn-technologies-website-new architecture

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

- Interactive diagram: https://gitdiagram.com/unicorntechnology2026/unicorn-technologies-website-new
- Repository: https://github.com/unicorntechnology2026/unicorn-technologies-website-new

## Overview

Unicorn Technologies is a company-services and lead-generation website with a separate admin area for managing enquiries. The public journey presents services and supporting company information, directs prospective customers to a contact form, and offers contact details; the admin journey authenticates staff and provides enquiry management. The source excerpts confirm key page composition and Supabase-backed authentication, while the submit-enquiry function and several admin details are represented from the tree and index only, so their specific runtime connections are left unasserted.

Main entry points: [`app/page.tsx`](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/page.tsx) (Home page), [`lib/auth-context.tsx`](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/auth-context.tsx) (Admin authentication), [`components/sections/services-preview.tsx`](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/services-preview.tsx) (Home sections), [`app/website-development-nagpur/page.tsx`](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/website-development-nagpur/page.tsx) (Local landing pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public website"]
  node_home["Home page<br/>[page.tsx]"]
  node_service_pages["Service pages<br/>[page.tsx]"]
  node_local_pages["Local landing pages<br/>[page.tsx]"]
  node_company_pages["Company pages<br/>[page.tsx]"]
  node_pricing["Pricing page<br/>[page.tsx]"]
  node_careers["Careers page<br/>[page.tsx]"]
  node_navigation["Site navigation<br/>[navbar.tsx]"]
  node_footer["Site footer<br/>[footer.tsx]"]
end

subgraph group_content["Marketing content"]
  node_service_catalog["Service catalog<br/>[constants.ts]"]
  node_home_sections["Home sections"]
  node_process_content["Process and benefits<br/>[our-process.tsx]"]
  node_testimonials_faq["Testimonials and FAQ<br/>[testimonials.tsx]"]
end

subgraph group_lead["Enquiry handling"]
  node_contact["Contact page<br/>[page.tsx]"]
  node_contact_form["Contact form<br/>[contact-form.tsx]"]
end

subgraph group_admin["Admin console"]
  node_admin_login["Admin login<br/>[page.tsx]"]
  node_auth_context["Admin authentication<br/>[auth-context.tsx]"]
  node_enquiry_admin["Enquiry management<br/>[page.tsx]"]
  node_admin_sidebar["Admin navigation<br/>[sidebar.tsx]"]
end

subgraph group_backend["Supabase backend"]
  node_submit_function["Enquiry submission<br/>[index.ts]"]
  node_supabase_client["Supabase client<br/>[client.ts]"]
  node_supabase_service["Supabase services<br/>[index.ts]"]
  node_enquiry_store[("Enquiry data")]
end

node_visitor(("Prospective customer"))
node_admin_user(("Admin user"))

node_visitor -->|"browses"| node_home
node_visitor -.->|"browses"| node_service_pages
node_visitor -->|"browses"| node_local_pages
node_visitor -->|"opens contact"| node_contact
node_home -->|"renders"| node_navigation
node_home -->|"renders"| node_home_sections
node_home -->|"renders"| node_process_content
node_home -->|"renders"| node_testimonials_faq
node_home -->|"renders"| node_footer
node_home_sections -->|"reads"| node_service_catalog
node_home_sections -->|"links to"| node_local_pages
node_service_pages -.->|"renders"| node_navigation
node_local_pages -->|"renders"| node_process_content
node_company_pages -->|"renders"| node_process_content
node_contact -->|"renders"| node_contact_form
node_contact_form -.->|"submits enquiry"| node_submit_function
node_submit_function -.->|"writes"| node_enquiry_store
node_admin_user -->|"signs in"| node_admin_login
node_admin_login -->|"uses"| node_auth_context
node_auth_context -->|"authenticates"| node_supabase_client
node_auth_context -->|"reads admin record"| node_enquiry_store
node_enquiry_admin -->|"queries enquiries"| node_supabase_client
node_enquiry_admin -.->|"reads and updates"| node_enquiry_store
node_admin_sidebar -->|"uses"| node_auth_context
node_supabase_service -.->|"bootstraps admin"| node_enquiry_store

click node_home "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/page.tsx"
click node_service_pages "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/services/page.tsx"
click node_local_pages "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/website-development-nagpur/page.tsx"
click node_company_pages "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/about/page.tsx"
click node_pricing "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/pricing/page.tsx"
click node_careers "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/careers/page.tsx"
click node_navigation "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/navbar.tsx"
click node_footer "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/footer.tsx"
click node_service_catalog "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/constants.ts"
click node_home_sections "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/services-preview.tsx"
click node_process_content "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/our-process.tsx"
click node_testimonials_faq "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/testimonials.tsx"
click node_contact "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/contact/page.tsx"
click node_contact_form "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/contact-form.tsx"
click node_submit_function "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/supabase/functions/submit-enquiry/index.ts"
click node_admin_login "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/admin/login/page.tsx"
click node_auth_context "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/auth-context.tsx"
click node_enquiry_admin "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/admin/enquiries/page.tsx"
click node_admin_sidebar "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/admin/sidebar.tsx"
click node_supabase_client "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/supabase/client.ts"
click node_supabase_service "https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/supabase/functions/admin-bootstrap/index.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_home,node_service_pages,node_local_pages,node_company_pages,node_pricing,node_careers,node_navigation,node_footer,node_admin_user toneBlue
class node_service_catalog,node_home_sections,node_process_content,node_testimonials_faq toneAmber
class node_contact,node_contact_form toneMint
class node_admin_login,node_auth_context,node_enquiry_admin,node_admin_sidebar toneRose
class node_submit_function,node_supabase_client,node_supabase_service,node_enquiry_store,node_visitor toneIndigo
```

## Components

### Public website

- [Home page](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/page.tsx): `app/page.tsx`
- [Service pages](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/services/page.tsx): `app/services/page.tsx`
- [Local landing pages](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/website-development-nagpur/page.tsx): `app/website-development-nagpur/page.tsx`
- [Company pages](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/about/page.tsx): `app/about/page.tsx`
- [Pricing page](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/pricing/page.tsx): `app/pricing/page.tsx`
- [Careers page](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/careers/page.tsx): `app/careers/page.tsx`
- [Site navigation](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/navbar.tsx): `components/navbar.tsx`
- [Site footer](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/footer.tsx): `components/footer.tsx`

### Marketing content

- [Service catalog](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/constants.ts): `lib/constants.ts`
- [Home sections](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/services-preview.tsx): `components/sections/services-preview.tsx`
- [Process and benefits](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/our-process.tsx): `components/sections/our-process.tsx`
- [Testimonials and FAQ](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/sections/testimonials.tsx): `components/sections/testimonials.tsx`

### Enquiry handling

- [Contact page](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Contact form](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/contact-form.tsx): `components/contact-form.tsx`

### Admin console

- [Admin login](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/admin/login/page.tsx): `app/admin/login/page.tsx`
- [Admin authentication](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/auth-context.tsx): `lib/auth-context.tsx`
- [Enquiry management](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/app/admin/enquiries/page.tsx): `app/admin/enquiries/page.tsx`
- [Admin navigation](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/components/admin/sidebar.tsx): `components/admin/sidebar.tsx`

### Supabase backend

- [Enquiry submission](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/supabase/functions/submit-enquiry/index.ts): `supabase/functions/submit-enquiry/index.ts`
- [Supabase client](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/lib/supabase/client.ts): `lib/supabase/client.ts`
- [Supabase services](https://github.com/unicorntechnology2026/unicorn-technologies-website-new/blob/main/supabase/functions/admin-bootstrap/index.ts): `supabase/functions/admin-bootstrap/index.ts`
- **Enquiry data**

### Other components

- **Prospective customer**
- **Admin user**

## Connections

- Prospective customer → Home page: browses (evidence: `app/page.tsx`)
- Prospective customer → Service pages: browses
- Prospective customer → Local landing pages: browses
- Prospective customer → Contact page: opens contact
- Home page → Site navigation: renders (evidence: `app/page.tsx`)
- Home page → Home sections: renders (evidence: `app/page.tsx`)
- Home page → Process and benefits: renders (evidence: `app/page.tsx`)
- Home page → Testimonials and FAQ: renders (evidence: `app/page.tsx`)
- Home page → Site footer: renders (evidence: `app/page.tsx`)
- Home sections → Service catalog: reads (evidence: `components/sections/services-preview.tsx`)
- Home sections → Local landing pages: links to (evidence: `components/sections/services-preview.tsx`)
- Service pages → Site navigation: renders (evidence: `app/services/page.tsx`)
- Local landing pages → Process and benefits: renders (evidence: `app/website-development-nagpur/page.tsx`)
- Company pages → Process and benefits: renders (evidence: `app/about/page.tsx`)
- Contact page → Contact form: renders (evidence: `app/contact/page.tsx`)
- Contact form → Enquiry submission: submits enquiry
- Enquiry submission → Enquiry data: writes
- Admin user → Admin login: signs in (evidence: `app/admin/login/page.tsx`)
- Admin login → Admin authentication: uses (evidence: `app/admin/login/page.tsx`)
- Admin authentication → Supabase client: authenticates (evidence: `lib/auth-context.tsx`)
- Admin authentication → Enquiry data: reads admin record (evidence: `lib/auth-context.tsx`)
- Enquiry management → Supabase client: queries enquiries (evidence: `app/admin/enquiries/page.tsx`)
- Enquiry management → Enquiry data: reads and updates
- Admin navigation → Admin authentication: uses (evidence: `components/admin/sidebar.tsx`)
- Supabase services → Enquiry data: bootstraps admin
