# debuy-co/debuy_landingpage architecture

> Architecture diagram of the GitHub repository debuy-co/debuy_landingpage, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/debuy-co/debuy_landingpage
- Repository: https://github.com/debuy-co/debuy_landingpage

## Overview

#### 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: [`pages/index.js`](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/index.js) (Homepage), [`out`](https://github.com/debuy-co/debuy_landingpage/tree/main/out) (Exported site), [`pages/_app.js`](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/_app.js) (App shell), [`src/components/section/Hero.jsx`](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/Hero.jsx) (Hero section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_next["Next.js site"]
  node_app_shell["App shell<br/>Next.js shell<br/>[_app.js]"]
  node_document_shell["Document shell<br/>Next.js document<br/>[_document.tsx]"]
  node_home_route["Homepage<br/>page route<br/>[index.js]"]
  node_marketing_routes["Marketing routes<br/>page routes<br/>[features.js]"]
  node_legal_routes["Legal routes<br/>page routes<br/>[cookie.js]"]
  node_site_chrome["Header &amp; footer<br/>layout components<br/>[Header.jsx]"]
  node_cookie_consent["Cookie banner<br/>consent component<br/>[Cookiebanner.jsx]"]
end

subgraph group_content["Landing composition"]
  node_hero["Hero section<br/>landing section<br/>[Hero.jsx]"]
  node_feature_content["Features &amp; implementation<br/>landing sections<br/>[Features.jsx]"]
  node_conversion_content["CTA &amp; stats<br/>landing sections<br/>[CTA.jsx]"]
  node_video_modal["Video modal<br/>interactive UI<br/>[VideoModal.jsx]"]
  node_styles["SCSS system<br/>styles<br/>[main.scss]"]
end

subgraph group_delivery["Static delivery"]
  node_public_assets["Public media<br/>static assets"]
  node_static_export["Exported site<br/>static output"]
  node_seo_artifacts["SEO artifacts<br/>discovery metadata<br/>[robots.txt]"]
  node_static_ci{{"Static deployment CI<br/>GitHub Actions workflow<br/>[static.yml]"}}
end

node_alternate_source["Parallel React source<br/>alternate entry structure<br/>[App.jsx]"]

node_app_shell -->|"wraps"| node_home_route
node_document_shell -->|"documents"| node_home_route
node_app_shell -->|"wraps"| node_marketing_routes
node_app_shell -->|"wraps"| node_legal_routes
node_home_route -->|"uses"| node_site_chrome
node_home_route -->|"includes"| node_cookie_consent
node_home_route -->|"composes"| node_hero
node_home_route -->|"composes"| node_feature_content
node_home_route -->|"composes"| node_conversion_content
node_hero -->|"opens"| node_video_modal
node_video_modal -->|"plays"| node_public_assets
node_hero -->|"uses media"| node_public_assets
node_app_shell -->|"loads"| node_styles
node_home_route -->|"exports to"| node_static_export
node_marketing_routes -->|"exports to"| node_static_export
node_legal_routes -->|"exports to"| node_static_export
node_public_assets -->|"copied into"| node_static_export
node_seo_artifacts -->|"published with"| node_static_export
node_static_ci -->|"builds/deploys"| node_static_export
node_alternate_source -.->|"parallel, not authoritative"| node_home_route

click node_app_shell "https://github.com/debuy-co/debuy_landingpage/blob/main/pages/_app.js"
click node_document_shell "https://github.com/debuy-co/debuy_landingpage/blob/main/pages/_document.tsx"
click node_home_route "https://github.com/debuy-co/debuy_landingpage/blob/main/pages/index.js"
click node_marketing_routes "https://github.com/debuy-co/debuy_landingpage/blob/main/pages/features.js"
click node_legal_routes "https://github.com/debuy-co/debuy_landingpage/blob/main/pages/cookie.js"
click node_site_chrome "https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/layout/Header.jsx"
click node_cookie_consent "https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/Cookiebanner.jsx"
click node_hero "https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/Hero.jsx"
click node_feature_content "https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/Features.jsx"
click node_conversion_content "https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/CTA.jsx"
click node_video_modal "https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/ui/VideoModal.jsx"
click node_styles "https://github.com/debuy-co/debuy_landingpage/blob/main/src/styles/main.scss"
click node_public_assets "https://github.com/debuy-co/debuy_landingpage/tree/main/public/images"
click node_static_export "https://github.com/debuy-co/debuy_landingpage/tree/main/out"
click node_seo_artifacts "https://github.com/debuy-co/debuy_landingpage/blob/main/public/robots.txt"
click node_static_ci "https://github.com/debuy-co/debuy_landingpage/blob/main/.github/workflows/static.yml"
click node_alternate_source "https://github.com/debuy-co/debuy_landingpage/blob/main/src/App.jsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_shell,node_document_shell,node_home_route,node_marketing_routes,node_legal_routes,node_site_chrome,node_cookie_consent toneBlue
class node_hero,node_feature_content,node_conversion_content,node_video_modal,node_styles toneAmber
class node_public_assets,node_static_export,node_seo_artifacts,node_static_ci toneMint
class node_alternate_source toneNeutral
```

## Components

### Next.js site

Pages Router is the production routing authority.

- [App shell](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/_app.js): Next.js shell · Applies global rendering concerns. · `pages/_app.js`
- [Document shell](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/_document.tsx): Next.js document · `pages/_document.tsx`
- [Homepage](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/index.js): page route · Primary landing route. · `pages/index.js`
- [Marketing routes](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/features.js): page routes · Features, digest, and company pages. · `pages/features.js`
- [Legal routes](https://github.com/debuy-co/debuy_landingpage/blob/main/pages/cookie.js): page routes · Cookie, privacy, and terms content. · `pages/cookie.js`
- [Header & footer](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/layout/Header.jsx): layout components · `src/components/layout/Header.jsx`
- [Cookie banner](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/Cookiebanner.jsx): consent component · `src/components/Cookiebanner.jsx`

### Landing composition

- [Hero section](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/Hero.jsx): landing section · `src/components/section/Hero.jsx`
- [Features & implementation](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/Features.jsx): landing sections · `src/components/section/Features.jsx`
- [CTA & stats](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/section/CTA.jsx): landing sections · `src/components/section/CTA.jsx`
- [Video modal](https://github.com/debuy-co/debuy_landingpage/blob/main/src/components/ui/VideoModal.jsx): interactive UI · Encapsulates client-side video interaction. · `src/components/ui/VideoModal.jsx`
- [SCSS system](https://github.com/debuy-co/debuy_landingpage/blob/main/src/styles/main.scss): styles · Global styles aggregate shared and section/page styling. · `src/styles/main.scss`

### Static delivery

- [Public media](https://github.com/debuy-co/debuy_landingpage/tree/main/public/images): static assets · Images and hero video served directly. · `public/images`
- [Exported site](https://github.com/debuy-co/debuy_landingpage/tree/main/out): static output · HTML, client bundles, and copied assets for hosting. · `out`
- [SEO artifacts](https://github.com/debuy-co/debuy_landingpage/blob/main/public/robots.txt): discovery metadata · Robots and sitemap support search discovery. · `public/robots.txt`
- [Static deployment CI](https://github.com/debuy-co/debuy_landingpage/blob/main/.github/workflows/static.yml): GitHub Actions workflow · `.github/workflows/static.yml`

### Other components

- [Parallel React source](https://github.com/debuy-co/debuy_landingpage/blob/main/src/App.jsx): alternate entry structure · Not the production routing authority unless scripts activate it. · `src/App.jsx`

## Connections

- 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
