How mehreen-14/the-butterscotch-atelier works
ButterscotchAtelier is an Angular art portfolio and media gallery. Visitors enter through the shared application shell, navigate home, gallery, category, or about routes, and can open gallery items in a keyboard-navigable image/video lightbox. GalleryService exposes the catalog and prepares items; LightboxService owns viewing state. The graph includes the documented-by-code route and component relationships. Asset loading details and unsampled templates are not shown, so no asset-serving or presentation-specific links are inferred.
Main entry points: app.routes.ts Route table · gallery.service.ts Gallery service · app.component.ts Application shell · gallery.component.ts Gallery page
Components 18
Application shell
- App bootstrap
src/main.ts - App configuration
src/app/app.config.ts - Route table
src/app/app.routes.ts - Application shell
src/app/app.component.ts - Site header
src/app/components/header/header.component.ts - Site footer
src/app/components/footer/footer.component.ts
Browse and pages
- Home page
src/app/components/home/home.component.ts - Gallery page
src/app/components/gallery/gallery.component.ts - Category page
src/app/components/category-gallery/category-gallery.component.ts - About page
src/app/components/about/about.component.ts - Not found page
src/app/components/not-found/not-found.component.ts
Gallery data and viewing
- Gallery catalog
src/app/gallery-data.ts - Category model
src/app/gallery-category.model.ts - Gallery service
src/app/services/gallery.service.ts - Lightbox state
src/app/services/lightbox.service.ts - Lightbox viewer
src/app/components/lightbox/lightbox.component.ts
Browser protection
- Capture guard
src/app/services/capture-guard.service.ts
Other components
- Visitor
Connections 22
- App bootstrap → Application shell: bootstraps
src/main.ts - App bootstrap → App configuration: configures
src/main.ts - App configuration → Route table: provides routes
src/app/app.config.ts - Route table → Home page: routes to
src/app/app.routes.ts - Route table → Gallery page: routes to
src/app/app.routes.ts - Route table → Category page: routes to
src/app/app.routes.ts - Route table → About page: routes to
src/app/app.routes.ts - Route table → Not found page: routes to
src/app/app.routes.ts - Application shell → Site header: renders
src/app/app.component.ts - Application shell → Site footer: renders
src/app/app.component.ts - Application shell → Lightbox viewer: renders
src/app/app.component.ts - Application shell → Capture guard: enables
src/app/app.component.ts - Home page → Gallery service: reads catalog
src/app/components/home/home.component.ts - Gallery page → Gallery service: reads catalog
src/app/components/gallery/gallery.component.ts - Gallery page → Lightbox state: opens items
src/app/components/gallery/gallery.component.ts - Category page → Gallery service: loads category
src/app/components/category-gallery/category-gallery.component.ts - Category page → Lightbox state: opens items
src/app/components/category-gallery/category-gallery.component.ts - About page → Gallery service: reads totals
src/app/components/about/about.component.ts - Gallery service → Gallery catalog: loads catalog
src/app/services/gallery.service.ts - Gallery service → Category model: uses type
src/app/services/gallery.service.ts - Lightbox viewer → Lightbox state: controls viewer
src/app/components/lightbox/lightbox.component.ts - Visitor → Route table: navigates