Back to Coding

Advanced E-commerce Site

Prompt

Create an advanced e-commerce website using HTML5, the latest versions of CSS, JavaScript, and React. The entire codebase must be open-sourced to enable community development and collaboration. Animate all interactive buttons to improve user experience. The website must include these key features: Frontend (User Interface): - Homepage: - Section highlighting popular products and special offers. - Banner with high-quality images representing the brand. - Product Catalog: - Product categories such as suits, dresses, shirts, pants, and accessories. - Filtering and sorting capabilities by price, size, color, and material. - Product Detail Pages: - Detailed product images. - Descriptions covering material, cut, and style. - Options for selecting sizes and colors. - Shopping Cart: - Quick add and remove product functionality. - Automatic updates to total amounts. - Checkout: - One-page simplified payment process. - Support payment methods: credit card, PayPal, and cash on delivery. - Authentication and User Accounts: - User order history management. - Save delivery addresses. - Wishlist feature for user-selected products. - Integrated Blog: - Articles on classic fashion, trends, and style guidance. # Steps 1. Set up a React project environment with modern tools and dependencies. 2. Structure the project folders and files logically, focusing on scalability and maintainability. 3. Implement the homepage layout, integrating featured popular products and special offers. 4. Build the product catalog incorporating categories along with filtering and sorting mechanisms. 5. Develop comprehensive product detail pages showcasing images, detailed info, and selection options. 6. Create a dynamic shopping cart with user-friendly add/remove controls and real-time amount updates. 7. Implement a streamlined checkout page supporting specified payment options. 8. Develop user authentication and account features including order history, address book, and wishlist. 9. Add a blog section capable of displaying and managing fashion-related articles. 10. Animate all buttons uniformly with smooth and performant hover effects. 11. Ensure the entire project is published openly with a permissive open-source license. # Output Format Provide the entire codebase with clear, detailed documentation explaining how each feature is implemented. Include instructions for setup, running, and deployment of the application. List all dependencies and libraries used with versions. Specify the open-source license (e.g., MIT, Apache 2.0) chosen for the project. If available, include a demo URL showcasing the live website's functionality. # Examples - Homepage banner snippet: ```html <div class="homepage-banner"> <img src="banner-image.jpg" alt="Brand Banner"> <h1>Welcome to Our Store</h1> </div> <button class="animated-button">Shop Now</button> ``` - Product catalog filter function: ```javascript function filterProducts(criteria) { return products.filter(product => { return criteria.every(criterion => product[criterion.type] === criterion.value); }); } ``` - Animated button CSS: ```css .animated-button { transition: transform 0.3s ease, background-color 0.3s ease; } .animated-button:hover { transform: scale(1.05); background-color: #ffd700; } ``` # Notes - Prioritize user interface design to maximize engagement. - Ensure animations are smooth and do not degrade performance. - Guarantee cross-browser compatibility and responsive design for mobile devices. - Incorporate SEO best practices for improved search engine visibility.

Related Coding Prompts

Write Code

As a seasoned programmer, your task is to write code in [programming language] to [perform action]. The code should be efficient, well-structured, and optimized for performance. Make sure to follow best practices and industry standards while implementing the necessary algorithms and logic to achieve the desired functionality. Test the code thoroughly to ensure it functions as intended and meets all requirements. Additionally, document the code properly for future reference and maintenance.

Debug Code

Act as a seasoned programmer with over 20 years of commercial experience. Analyze the provided [piece of code] that is causing a specific [error]. Your task involves diagnosing the root cause of the error, understanding the context and functionality intended by the code, and proposing a solution to fix the issue. Your analysis should include a step-by-step walkthrough of the code, identification of any bugs or logical mistakes, and a detailed explanation of how to resolve them. Additionally, suggest any improvements or optimizations to enhance the performance, readability, or maintainability of the code based on your extensive experience. Ensure that your solution adheres to best practices in software development and is compatible with the current development environment where the code is being executed.

Do Code Review

As a seasoned programmer with over 20 years of commercial experience, your task is to perform a comprehensive code review on the provided [piece of code]. Your review should meticulously evaluate the code's efficiency, readability, and maintainability. You are expected to identify any potential bugs, security vulnerabilities, or performance issues and suggest specific improvements or optimizations. Additionally, assess the code's adherence to industry standards and best practices. Your feedback should be constructive and detailed, offering clear explanations and recommendations for changes. Where applicable, provide examples or references to support your suggestions. Your goal is to ensure that the code not only functions as intended but also meets high standards of quality and can be easily managed and scaled in the future. This review is an opportunity to mentor and guide less experienced developers, so your insights should be both educational and actionable.