Skip to content
Shell
9.4 KB
Raw Blame

ejb.ventures Knolling Interface Implementation Plan

Overview

Transform the current diagonal split-screen landing into an immersive knolling photograph interface with clickable object navigation, three visual modes (Personal/Pro/Blacklight), and overlay-based content presentation.


Codebase Assessment

What Exists (Leverage)

  • Next.js 16.0.3 + React 19 + Tailwind v4 + Framer Motion v12
  • ThemeProvider with professional/personal modes (extend to tri-state)
  • MDX content system with essays, posts, work content ready
  • CSS custom properties for theme colors already defined
  • Container component for responsive layouts

Safe Deletions

  • components/theme/theme-toggle.tsx - UNUSED
  • components/theme/circle-toggle.tsx - UNUSED

Files to Modify

File Change
app/page.tsx Complete replacement with KnollingCanvas
components/theme/theme-provider.tsx Extend to ModeProvider (add blacklight, overlays, time)
hooks/use-theme.ts Extend exports for new state
app/globals.css Add mode overlays, time-based filters, hotspot styles
app/pro/page.tsx Remove ModeSelector import (line 6, 12)
app/personal/page.tsx Remove ModeSelector import (line 6, 12)

Files to Create

components/
├── knolling/
│   ├── KnollingCanvas.tsx      # Main container
│   ├── HotspotLayer.tsx        # SVG clickable regions
│   ├── Hotspot.tsx             # Individual hotspot component
│   ├── TimeBasedLighting.tsx   # CSS filter layer
│   ├── MobileKnollingView.tsx  # Mobile card grid fallback
│   └── overlays/
│       ├── BlueprintOverlay.tsx    # Personal mode grid lines
│       ├── CinemaHUDOverlay.tsx    # Pro mode HUD elements
│       └── BlacklightOverlay.tsx   # Night easter egg
├── overlays/
│   ├── OverlayManager.tsx      # Portal-based content layer
│   └── ContentOverlay.tsx      # Glassmorphism content container
├── terminal/
│   ├── CLITerminal.tsx         # Draggable terminal window
│   └── CommandInput.tsx        # Input with history
└── mode/
    └── ModeProvider.tsx        # Extended theme context

hooks/
├── useTimeOfDay.ts             # Dawn/morning/midday/golden/night
├── useKonamiCode.ts            # Easter egg detection
└── useHotspotInteraction.ts    # Hover/click/keyboard logic

lib/
├── hotspots.ts                 # Hotspot configuration data
└── terminal/
    ├── commands.ts             # CLI command definitions
    └── parser.ts               # Command parsing logic

public/knolling/
├── base-composite.webp         # Main knolling photo (4K)
├── grain-texture.png           # Film grain overlay
└── objects/                    # Individual object PNGs
    ├── camera.png
    ├── laptop.png
    ├── notebooks.png
    ├── photo-frame.png
    ├── books.png
    └── rolodex.png

Implementation Phases

Phase 1: Knolling Foundation (Priority)

Goal: Replace diagonal split-screen with working knolling photo interface

1.1 Generate/Source Knolling Assets

  • Create AI knolling photo (4K WebP, dark matte surface)
  • Extract individual object PNGs with transparency
  • Define hotspot coordinates (x%, y%, width%, height%)

1.2 Build Core Components

// lib/hotspots.ts
export const HOTSPOTS: Hotspot[] = [
  { id: 'camera', label: 'Mode Toggle', action: 'toggle-mode', coords: [45, 30, 12, 18] },
  { id: 'laptop', label: 'Terminal', action: 'open-terminal', coords: [60, 45, 18, 12] },
  { id: 'notebooks', label: 'Essays', action: 'overlay', target: 'essays', coords: [25, 55, 15, 20] },
  { id: 'photo-frame', label: 'About', action: 'overlay', target: 'bio', coords: [15, 25, 10, 14] },
  { id: 'books', label: 'Philosophy', action: 'overlay', target: 'philosophy', coords: [75, 60, 12, 16] },
  { id: 'rolodex', label: 'Contact', action: 'overlay', target: 'contact', coords: [80, 30, 10, 12] },
];

1.3 KnollingCanvas Component

  • Full viewport container with Next.js Image (priority, blur placeholder)
  • SVG hotspot layer with percentage-based positioning
  • Hover: glow effect + label tooltip (orange personal, cyan pro)
  • Click: dispatch to ModeProvider actions

1.4 Replace Landing Page

// app/page.tsx
export default function Home() {
  return (
    <ModeProvider>
      <KnollingCanvas />
      <OverlayManager />
    </ModeProvider>
  );
}

Phase 1 Deliverable: Clickable knolling interface with placeholder overlays


Phase 2: Overlay System

Goal: Content opens as modals on knolling backdrop

2.1 OverlayManager

  • React Portal rendering (outside main DOM)
  • AnimatePresence for enter/exit animations
  • Backdrop blur on knolling image
  • Close: backdrop click, Escape key, X button

2.2 ContentOverlay

  • Glassmorphism container (80% width, centered)
  • Scrollable content area
  • Renders MDX from existing content system

2.3 Content Mapping

  • Essays → content/essays/*.mdx
  • Work → content/work/*.mdx
  • Bio → Create content/personal/bio.mdx
  • Philosophy → Create content/personal/philosophy.mdx
  • Contact → Contact form component

Phase 2 Deliverable: All content accessible via smooth overlays with deep-linking


Phase 3: Mode Visual Treatments

Goal: Distinct visual identity per mode

3.1 Blueprint Overlay (Personal)

  • Orange graph paper grid (SVG pattern, 10% opacity)
  • Hand-drawn annotation lines to hotspots
  • Monospace/blueprint labels
  • Line draw animation on load

3.2 Cinema HUD Overlay (Pro)

  • 12% letterbox bars (top/bottom)
  • rec709 color grade (grayscale + contrast filter)
  • Film grain texture (5% opacity)
  • Live timecode (top-left), REC indicator (pulsing red)
  • Focus brackets follow hovered object

3.3 Mode Transition Camera click triggers:

  1. Focus pull out (0.6s): blur 12px, scale 1.05
  2. Rack focus (0.6s): old overlay fades, new begins
  3. Focus lock (1.3s): sharpens, scale 1.0

Phase 4: Time-Based Lighting

Goal: Ambient lighting matches user's local time

4.1 useTimeOfDay Hook

// Check every minute, return period + CSS filter preset
const periods = {
  dawn: 'brightness(0.8) contrast(1.1) hue-rotate(-10deg)',    // 5-7am
  morning: 'brightness(1.1) saturate(1.1) hue-rotate(5deg)',   // 7-11am
  midday: 'brightness(1.15) contrast(1)',                       // 11am-4pm
  golden: 'brightness(1.05) saturate(1.2) sepia(0.15)',        // 4-7pm
  night: 'brightness(0.6) contrast(1.15) hue-rotate(-20deg)',  // 7pm-5am
};

4.2 TimeBasedLighting Component

  • Absolute overlay applying CSS filters
  • 30-second transition between periods
  • Optional CLI override

Phase 5: CLI Terminal

Goal: Claude Code-style terminal for power users

5.1 CLITerminal Component

  • Opens via laptop hotspot OR Cmd/Ctrl+K
  • Draggable window with title bar
  • Command history (up/down arrows)

5.2 Commands

const COMMANDS = {
  help: () => 'Available: help, about, projects, github, contact, mode, clear, exit',
  about: () => BIO_CONTENT,
  projects: () => formatProjectList(PROJECTS),
  github: () => openGitHubDashboard(),
  contact: () => CONTACT_INFO,
  mode: (arg) => setMode(arg), // 'personal' | 'pro'
  clear: () => clearTerminal(),
  exit: () => closeTerminal(),
};

Phase 6: Blacklight Easter Egg

Goal: Night-only UV mode discovery

6.1 Unlock Methods (7pm-6am only)

  1. Click hidden brass coin in image
  2. Type blacklight or uv in CLI
  3. Konami code: ↑↑↓↓←→←→BA

6.2 Visual Treatment

  • Dark UV filter (brightness 0.3, hue-rotate 240deg)
  • Neon glow elements (cyan, magenta, purple)
  • Hidden messages with screen blend mode
  • 2s pulsing glow animation

Phase 7: Polish & Mobile

Goal: Performance, accessibility, responsive

7.1 Mobile Adaptation (< 768px)

  • Vertical card grid replacing photo
  • Each card = hotspot with object preview
  • Swipe gesture for mode toggle

7.2 Performance

  • Lazy load overlay content
  • Preload critical images
  • GPU-accelerated animations
  • Target: Lighthouse 90+

7.3 Accessibility

  • Full keyboard navigation (Tab through hotspots)
  • Screen reader: ARIA labels on all interactives
  • prefers-reduced-motion respect
  • Focus visible indicators
  • Skip-to-content link

Extended ModeState

interface ModeState {
  mode: 'personal' | 'professional' | 'blacklight';
  activeOverlay: string | null;  // 'essays' | 'work' | 'bio' | 'contact' | etc.
  terminalOpen: boolean;
  timeOfDay: 'dawn' | 'morning' | 'midday' | 'golden' | 'night';
  blacklightUnlocked: boolean;
}

Success Criteria

  • Knolling photo loads, all 6 objects clickable
  • Camera toggles Personal/Pro mode
  • Blueprint overlay in Personal, HUD in Pro
  • Time-based lighting changes automatically
  • Content overlays open/close smoothly
  • CLI terminal functional with core commands
  • Blacklight works (night only, 3 unlock methods)
  • Mobile card grid with full functionality
  • Lighthouse 90+ all categories
  • WCAG 2.1 AA compliant

Open Questions

  1. Image Generation: How will the knolling photo be created? (AI generation, photography, stock composite?)
  2. Object Selection: Are the 6 objects (camera, laptop, notebooks, photo-frame, books, rolodex) final, or should we adjust?
  3. Phase Ordering: Start with Phase 1 → 2 → 3 sequentially, or would you prefer different prioritization?