How burnzero1/burnzero-site works
Burn Zero is a Next.js marketing site for a carbon-compliance platform, with demo lead capture and embeddable FleetMagic ad units with event tracking. The main visitor flow leads from the landing page to a demo request, which is validated and emailed; ad impressions and engagement are captured and forwarded to analytics integrations. The landing page advertises emissions records, certificate verification, reconciliation, PDF evidence, and on-chain proof, but no implementation of those platform workflows appears in the sampled runtime code. Ad asset internals were not sampled, so their tracking-script wiring is based only on the documented capability.
Main entry points: ad-event/route.ts Ad event endpoint · DemoRequestForm.tsx Demo form · request-demo/route.ts Demo endpoint · page.tsx Landing page
Components 16
Marketing site
- Landing page
app/inicio/page.tsx - Root rewrite
middleware.ts
Demo requests
- Demo page
app/request-demo/page.tsx - Demo form
app/request-demo/DemoRequestForm.tsx - Demo endpoint
app/api/request-demo/route.ts
Ad units and analytics
- Ad unit showcase
app/ads/page.tsx - Ad creative files
public/ads - Ad tracker
public/ads/ad-track.js - Ad event endpoint
app/api/ad-event/route.ts - Event validation
lib/ad-analytics.ts - Analytics guidance
app/ads/analytics/page.tsx
Other components
- Site visitor
- Resend email API
- FleetMagic host
- PostHog
- Optional webhook
Connections 19
- Site visitor → Root rewrite: requests root
- Root rewrite → Landing page: rewrites to
- Site visitor → Landing page: views
- Landing page → Demo page: links to demo
- Site visitor → Demo page: opens
- Demo page → Demo form: renders
- Site visitor → Demo form: submits details
- Demo form → Demo endpoint: posts request
- Demo endpoint → Resend email API: sends email
- Demo endpoint → Demo form: returns status
- FleetMagic host → Ad creative files: embeds units
- Site visitor → Ad unit showcase: views examples
- Ad unit showcase → Ad creative files: embeds files
- Ad creative files → Ad tracker: tracks engagement
- Ad tracker → Ad event endpoint: posts events
- Ad event endpoint → Event validation: validates payload
- Ad event endpoint → PostHog: forwards events
- Ad event endpoint → Optional webhook: forwards events
- Site visitor → Analytics guidance: views setup guidance