How 360muslimexperts/360me works
Purpose and Runtime
This is a content-focused Next.js App Router site, deployed as a Cloudflare Pages application. It presents organizational pages, blog content, team history, donation/activity material, and a dedicated NTH 2025 article collection. The root application shell is app/layout.js; the primary landing route is app/page.js.
Routing and Page Composition
File-system routes under app/ define the public site: static pages such as about, contact, donate, and blog; dynamic blog, team-year, and NTH article routes; and framework-level loading, error, 404, sitemap, and robots responses.
• app/page.js
• app/blog/[slug]/page.js
• app/nth-2025/articles/[id]/page.js
Shared UI Layer
Reusable React components compose page sections and layouts, including navigation/footer chrome, home-page modules, post presentation, donation content, and team cards. ArticleLayout is the likely shared boundary for article rendering, while Navbar and Footer provide site-wide navigation structure.
• components/Navbar.js
• components/Footer.js
• components/ArticleLayout.js
Content Sources
Most curated content is repository-local rather than fetched at request time. NTH articles pair a JSON index with MDX source documents; team information is organized as yearly JSON datasets. Dynamic article/team routes should resolve identifiers against these data boundaries.
• data/nth-2025/articles.json
• data/nth-2025/articles/imagining-my-jannah-by-farheen-fatima.mdx
• data/team/2025.json
Blog and CMS Boundary
The blog has dynamic slug routing and a dedicated Sanity integration module, indicating externally managed CMS content is separated behind lib/sanity.js. Page code should consume this library rather than embed CMS queries or connection details directly.
• app/blog/page.js
• app/blog/[slug]/page.js
• lib/sanity.js
Styling and Presentation Assets
Global styling originates in the App Router shell and is supported by Tailwind configuration. Fonts are centralized in a library module, while images and other static assets are served from public/.
• app/globals.css
• lib/fonts.js
• public/
Server and Cloudflare Deployment
Server behavior includes an App Router API endpoint at /api/hello; it is the Cloudflare binding/KV example surface. Cloudflare Pages builds use @cloudflare/next-on-pages, with Wrangler configuration governing preview/deploy and platform bindings.
• app/api/hello/route.js
• next.config.mjs
• wrangler.jsonc
Main entry points: layout.js Root layout · [id]/page.js NTH article · [slug]/page.js Blog post · next.config.mjs Cloudflare Pages
Components 20
Next.js App
App Router public site and server endpoints.
- Root layout · Applies global presentation and site-wide chrome.
app/layout.js - Landing page
app/page.js - Blog index
app/blog/page.js - Blog post · Resolves a post by slug.
app/blog/[slug]/page.js - NTH article · Resolves an NTH article by ID.
app/nth-2025/articles/[id]/page.js - Team year pages · Resolve yearly team data.
app/team/[year]/page.js - Framework responses · Loading, error, 404, sitemap, and robots routes.
- Hello API · Cloudflare binding and KV example endpoint.
app/api/hello/route.js - Global styles
app/globals.css - Fonts
lib/fonts.js - Public assets
public/about
Content Sources
Local editorial datasets and external CMS.
- Sanity integration · Encapsulates CMS access for blog routes.
lib/sanity.js - NTH article index
data/nth-2025/articles.json - NTH article MDX · Editorial article source documents.
data/nth-2025/articles/imagining-my-jannah-by-farheen-fatima.mdx - Team datasets
data/team/2025.json
Shared UI
Reusable site chrome and article presentation.
- Navbar
components/Navbar.js - Footer
components/Footer.js - Article layout · Shared article rendering boundary.
components/ArticleLayout.js
Cloudflare Platform
Pages deployment and runtime bindings.
- Cloudflare Pages · Builds Next.js for the Cloudflare platform.
next.config.mjs - Wrangler bindings · Defines preview, deploy, and platform bindings.
wrangler.jsonc
Connections 20
- Root layout → Navbar: renders
- Root layout → Footer: renders
- Root layout → Global styles: imports
- Root layout → Fonts: uses
- Landing page → Root layout: wrapped by
- Blog index → Root layout: wrapped by
- Blog index → Sanity integration: loads posts
- Blog post → Root layout: wrapped by
- Blog post → Sanity integration: loads by slug
- Blog post → Article layout: renders with
- NTH article → Root layout: wrapped by
- NTH article → NTH article index: resolves ID
- NTH article → NTH article MDX: renders source
- NTH article → Article layout: renders with
- Team year pages → Team datasets: loads year
- Root layout → Public assets: serves assets
- Cloudflare Pages → Root layout: hosts
- Cloudflare Pages → Hello API: runs
- Wrangler bindings → Cloudflare Pages: configures
- Wrangler bindings → Hello API: provides bindings