# shakib-mia/adztronaut architecture

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

- Interactive diagram: https://gitdiagram.com/shakib-mia/adztronaut
- Repository: https://github.com/shakib-mia/adztronaut

## Overview

#### Purpose and Runtime
This is a Next.js App Router portfolio/agency site. It renders marketing pages, work case studies, and blog content, with static assets and JSON-backed content. The primary runtime is Node.js/Next.js; it can be deployed to Vercel but no external backend or database is evident.

#### Application Shell and Entry Points
The root layout establishes global document/UI concerns, while the home page composes the main landing experience. Route-level loading and not-found boundaries provide App Router fallbacks.
- `src/app/layout.js`
- `src/app/page.js`
- `src/app/globals.css`
- `src/app/loading.jsx`
- `src/app/not-found.js`

#### Public Page Routing
Top-level routes expose agency information, services, pricing, testimonials, contact, blogs, and work listings. Dynamic segments resolve individual blog and work detail pages.
- `src/app/about/page.jsx`
- `src/app/services/page.jsx`
- `src/app/blogs/[id]/page.js`
- `src/app/works/[slug]/page.jsx`

#### Content and Asset Boundary
Work and blog metadata are stored as public JSON, with associated images/content served directly from `public/`. This implies pages/components read local static content rather than querying a CMS. Bundled image assets supplement public content for site sections.
- `public/blogs.json`
- `public/works.json`
- `public/blogs`
- `src/assets/images`

#### Works API Surface
The application also exposes HTTP API routes for works collection and per-ID lookup. These are the repository’s server-side integration boundary and likely read/shape the same local work data for consumers distinct from rendered pages.
- `src/app/api/works/route.js`
- `src/app/api/works/[id]/route.js`
- `src/app/works/page.jsx`

#### Composition Components
Pages are assembled from section-level components rather than a single monolith. The component layer covers navigation/layout, homepage marketing modules, content cards/details, and footer/contact calls to action.
- `src/app/components/Layout/Layout.jsx`
- `src/app/components/Header/Header.jsx`
- `src/app/components/SelectedWorks/SelectedWorks.jsx`
- `src/app/components/BlogContainer/BlogContainer.jsx`
- `src/app/components/WorkDetails/WorkDetails.jsx`

#### Client Interaction and Motion
Client-side visual behavior is centralized around AOS animations, Lenis smooth scrolling, and scroll-position/direction utilities. A wrapper and hooks isolate browser-dependent motion setup from route/page composition.
- `src/app/components/AOSLenisWrapper/AOSLenisWrapper.jsx`
- `src/app/hooks/useAos.js`
- `src/app/hooks/useLenis.js`
- `src/utils/initAos.js`
- `src/utils/initLenis.js`

#### Styling and Framework Configuration
Styling combines global CSS with Tailwind/PostCSS configuration. Next configuration governs framework behavior; `next/font` is noted as the font optimization mechanism.
- `tailwind.config.js`
- `postcss.config.mjs`
- `next.config.mjs`
- `src/app/globals.css`

Main entry points: [`src/app/page.js`](https://github.com/shakib-mia/adztronaut/blob/main/src/app/page.js) (Home page), [`public/works.json`](https://github.com/shakib-mia/adztronaut/blob/main/public/works.json) (Works content), [`src/app/components/Layout/Layout.jsx`](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/Layout/Layout.jsx) (Site layout), [`src/app/layout.js`](https://github.com/shakib-mia/adztronaut/blob/main/src/app/layout.js) (Root layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App Router"]
  node_root_layout["Root layout<br/>Next layout<br/>[layout.js]"]
  node_home_page["Home page<br/>Next page<br/>[page.js]"]
  node_route_fallbacks["Route fallbacks<br/>App Router boundary<br/>[loading.jsx]"]
  node_agency_pages["Agency pages<br/>Next pages<br/>[page.jsx]"]
  node_works_listing["Works listing<br/>Next page<br/>[page.jsx]"]
  node_work_detail["Work detail<br/>Dynamic Next page<br/>[page.jsx]"]
  node_blog_detail["Blog detail<br/>Dynamic Next page<br/>[page.js]"]
  node_works_api_collection{{"Works collection API<br/>Next route handler<br/>[route.js]"}}
  node_work_api_item{{"Work item API<br/>Dynamic route handler<br/>[route.js]"}}
  node_global_styles["Global styles<br/>CSS<br/>[globals.css]"]
end

subgraph group_ui["UI Composition"]
  node_site_layout["Site layout<br/>Layout component<br/>[Layout.jsx]"]
  node_header["Header<br/>Navigation component<br/>[Header.jsx]"]
  node_selected_works["Selected works<br/>Section component<br/>[SelectedWorks.jsx]"]
  node_blog_container["Blog container<br/>Section component<br/>[BlogContainer.jsx]"]
  node_work_details["Work details<br/>Detail component<br/>[WorkDetails.jsx]"]
  node_motion_wrapper["Motion wrapper<br/>Client wrapper"]
  node_motion_hooks["Motion hooks<br/>Client hooks<br/>[useAos.js]"]
end

subgraph group_content["Local Content"]
  node_blogs_content["Blog content<br/>Static JSON<br/>[blogs.json]"]
  node_works_content["Works content<br/>Static JSON<br/>[works.json]"]
  node_public_blog_assets["Blog assets<br/>Public assets"]
  node_bundled_images["Bundled images<br/>Image assets"]
end

node_root_layout -->|"frames"| node_site_layout
node_root_layout -->|"loads"| node_global_styles
node_root_layout -->|"initializes"| node_motion_wrapper
node_site_layout -->|"contains"| node_header
node_home_page -->|"uses"| node_site_layout
node_home_page -->|"composes"| node_selected_works
node_home_page -->|"composes"| node_blog_container
node_agency_pages -->|"uses"| node_site_layout
node_works_listing -->|"reads"| node_works_content
node_works_listing -->|"presents"| node_work_details
node_work_detail -->|"resolves from"| node_works_content
node_work_detail -->|"renders"| node_work_details
node_blog_detail -->|"resolves from"| node_blogs_content
node_blog_detail -->|"serves"| node_public_blog_assets
node_selected_works -->|"reads"| node_works_content
node_blog_container -->|"reads"| node_blogs_content
node_works_api_collection -->|"reads"| node_works_content
node_work_api_item -->|"looks up"| node_works_content
node_motion_wrapper -->|"uses"| node_motion_hooks
node_home_page -->|"uses"| node_bundled_images
node_route_fallbacks -.->|"bounds routes including"| node_home_page

click node_root_layout "https://github.com/shakib-mia/adztronaut/blob/main/src/app/layout.js"
click node_home_page "https://github.com/shakib-mia/adztronaut/blob/main/src/app/page.js"
click node_route_fallbacks "https://github.com/shakib-mia/adztronaut/blob/main/src/app/loading.jsx"
click node_agency_pages "https://github.com/shakib-mia/adztronaut/blob/main/src/app/about/page.jsx"
click node_works_listing "https://github.com/shakib-mia/adztronaut/blob/main/src/app/works/page.jsx"
click node_work_detail "https://github.com/shakib-mia/adztronaut/blob/main/src/app/works/%5Bslug%5D/page.jsx"
click node_blog_detail "https://github.com/shakib-mia/adztronaut/blob/main/src/app/blogs/%5Bid%5D/page.js"
click node_works_api_collection "https://github.com/shakib-mia/adztronaut/blob/main/src/app/api/works/route.js"
click node_work_api_item "https://github.com/shakib-mia/adztronaut/blob/main/src/app/api/works/%5Bid%5D/route.js"
click node_site_layout "https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/Layout/Layout.jsx"
click node_header "https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/Header/Header.jsx"
click node_selected_works "https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/SelectedWorks/SelectedWorks.jsx"
click node_blog_container "https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/BlogContainer/BlogContainer.jsx"
click node_work_details "https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/WorkDetails/WorkDetails.jsx"
click node_motion_wrapper "https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/AOSLenisWrapper/AOSLenisWrapper.jsx"
click node_motion_hooks "https://github.com/shakib-mia/adztronaut/blob/main/src/app/hooks/useAos.js"
click node_blogs_content "https://github.com/shakib-mia/adztronaut/blob/main/public/blogs.json"
click node_works_content "https://github.com/shakib-mia/adztronaut/blob/main/public/works.json"
click node_public_blog_assets "https://github.com/shakib-mia/adztronaut/tree/main/public/blogs"
click node_bundled_images "https://github.com/shakib-mia/adztronaut/tree/main/src/assets/images"
click node_global_styles "https://github.com/shakib-mia/adztronaut/blob/main/src/app/globals.css"

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_root_layout,node_home_page,node_route_fallbacks,node_agency_pages,node_works_listing,node_work_detail,node_blog_detail,node_works_api_collection,node_work_api_item,node_global_styles toneBlue
class node_site_layout,node_header,node_selected_works,node_blog_container,node_work_details,node_motion_wrapper,node_motion_hooks toneAmber
class node_blogs_content,node_works_content,node_public_blog_assets,node_bundled_images toneMint
```

## Components

### App Router

Next.js routes and document boundaries.

- [Root layout](https://github.com/shakib-mia/adztronaut/blob/main/src/app/layout.js): Next layout · Establishes global document and UI concerns. · `src/app/layout.js`
- [Home page](https://github.com/shakib-mia/adztronaut/blob/main/src/app/page.js): Next page · Composes the agency landing experience. · `src/app/page.js`
- [Route fallbacks](https://github.com/shakib-mia/adztronaut/blob/main/src/app/loading.jsx): App Router boundary · Loading and not-found states. · `src/app/loading.jsx`
- [Agency pages](https://github.com/shakib-mia/adztronaut/blob/main/src/app/about/page.jsx): Next pages · About and services marketing routes. · `src/app/about/page.jsx`
- [Works listing](https://github.com/shakib-mia/adztronaut/blob/main/src/app/works/page.jsx): Next page · Lists work case studies. · `src/app/works/page.jsx`
- [Work detail](https://github.com/shakib-mia/adztronaut/blob/main/src/app/works/%5Bslug%5D/page.jsx): Dynamic Next page · Renders a case study by slug. · `src/app/works/[slug]/page.jsx`
- [Blog detail](https://github.com/shakib-mia/adztronaut/blob/main/src/app/blogs/%5Bid%5D/page.js): Dynamic Next page · Renders a blog post by ID. · `src/app/blogs/[id]/page.js`
- [Works collection API](https://github.com/shakib-mia/adztronaut/blob/main/src/app/api/works/route.js): Next route handler · HTTP collection endpoint for work data. · `src/app/api/works/route.js`
- [Work item API](https://github.com/shakib-mia/adztronaut/blob/main/src/app/api/works/%5Bid%5D/route.js): Dynamic route handler · HTTP lookup endpoint by ID. · `src/app/api/works/[id]/route.js`
- [Global styles](https://github.com/shakib-mia/adztronaut/blob/main/src/app/globals.css): CSS · Global styling foundation. · `src/app/globals.css`

### UI Composition

Reusable page sections and client behavior.

- [Site layout](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/Layout/Layout.jsx): Layout component · Shared navigation and page framing. · `src/app/components/Layout/Layout.jsx`
- [Header](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/Header/Header.jsx): Navigation component · `src/app/components/Header/Header.jsx`
- [Selected works](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/SelectedWorks/SelectedWorks.jsx): Section component · Homepage work showcase. · `src/app/components/SelectedWorks/SelectedWorks.jsx`
- [Blog container](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/BlogContainer/BlogContainer.jsx): Section component · Blog content and card composition. · `src/app/components/BlogContainer/BlogContainer.jsx`
- [Work details](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/WorkDetails/WorkDetails.jsx): Detail component · Case-study presentation layer. · `src/app/components/WorkDetails/WorkDetails.jsx`
- [Motion wrapper](https://github.com/shakib-mia/adztronaut/blob/main/src/app/components/AOSLenisWrapper/AOSLenisWrapper.jsx): Client wrapper · Isolates browser-only animation and scrolling setup. · `src/app/components/AOSLenisWrapper/AOSLenisWrapper.jsx`
- [Motion hooks](https://github.com/shakib-mia/adztronaut/blob/main/src/app/hooks/useAos.js): Client hooks · AOS and Lenis lifecycle hooks. · `src/app/hooks/useAos.js`

### Local Content

Static JSON and image-backed site content.

- [Blog content](https://github.com/shakib-mia/adztronaut/blob/main/public/blogs.json): Static JSON · Locally served blog metadata and content. · `public/blogs.json`
- [Works content](https://github.com/shakib-mia/adztronaut/blob/main/public/works.json): Static JSON · Locally served work metadata. · `public/works.json`
- [Blog assets](https://github.com/shakib-mia/adztronaut/tree/main/public/blogs): Public assets · Blog images and content served directly. · `public/blogs`
- [Bundled images](https://github.com/shakib-mia/adztronaut/tree/main/src/assets/images): Image assets · Build-bundled section imagery. · `src/assets/images`

## Connections

- Root layout → Site layout: frames
- Root layout → Global styles: loads
- Root layout → Motion wrapper: initializes
- Site layout → Header: contains
- Home page → Site layout: uses
- Home page → Selected works: composes
- Home page → Blog container: composes
- Agency pages → Site layout: uses
- Works listing → Works content: reads
- Works listing → Work details: presents
- Work detail → Works content: resolves from
- Work detail → Work details: renders
- Blog detail → Blog content: resolves from
- Blog detail → Blog assets: serves
- Selected works → Works content: reads
- Blog container → Blog content: reads
- Works collection API → Works content: reads
- Work item API → Works content: looks up
- Motion wrapper → Motion hooks: uses
- Home page → Bundled images: uses
- Route fallbacks → Home page: bounds routes including
