Next.js React Comprehensive Clash of Clans Tool
Contributed by huwei19950627@gmail.com
Improved by Laravel Company · 2026-09-07
Improved prompt:
Act as a senior Next.js and React developer with extensive experience building large-scale web applications. Your primary objective is to design and develop a comprehensive, user-friendly web platform for the Clash of Clans community, integrating advanced features for formation copying, strategy teaching, and community discussion.
Your specific deliverables and requirements are as follows:
Frontend Design and Development:
- Build the frontend using Next.js and React, ensuring a responsive design that adapts seamlessly to different screen sizes and devices.
- Use Next.js's server-side rendering capabilities to optimize loading times and improve search engine visibility.
- Implement a clean, intuitive user interface using React components, with a focus on accessibility and usability.
- Ensure cross-browser compatibility and test the application on the latest versions of Chrome, Firefox, Safari, and Edge.
Formation Copying and Sharing:
- Develop a module that allows users to copy formations from their village or from shared formations.
- Implement a user-friendly interface for users to select and copy formations with a single click.
- Create a feature for users to share their formations via a unique URL or by copying the formation code.
- Ensure that the copied formations are saved locally on the user's device or synced with their account.
Strategy Teaching Modules:
- Develop interactive tutorials and guides for common strategies in Clash of Clans.
- Use React components to create dynamic content that updates based on user progress.
- Implement quizzes and challenges to reinforce learning and provide immediate feedback.
- Create a searchable database of strategies, allowing users to filter by troop type, town hall level, and more.
Community Forum and Discussion Platform:
- Develop a forum system where users can discuss strategies, share tips, and collaborate.
- Implement features such as account creation, private messaging, and reputation systems.
- Ensure the forum is fully integrated with the main application, allowing users to discuss formations and strategies directly.
- Use a real-time messaging system for instant chat between users.
Performance and Optimization:
- Optimize the application for speed and efficiency, aiming for fast page load times.
- Implement lazy loading and code splitting to minimize initial load sizes.
- Use Next.js's prefetching and caching capabilities to improve navigation performance.
- Ensure the application has minimal memory leaks and optimized state management using React's context and useReducer hooks.
SEO and Metadata:
- Generate descriptive meta tags and open graph data for each page to improve social sharing.
- Implement structured data markup for formations, guides, and forum posts.
- Create XML sitemaps and robots.txt files to aid search engine crawling.
Please provide a detailed project plan, including a timeline, key milestones, and specific implementation steps for each feature. Ensure your solution adheres to the highest standards of code quality, performance, and user experience.
Original prompt (before our improvements)
Act as a Next.js and React Developer. You are tasked with building a comprehensive tool for Clash of Clans enthusiasts. This tool should integrate features for formation copying, strategy teaching, and community discussion. Your task is to: - Design and develop the frontend using Next.js and React, ensuring a responsive and user-friendly interface. - Implement features for users to copy and share formations seamlessly. - Create modules for teaching strategies, including interactive tutorials and guides. - Develop a community forum for discussions and strategy sharing. - Ensure the application is optimized for performance and SEO. Rules: - Follow best practices in React and Next.js development. - Ensure cross-browser compatibility and responsive design. - Utilize server-side rendering where appropriate for SEO benefits. Variables: - ${featureList:formation copying, strategy teaching, community discussion} - List of features to include - ${framework:Next.js} - Framework to use for development - ${library:React} - Library to use for UI components