How sumedhkane03/the-american-hindu works
Project type and purpose
• This is a Next.js-based front-end web application (React + Next 13 App Router).
• It renders pages both server-side (SSR/SSG) and client-side, serves static assets, and uses Tailwind CSS + PostCSS for styling.
• It’s designed to be deployed on Vercel and optimized with next/font for Google Fonts.
File structure
• Top-level files:
• next.config.mjs, tsconfig.json, postcss.config.mjs, tailwind.config.ts → build & runtime configuration
• package.json, package-lock.json → dependencies & scripts
• app/ (Next 13 App Router):
• layout.tsx → root layout component (shared header, footer injection)
• page.tsx → default home page entry
• globals.css → global resets & base styles
• components/: React UI building blocks (Header.tsx, Navbar.js, Footer.js, Member.js, MobileHeader.tsx)
• styles/: component-scoped CSS files (Book.css, Team.css)
• .eslintrc.json, .gitignore → linting & VCS ignores
README for additional insights
• Bootstrapped with create-next-app
• Runs on npm run dev at port 3000
• Uses next/font to optimize Google Fonts automatically
• Encourages deployment on Vercel
Detail
• app/ vs components/ separation in the React layer
• Where global styles (globals.css) are injected vs component CSS modules
• Both development flow (npm run dev) and production build flow (npm run build → Vercel deployment)
• File-based routing mechanism (e.g., app/page.tsx → /, future routes)