How hustbit37/photographer works
Project Type and Purpose
• This is a static, client-side portfolio website (no backend code in this repo).
• Purpose: deliver a responsive, image-centric SPA that photographers can customize, showcasing galleries, dark/light mode, and smooth scroll animations.
File Structure
• Top-level ui/ folder contains:
• public/ – static assets (HTML fallback, preview images).
• src/ – source code:
– assets/ (CSS, fonts, images).
– components/ (reusable UI pieces: LoginPopup, layout components).
– views/ (page-level Vue components).
– router/ (Vue Router setup).
– stores/ (Pinia global state, e.g. theme).
– App.vue (root component), main.js (entry point).
• Config files: package.json, vite.config.js, jsconfig.json.
README for Additional Insights
• Features: responsive gallery, dark/light mode, mobile-first, smooth animations.
• Build & deploy: npm scripts dev, build.
Main Components
a. Frontend Layers
• Browser (client)
• Vite Dev Server / Build Pipeline
• Vue App Runtime
– Router Module
– Pinia Store
– Component Tree (layout, views, widgets)
• Static Assets (CSS, images, public folder)
b. External/Third-Party Services
• AOS library
• CDN or hosting provider (optional; Netlify, Vercel, GitHub Pages)
c. Developer Tools
• Node.js / npm
• Vite (hot-reload, bundler)
Relationships and Interactions
• Browser requests index.html from dev server or static host.
• main.js bootstraps Vue App in the browser.
• Vue Router intercepts URL changes → renders appropriate views/ component.
• Pinia provides reactive state (e.g. theme) to components.
• Components import styles from assets/ and use Bootstrap/AOS classes.
• Vite serves modules during dev and bundles them into production assets.
Architectural Patterns & Design Principles
• SPA – single page loaded once, client-side routing.
• Component-based UI – tree of reusable Vue components.
• Unidirectional data flow via Pinia.
• Separation of concerns: layout vs. page views vs. shared assets.
Final Advice
• Do not over-compartmentalize trivial details; focus on the runtime flow and build artifacts.