How 120061203/xsong works
Project type and purpose
• This is a full-stack, React-based web application built on Next.js (App Router).
• It serves static and dynamic pages (e.g., blog posts from Markdown in content/blog), interactive tools (whiteboard, markdown editor), and common UI (Navbar, Footer, ThemeContext).
• It’s intended to be deployed on Vercel, with automatic font optimization, Tailwind CSS styling, and client-side context.
File structure
• Top-level Next.js config & build files: next.config.ts, next.config.deploy.ts, tsconfig.json, package.json, GitHub Actions workflow (/.github/workflows/nextjs.yml).
• app/ directory:
• app/layout.tsx – root layout wrapper (HTML head, global providers)
• app/globals.css & tailwind.config.js – global styling
• app/page.tsx – homepage
• app/about, /projects, /download, /secret, /tools – feature routes, each with its own page.tsx
• app/components – reusable UI (Navbar, Footer, AvatarModal, Breadcrumb, MarkdownEditor)
• app/contexts – React contexts (ThemeContext)
• content/blog – Markdown files for static blog posts.
• CI/CD: .github/workflows/nextjs.yml for build/deploy, CNAME for custom domain.
README
• Confirms it’s a create-next-app scaffold with Next.js App Router.
• Mentions development commands and Vercel deployment.
Detail
• Every route folder (about, projects, tools/whiteboard) as subcomponents.
• Context Provider wrapping the entire React tree (ThemeContext).
• Global CSS & Tailwind as a styling layer between React and browser.