How debuy-co/debuy_landingpage works
Purpose and Runtime
This is a marketing/content website for a product or service, with landing, features, company, legal, branding, and digest pages. The active deliverable is a statically exported Next.js Pages Router site, evidenced by pages/index.js, next.config.js, and generated out/index.html.
Entry Points and Routing
Next.js route files are the primary application entry points: pages/index.js serves the homepage; route-specific pages include pages/features.js, pages/digest.js, and pages/about.js. Shared application and document shells are defined by pages/_app.js and pages/_document.tsx, forming the boundary for global rendering concerns.
Shared Site Shell
Navigation and site-wide footer content are centralized in src/components/layout/Header.jsx and src/components/layout/Footer.jsx. Cookie consent is isolated in src/components/Cookiebanner.jsx; legal routes—pages/cookie.js, pages/privacy.js, and pages/terms.js—provide corresponding policy content.
Homepage Content Composition
The primary landing experience is assembled from independently structured visual sections: src/components/section/Hero.jsx, src/components/section/Features.jsx, src/components/section/Implementation.jsx, plus conversion/statistics sections such as src/components/section/CTA.jsx and src/components/section/Stats.jsx. These components are presentation-oriented and are expected to be composed by the homepage route rather than backed by an application API layer.
Media and Interaction Boundary
Static assets are served directly from public/, including site imagery and videos under public/images and public/videos/hero-video.mp4. Rich video interaction is encapsulated in src/components/ui/VideoModal.jsx, separating client-side modal behavior from page-level content. The deployed export carries these assets into out/videos and out/images.
Styling System
SCSS provides the visual architecture: global aggregation is in src/styles/main.scss, with shared primitives in src/styles/base/_variables.scss and src/styles/base/_layout.scss. Page/section-specific styles mirror component responsibilities, for example src/styles/sections/_hero.scss and src/styles/pages/_features-page.scss.
Static Delivery and SEO
The site is designed for static hosting: out/ contains exported HTML, Next client bundles, and deployment metadata; out/.nojekyll and public/CNAME suggest GitHub Pages-compatible hosting. Search/discovery artifacts are maintained through next-sitemap.config.js, public/robots.txt, and public/sitemap.xml. CI automation is defined in .github/workflows/static.yml.
Source Boundary Note
A parallel React-style source structure exists in src/App.jsx, src/main.jsx, and src/pages/Home.jsx, while production routes are represented in pages/. Treat pages/ as the routing/deployment authority unless build scripts establish that the src/ application is still an active alternate entry path.
Main entry points: index.js Homepage · out Exported site · _app.js App shell · Hero.jsx Hero section
Components 17
Next.js site
Pages Router is the production routing authority.
- App shell · Applies global rendering concerns.
pages/_app.js - Document shell
pages/_document.tsx - Homepage · Primary landing route.
pages/index.js - Marketing routes · Features, digest, and company pages.
pages/features.js - Legal routes · Cookie, privacy, and terms content.
pages/cookie.js - Header & footer
src/components/layout/Header.jsx - Cookie banner
src/components/Cookiebanner.jsx
Landing composition
- Hero section
src/components/section/Hero.jsx - Features & implementation
src/components/section/Features.jsx - CTA & stats
src/components/section/CTA.jsx - Video modal · Encapsulates client-side video interaction.
src/components/ui/VideoModal.jsx - SCSS system · Global styles aggregate shared and section/page styling.
src/styles/main.scss
Static delivery
- Public media · Images and hero video served directly.
public/images - Exported site · HTML, client bundles, and copied assets for hosting.
out - SEO artifacts · Robots and sitemap support search discovery.
public/robots.txt - Static deployment CI
.github/workflows/static.yml
Other components
- Parallel React source · Not the production routing authority unless scripts activate it.
src/App.jsx
Connections 20
- App shell → Homepage: wraps
- Document shell → Homepage: documents
- App shell → Marketing routes: wraps
- App shell → Legal routes: wraps
- Homepage → Header & footer: uses
- Homepage → Cookie banner: includes
- Homepage → Hero section: composes
- Homepage → Features & implementation: composes
- Homepage → CTA & stats: composes
- Hero section → Video modal: opens
- Video modal → Public media: plays
- Hero section → Public media: uses media
- App shell → SCSS system: loads
- Homepage → Exported site: exports to
- Marketing routes → Exported site: exports to
- Legal routes → Exported site: exports to
- Public media → Exported site: copied into
- SEO artifacts → Exported site: published with
- Static deployment CI → Exported site: builds/deploys
- Parallel React source → Homepage: parallel, not authoritative