# sanidhyy/space-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/sanidhyy/space-portfolio
- Repository: https://github.com/sanidhyy/space-portfolio

## Overview

This repository is a space-themed personal portfolio. A visitor enters through the Next.js home page, which presents the hero, skills, encryption-themed visual feature, and project showcase; the shared layout adds navigation, a star background, and footer. Supporting components render hero text, skill entries, and project cards, while constants supply portfolio content and motion helpers provide animation variants. The graph reflects explicit imports and rendered components in the excerpts and SOURCE INDEX; asset and unsampled component details are represented only where their use is visible.

Main entry points: [`app/page.tsx`](https://github.com/sanidhyy/space-portfolio/blob/main/app/page.tsx) (Home page), [`app/layout.tsx`](https://github.com/sanidhyy/space-portfolio/blob/main/app/layout.tsx) (Root layout), [`components/main/skills.tsx`](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/skills.tsx) (Skills section), [`constants/index.ts`](https://github.com/sanidhyy/space-portfolio/blob/main/constants/index.ts) (Portfolio content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Page Shell"]
  node_home["Home page<br/>[page.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
end

subgraph group_profile["Profile and Navigation"]
  node_navbar["Navigation bar<br/>[navbar.tsx]"]
  node_hero["Hero section<br/>[hero.tsx]"]
  node_hero_content["Hero content<br/>[hero-content.tsx]"]
  node_stars["Star background"]
  node_footer["Footer links<br/>[footer.tsx]"]
end

subgraph group_showcase["Portfolio Showcase"]
  node_skills["Skills section<br/>[skills.tsx]"]
  node_skill_text["Skills heading<br/>[skill-text.tsx]"]
  node_skill_provider["Skill entries"]
  node_encryption["Encryption feature<br/>[encryption.tsx]"]
  node_projects["Projects section<br/>[projects.tsx]"]
  node_project_card["Project cards<br/>[project-card.tsx]"]
end

subgraph group_shared["Shared UI Support"]
  node_constants["Portfolio content<br/>[index.ts]"]
  node_motion["Motion variants<br/>[motion.ts]"]
  node_videos["Background videos"]
  node_site_config["Site metadata<br/>[index.ts]"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_encryption
node_home -->|"renders"| node_projects
node_layout -->|"wraps"| node_home
node_layout -->|"renders"| node_navbar
node_layout -->|"renders"| node_stars
node_layout -->|"renders"| node_footer
node_layout -->|"loads metadata"| node_site_config
node_hero -->|"renders"| node_hero_content
node_navbar -->|"reads links"| node_constants
node_footer -->|"reads link data"| node_constants
node_skills -->|"renders"| node_skill_text
node_skills -->|"renders entries"| node_skill_provider
node_skills -->|"reads skill data"| node_constants
node_projects -->|"renders cards"| node_project_card
node_projects -->|"reads projects"| node_constants
node_encryption -->|"uses variants"| node_motion
node_hero_content -->|"uses variants"| node_motion
node_skill_text -->|"uses variants"| node_motion
node_skills -->|"plays background"| node_videos
node_encryption -->|"plays background"| node_videos

click node_home "https://github.com/sanidhyy/space-portfolio/blob/main/app/page.tsx"
click node_layout "https://github.com/sanidhyy/space-portfolio/blob/main/app/layout.tsx"
click node_navbar "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/navbar.tsx"
click node_hero "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/hero.tsx"
click node_hero_content "https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/hero-content.tsx"
click node_stars "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/star-background.tsx"
click node_footer "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/footer.tsx"
click node_skills "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/skills.tsx"
click node_skill_text "https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/skill-text.tsx"
click node_skill_provider "https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/skill-data-provider.tsx"
click node_encryption "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/encryption.tsx"
click node_projects "https://github.com/sanidhyy/space-portfolio/blob/main/components/main/projects.tsx"
click node_project_card "https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/project-card.tsx"
click node_constants "https://github.com/sanidhyy/space-portfolio/blob/main/constants/index.ts"
click node_motion "https://github.com/sanidhyy/space-portfolio/blob/main/lib/motion.ts"
click node_videos "https://github.com/sanidhyy/space-portfolio/tree/main/public/videos"
click node_site_config "https://github.com/sanidhyy/space-portfolio/blob/main/config/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_layout toneBlue
class node_navbar,node_hero,node_hero_content,node_stars,node_footer toneAmber
class node_skills,node_skill_text,node_skill_provider,node_encryption,node_projects,node_project_card toneMint
class node_constants,node_motion,node_videos,node_site_config toneRose
class node_visitor toneIndigo
```

## Components

### Page Shell

- [Home page](https://github.com/sanidhyy/space-portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Root layout](https://github.com/sanidhyy/space-portfolio/blob/main/app/layout.tsx): `app/layout.tsx`

### Profile and Navigation

- [Navigation bar](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/navbar.tsx): `components/main/navbar.tsx`
- [Hero section](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/hero.tsx): `components/main/hero.tsx`
- [Hero content](https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/hero-content.tsx): `components/sub/hero-content.tsx`
- [Star background](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/star-background.tsx): `components/main/star-background.tsx`
- [Footer links](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/footer.tsx): `components/main/footer.tsx`

### Portfolio Showcase

- [Skills section](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/skills.tsx): `components/main/skills.tsx`
- [Skills heading](https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/skill-text.tsx): `components/sub/skill-text.tsx`
- [Skill entries](https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/skill-data-provider.tsx): `components/sub/skill-data-provider.tsx`
- [Encryption feature](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/encryption.tsx): `components/main/encryption.tsx`
- [Projects section](https://github.com/sanidhyy/space-portfolio/blob/main/components/main/projects.tsx): `components/main/projects.tsx`
- [Project cards](https://github.com/sanidhyy/space-portfolio/blob/main/components/sub/project-card.tsx): `components/sub/project-card.tsx`

### Shared UI Support

- [Portfolio content](https://github.com/sanidhyy/space-portfolio/blob/main/constants/index.ts): `constants/index.ts`
- [Motion variants](https://github.com/sanidhyy/space-portfolio/blob/main/lib/motion.ts): `lib/motion.ts`
- [Background videos](https://github.com/sanidhyy/space-portfolio/tree/main/public/videos): `public/videos`
- [Site metadata](https://github.com/sanidhyy/space-portfolio/blob/main/config/index.ts): `config/index.ts`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → Home page: opens (evidence: `README.md`)
- Home page → Hero section: renders (evidence: `app/page.tsx`)
- Home page → Skills section: renders (evidence: `app/page.tsx`)
- Home page → Encryption feature: renders (evidence: `app/page.tsx`)
- Home page → Projects section: renders (evidence: `app/page.tsx`)
- Root layout → Home page: wraps (evidence: `app/layout.tsx`)
- Root layout → Navigation bar: renders (evidence: `app/layout.tsx`)
- Root layout → Star background: renders (evidence: `app/layout.tsx`)
- Root layout → Footer links: renders (evidence: `app/layout.tsx`)
- Root layout → Site metadata: loads metadata (evidence: `app/layout.tsx`)
- Hero section → Hero content: renders (evidence: `components/main/hero.tsx`)
- Navigation bar → Portfolio content: reads links (evidence: `components/main/navbar.tsx`)
- Footer links → Portfolio content: reads link data (evidence: `components/main/footer.tsx`)
- Skills section → Skills heading: renders (evidence: `components/main/skills.tsx`)
- Skills section → Skill entries: renders entries (evidence: `components/main/skills.tsx`)
- Skills section → Portfolio content: reads skill data (evidence: `components/main/skills.tsx`)
- Projects section → Project cards: renders cards (evidence: `components/main/projects.tsx`)
- Projects section → Portfolio content: reads projects (evidence: `components/main/projects.tsx`)
- Encryption feature → Motion variants: uses variants (evidence: `components/main/encryption.tsx`)
- Hero content → Motion variants: uses variants (evidence: `components/sub/hero-content.tsx`)
- Skills heading → Motion variants: uses variants (evidence: `components/sub/skill-text.tsx`)
- Skills section → Background videos: plays background (evidence: `components/main/skills.tsx`)
- Encryption feature → Background videos: plays background (evidence: `components/main/encryption.tsx`)
