This is the Next.js version of the Henghui International website.
First, install dependencies:
npm installThen, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
npm run build
npm startpages/index.js: Home page with sectionspages/b-and-b.js: B&B listings pagestyles/globals.css: Global stylespublic/: Static assets (pictures, files)
- Converted from static HTML/JS to React components with state management
- Sections are now toggled using React state instead of DOM manipulation
- Navigation between pages uses Next.js Link component
- Static assets moved to public directory