How souravo2/nirmoho-news-website works
NirMoho is a Bengali news-reading website. Readers land on a section-based homepage, browse category listings, and follow article links; the homepage, category page, and breaking-news marquee fetch data from the documented news API. Article detail pages render article content, though their data-fetch implementation was not excerpted. The graph also preserves the shared site shell, navigation, footer, and supporting UI components. Edges reflect shown calls, imports, or fetches; unsampled behavior and integrations are not inferred.
Main entry points: app/page.tsx Homepage · Navbar.tsx Navbar · NewsProp.ts News contract · [categoryId]/page.tsx Category listing
Components 22
Pages and discovery
- Homepage
src/app/page.tsx - Category listing
src/app/category/[categoryId]/page.tsx - Article page
src/app/article/[articleId]/page.tsx
Shared site shell
- Application layout
src/app/layout.tsx - Navbar
src/components/Navbar/Navbar.tsx - Navigation links
src/components/Navbar/Navlinks.tsx - Navigation items
src/components/Navbar/NavItems.tsx - Clock display
src/components/Navbar/Time.tsx - Date display
src/components/Navbar/DateDisplay.tsx - Breaking-news ticker
src/components/Navbar/Marquee.tsx - Footer
src/components/Footer.tsx - Back to top
src/components/shared/BackToTop.tsx
News presentation
- Lead news
src/components/homepage/MainNews.tsx - Most read
src/components/homepage/MostRead.tsx - News card
src/components/shared/Card.tsx - Article content
src/components/shared/ArticleCard.tsx
Data contracts
- Article contract
src/types/ArticleType.ts - Ticker contract
src/types/MarqueeProp.ts - News contract
src/types/NewsProp.ts - Section contract
src/types/WholeSectionType.ts
Other components
- News reader
- News API
Connections 27
- News reader → Homepage: opens
src/app/page.tsx - News reader → Category listing: browses
src/app/category/[categoryId]/page.tsx - News reader → Article page: reads
src/app/article/[articleId]/page.tsx - Homepage → News API: fetches sections
src/app/page.tsx - Category listing → News API: fetches category
src/app/category/[categoryId]/page.tsx - Breaking-news ticker → News API: fetches headlines
src/components/Navbar/Marquee.tsx - Application layout → Navbar: renders
src/app/layout.tsx - Application layout → Footer: renders
src/app/layout.tsx - Application layout → Back to top: renders
src/app/layout.tsx - Navbar → Navigation links: renders
src/components/Navbar/Navbar.tsx - Navbar → Clock display: renders
src/components/Navbar/Navbar.tsx - Navbar → Date display: renders
src/components/Navbar/Navbar.tsx - Navbar → Breaking-news ticker: renders
src/components/Navbar/Navbar.tsx - Navigation links → Navigation items: uses
src/components/Navbar/Navlinks.tsx - Homepage → Lead news: renders
src/app/page.tsx - Homepage → Most read: renders
src/app/page.tsx - Homepage → News card: renders
src/app/page.tsx - Category listing → News card: renders
src/app/category/[categoryId]/page.tsx - Article page → Article content: renders
src/app/article/[articleId]/page.tsx - Breaking-news ticker → Ticker contract: types data
src/components/Navbar/Marquee.tsx - Homepage → News contract: types data
src/app/page.tsx - Category listing → News contract: types data
src/app/category/[categoryId]/page.tsx - Lead news → News contract: types input
src/components/homepage/MainNews.tsx - News card → News contract: types input
src/components/shared/Card.tsx - Most read → News contract: types input
src/components/homepage/MostRead.tsx - Homepage → Section contract: types sections
src/app/page.tsx - Navigation items → Article contract: types items
src/components/Navbar/NavItems.tsx