How imattdunbar/dunbar-web works
Main Components
a) Client-Side Layer:
• Components for:
• SvelteKit Frontend Runtime
• Static Assets (PDF, Images)
• Client-side Utilities (/src/lib/util/client.ts)
b) Application Layer:
• Sub-components:
• Router (based on /src/routes structure)
• Layout Management (/src/routes/+layout)
• Page Components
• Shared Components (/src/lib/components)
• Server Hooks (/src/hooks.server.ts)
c) Data Layer:
• Include:
• Static JSON Data (/src/lib/data/portfolio.json)
• Data Utilities (/src/lib/util/data.ts)
d) Build/Configuration Layer:
• Configuration components:
• Vite Build System
• Tailwind CSS
• TypeScript Compilation
Relationship Flows
• Client requests flowing through the router
• Component composition and hierarchy
• Data flow from portfolio.json to components
• Static asset serving paths
• Build process flow
Specific Implementation Details
• Route Structure:
• Main page route
• Dynamic [page=main] route
• Error handling (+error.svelte)
• Component Architecture:
• Card.svelte
• Entry.svelte
• Layout hierarchy
Technical Stack Indicators
Technology badges or labels for:
• SvelteKit
• TypeScript
• Tailwind CSS
• Vite
• Bun (indicated by bun.lockb)
Important Notes
a) SvelteKit-specific architecture:
• Distinction between server and client components
• Routing system
• Where SSR occurs
b) Build-time vs runtime separation:
• How Tailwind processes CSS
• TypeScript compilation flow
• Static asset handling