How kyptodaydream/pwp_dt works
Main System Components
a) Client-Side Layer
• Static site served to browsers
• React-based components structure
• Gatsby runtime
b) Build-Time Layer
• Gatsby build system
• Static site generation process
• Asset processing pipeline
c) Development Environment
• Local development server
• Hot reloading system
• GraphQL data layer
Component Organization
Frontend Components (src/components/):
• Layout components (layout.js and variants)
• Core UI components (header.js, footer.js, etc.)
• Reusable components (button.js, image.js, etc.)
• SEO and metadata handling (seo.js)
Page Structure (src/pages/):
• Route-based page components
• Template hierarchy
Static Assets:
• Images and fonts directories
• PDF resources
• Custom HTML files
Data Flow and Build Process
Following flows:
Development Flow:
Local Dev Server → Hot Reloading → Browser
• ↓
• GraphQL Layer
• ↓
• Static Assets/Content
Build Flow:
Source Files → Gatsby Build → Static HTML/CSS/JS → CDN/Hosting
Key Relationships to Highlight
• Gatsby configuration files (gatsby-*.js) interaction with the build process
• Component inheritance and composition
• Static asset processing pipeline
• Page routing and navigation flow
• Development vs. Production environments
Implementation Details
• React component hierarchy
• Gatsby plugin system
• Static file handling
• CSS/Styling approach (global.css and component-specific styles)
• Image processing pipeline
• Font loading system