# t4keyan/babyproject architecture

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

- Interactive diagram: https://gitdiagram.com/t4keyan/babyproject
- Repository: https://github.com/t4keyan/babyproject

## Overview

BabyProject is a personal relationship-memory website. A visitor first sees a greeting and enters the main area, where navigation exposes a home page and themed sections for stories, memories, notes, music, movies, and food. The home page presents a welcome and a days-together count; the themed sections currently show “Coming soon.” The graph reflects documented imports and route declarations. Several components are indexed but not excerpted, so their internal behavior and any unstated connections are not inferred.

Main entry points: [`lib/navigation.ts`](https://github.com/t4keyan/babyproject/blob/main/lib/navigation.ts) (Section definitions), [`components/layout/ComingSoon.tsx`](https://github.com/t4keyan/babyproject/blob/main/components/layout/ComingSoon.tsx) (Coming-soon view), [`components/landing/GreetingCard.tsx`](https://github.com/t4keyan/babyproject/blob/main/components/landing/GreetingCard.tsx) (Greeting card), [`components/home/DaysTogether.tsx`](https://github.com/t4keyan/babyproject/blob/main/components/home/DaysTogether.tsx) (Days together)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry experience"]
  node_landing_route["Landing route<br/>[page.tsx]"]
  node_intro["Intro overlay<br/>[IntroOverlay.tsx]"]
  node_background["Blurred background"]
  node_greeting["Greeting card<br/>[GreetingCard.tsx]"]
end

subgraph group_navigation["Navigation and sections"]
  node_main_layout["Main layout<br/>[layout.tsx]"]
  node_top_nav["Top navigation<br/>[TopNav.tsx]"]
  node_nav_config["Section definitions<br/>[navigation.ts]"]
  node_story["Our story<br/>[page.tsx]"]
  node_memories["Memories<br/>[page.tsx]"]
  node_notes["Love notes<br/>[page.tsx]"]
  node_playlist["Playlist<br/>[page.tsx]"]
  node_movies["Movies<br/>[page.tsx]"]
  node_food["Food<br/>[page.tsx]"]
  node_coming_soon["Coming-soon view<br/>[ComingSoon.tsx]"]
end

subgraph group_home["Relationship home"]
  node_home_route["Home route<br/>[page.tsx]"]
  node_page_transition["Page transition<br/>[PageTransition.tsx]"]
  node_home_hero["Home welcome<br/>[HomeHero.tsx]"]
  node_days_together["Days together<br/>[DaysTogether.tsx]"]
end

subgraph group_shared["Shared presentation"]
  node_site_data["Relationship details<br/>[constants.ts]"]
  node_animations["Animation presets<br/>[animations.ts]"]
  node_glass_panel["Glass panels<br/>[GlassPanel.tsx]"]
  node_button["Button<br/>[Button.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_landing_route
node_landing_route -->|"renders"| node_intro
node_intro -->|"renders"| node_background
node_intro -->|"renders"| node_greeting
node_greeting -->|"renders"| node_button
node_greeting -->|"reads greeting"| node_site_data
node_greeting -->|"renders"| node_glass_panel
node_greeting -->|"uses presets"| node_animations
node_main_layout -->|"renders"| node_top_nav
node_main_layout -->|"renders"| node_background
node_top_nav -->|"reads sections"| node_nav_config
node_top_nav -->|"reads site title"| node_site_data
node_nav_config -->|"routes to"| node_story
node_nav_config -->|"routes to"| node_memories
node_nav_config -->|"routes to"| node_notes
node_nav_config -->|"routes to"| node_playlist
node_nav_config -->|"routes to"| node_movies
node_nav_config -->|"routes to"| node_food
node_story -->|"renders"| node_coming_soon
node_memories -->|"renders"| node_coming_soon
node_notes -->|"renders"| node_coming_soon
node_playlist -->|"renders"| node_coming_soon
node_movies -->|"renders"| node_coming_soon
node_food -->|"renders"| node_coming_soon
node_coming_soon -->|"looks up section"| node_nav_config
node_home_route -->|"renders"| node_page_transition
node_home_route -->|"renders"| node_home_hero
node_home_route -->|"renders"| node_days_together
node_home_hero -->|"reads site details"| node_site_data
node_days_together -->|"calculates days"| node_site_data
node_days_together -->|"renders"| node_glass_panel
node_days_together -->|"uses presets"| node_animations
node_home_hero -->|"uses presets"| node_animations
node_page_transition -->|"uses presets"| node_animations

click node_landing_route "https://github.com/t4keyan/babyproject/blob/main/app/page.tsx"
click node_intro "https://github.com/t4keyan/babyproject/blob/main/components/landing/IntroOverlay.tsx"
click node_background "https://github.com/t4keyan/babyproject/blob/main/components/landing/BlurredBackground.tsx"
click node_greeting "https://github.com/t4keyan/babyproject/blob/main/components/landing/GreetingCard.tsx"
click node_main_layout "https://github.com/t4keyan/babyproject/blob/main/app/(main)/layout.tsx"
click node_top_nav "https://github.com/t4keyan/babyproject/blob/main/components/layout/TopNav.tsx"
click node_nav_config "https://github.com/t4keyan/babyproject/blob/main/lib/navigation.ts"
click node_story "https://github.com/t4keyan/babyproject/blob/main/app/(main)/story/page.tsx"
click node_memories "https://github.com/t4keyan/babyproject/blob/main/app/(main)/memories/page.tsx"
click node_notes "https://github.com/t4keyan/babyproject/blob/main/app/(main)/notes/page.tsx"
click node_playlist "https://github.com/t4keyan/babyproject/blob/main/app/(main)/playlist/page.tsx"
click node_movies "https://github.com/t4keyan/babyproject/blob/main/app/(main)/movies/page.tsx"
click node_food "https://github.com/t4keyan/babyproject/blob/main/app/(main)/food/page.tsx"
click node_coming_soon "https://github.com/t4keyan/babyproject/blob/main/components/layout/ComingSoon.tsx"
click node_home_route "https://github.com/t4keyan/babyproject/blob/main/app/(main)/home/page.tsx"
click node_page_transition "https://github.com/t4keyan/babyproject/blob/main/components/layout/PageTransition.tsx"
click node_home_hero "https://github.com/t4keyan/babyproject/blob/main/components/home/HomeHero.tsx"
click node_days_together "https://github.com/t4keyan/babyproject/blob/main/components/home/DaysTogether.tsx"
click node_site_data "https://github.com/t4keyan/babyproject/blob/main/lib/constants.ts"
click node_animations "https://github.com/t4keyan/babyproject/blob/main/lib/animations.ts"
click node_glass_panel "https://github.com/t4keyan/babyproject/blob/main/components/ui/GlassPanel.tsx"
click node_button "https://github.com/t4keyan/babyproject/blob/main/components/ui/Button.tsx"

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_landing_route,node_intro,node_background,node_greeting toneBlue
class node_main_layout,node_top_nav,node_nav_config,node_story,node_memories,node_notes,node_playlist,node_movies,node_food,node_coming_soon toneAmber
class node_home_route,node_page_transition,node_home_hero,node_days_together toneMint
class node_site_data,node_animations,node_glass_panel,node_button toneRose
class node_visitor toneIndigo
```

## Components

### Entry experience

- [Landing route](https://github.com/t4keyan/babyproject/blob/main/app/page.tsx): `app/page.tsx`
- [Intro overlay](https://github.com/t4keyan/babyproject/blob/main/components/landing/IntroOverlay.tsx): `components/landing/IntroOverlay.tsx`
- [Blurred background](https://github.com/t4keyan/babyproject/blob/main/components/landing/BlurredBackground.tsx): `components/landing/BlurredBackground.tsx`
- [Greeting card](https://github.com/t4keyan/babyproject/blob/main/components/landing/GreetingCard.tsx): `components/landing/GreetingCard.tsx`

### Navigation and sections

- [Main layout](https://github.com/t4keyan/babyproject/blob/main/app/(main)/layout.tsx): `app/(main)/layout.tsx`
- [Top navigation](https://github.com/t4keyan/babyproject/blob/main/components/layout/TopNav.tsx): `components/layout/TopNav.tsx`
- [Section definitions](https://github.com/t4keyan/babyproject/blob/main/lib/navigation.ts): `lib/navigation.ts`
- [Our story](https://github.com/t4keyan/babyproject/blob/main/app/(main)/story/page.tsx): `app/(main)/story/page.tsx`
- [Memories](https://github.com/t4keyan/babyproject/blob/main/app/(main)/memories/page.tsx): `app/(main)/memories/page.tsx`
- [Love notes](https://github.com/t4keyan/babyproject/blob/main/app/(main)/notes/page.tsx): `app/(main)/notes/page.tsx`
- [Playlist](https://github.com/t4keyan/babyproject/blob/main/app/(main)/playlist/page.tsx): `app/(main)/playlist/page.tsx`
- [Movies](https://github.com/t4keyan/babyproject/blob/main/app/(main)/movies/page.tsx): `app/(main)/movies/page.tsx`
- [Food](https://github.com/t4keyan/babyproject/blob/main/app/(main)/food/page.tsx): `app/(main)/food/page.tsx`
- [Coming-soon view](https://github.com/t4keyan/babyproject/blob/main/components/layout/ComingSoon.tsx): `components/layout/ComingSoon.tsx`

### Relationship home

- [Home route](https://github.com/t4keyan/babyproject/blob/main/app/(main)/home/page.tsx): `app/(main)/home/page.tsx`
- [Page transition](https://github.com/t4keyan/babyproject/blob/main/components/layout/PageTransition.tsx): `components/layout/PageTransition.tsx`
- [Home welcome](https://github.com/t4keyan/babyproject/blob/main/components/home/HomeHero.tsx): `components/home/HomeHero.tsx`
- [Days together](https://github.com/t4keyan/babyproject/blob/main/components/home/DaysTogether.tsx): `components/home/DaysTogether.tsx`

### Shared presentation

- [Relationship details](https://github.com/t4keyan/babyproject/blob/main/lib/constants.ts): `lib/constants.ts`
- [Animation presets](https://github.com/t4keyan/babyproject/blob/main/lib/animations.ts): `lib/animations.ts`
- [Glass panels](https://github.com/t4keyan/babyproject/blob/main/components/ui/GlassPanel.tsx): `components/ui/GlassPanel.tsx`
- [Button](https://github.com/t4keyan/babyproject/blob/main/components/ui/Button.tsx): `components/ui/Button.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Landing route: opens (evidence: `app/page.tsx`)
- Landing route → Intro overlay: renders (evidence: `app/page.tsx`)
- Intro overlay → Blurred background: renders (evidence: `components/landing/IntroOverlay.tsx`)
- Intro overlay → Greeting card: renders (evidence: `components/landing/IntroOverlay.tsx`)
- Greeting card → Button: renders (evidence: `components/landing/GreetingCard.tsx`)
- Greeting card → Relationship details: reads greeting (evidence: `components/landing/GreetingCard.tsx`)
- Greeting card → Glass panels: renders (evidence: `components/landing/GreetingCard.tsx`)
- Greeting card → Animation presets: uses presets (evidence: `components/landing/GreetingCard.tsx`)
- Main layout → Top navigation: renders (evidence: `app/(main)/layout.tsx`)
- Main layout → Blurred background: renders (evidence: `app/(main)/layout.tsx`)
- Top navigation → Section definitions: reads sections (evidence: `components/layout/TopNav.tsx`)
- Top navigation → Relationship details: reads site title (evidence: `components/layout/TopNav.tsx`)
- Section definitions → Our story: routes to (evidence: `lib/navigation.ts`)
- Section definitions → Memories: routes to (evidence: `lib/navigation.ts`)
- Section definitions → Love notes: routes to (evidence: `lib/navigation.ts`)
- Section definitions → Playlist: routes to (evidence: `lib/navigation.ts`)
- Section definitions → Movies: routes to (evidence: `lib/navigation.ts`)
- Section definitions → Food: routes to (evidence: `lib/navigation.ts`)
- Our story → Coming-soon view: renders (evidence: `app/(main)/story/page.tsx`)
- Memories → Coming-soon view: renders (evidence: `app/(main)/memories/page.tsx`)
- Love notes → Coming-soon view: renders (evidence: `app/(main)/notes/page.tsx`)
- Playlist → Coming-soon view: renders (evidence: `app/(main)/playlist/page.tsx`)
- Movies → Coming-soon view: renders (evidence: `app/(main)/movies/page.tsx`)
- Food → Coming-soon view: renders (evidence: `app/(main)/food/page.tsx`)
- Coming-soon view → Section definitions: looks up section (evidence: `components/layout/ComingSoon.tsx`)
- Home route → Page transition: renders (evidence: `app/(main)/home/page.tsx`)
- Home route → Home welcome: renders (evidence: `app/(main)/home/page.tsx`)
- Home route → Days together: renders (evidence: `app/(main)/home/page.tsx`)
- Home welcome → Relationship details: reads site details (evidence: `components/home/HomeHero.tsx`)
- Days together → Relationship details: calculates days (evidence: `components/home/DaysTogether.tsx`)
- Days together → Glass panels: renders (evidence: `components/home/DaysTogether.tsx`)
- Days together → Animation presets: uses presets (evidence: `components/home/DaysTogether.tsx`)
- Home welcome → Animation presets: uses presets (evidence: `components/home/HomeHero.tsx`)
- Page transition → Animation presets: uses presets (evidence: `components/layout/PageTransition.tsx`)
