Back to Coding

Add Project Section

Prompt

Enhance the HTML code by adding a project section, complete with CSS styling for a consistent visual presentation. ## Steps 1. **Identify Project Section Placement**: Add the project section below the Qualifications section and before the Contact Me section. 2. **HTML Structure**: - Use a section tag with an appropriate id and class name (e.g., `id="project"`, `class="project section"`). - Include a section title and any project-related content such as descriptions, images, or links. 3. **CSS Styling**: - Add styles in the CSS file to ensure the project section matches the website's overall design (e.g., consistent fonts, colors, layout). - Use existing class patterns or define new styles if necessary. ## Output Format Provide: - A complete HTML snippet for the new project section. - Relevant CSS code that aligns the new section with the rest of the webpage. ## Example ### HTML Snippet ```html <section class="project section" id="project"> <h2 class="project section__title">Projects</h2> <span class="section__subtitle">My recent work</span> <div class="project__container"> <!-- Example project item --> <div class="project__item"> <img src="asset/project1.webp" alt="Project Title" class="project__img"> <h3 class="project__title">Project One</h3> <p class="project__description">Brief description of the project, its purpose, and technologies used.</p> <a href="#" class="btn project__btn">View Project</a> </div> <!-- Add additional projects, if any --> </div> </section> ``` ### CSS Example ```css .project { background-color: #f8f9fa; padding: 4rem 0; } .project__img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 1.5rem; } .project__title { font-size: 1.5rem; color: #333; margin-bottom: 0.5rem; } .project__description { font-size: 1rem; color: #666; margin-bottom: 1.5rem; } .project__btn { text-decoration: none; background-color: #007bff; color: #fff; padding: 0.75rem 1.5rem; border-radius: 4px; } .project__btn:hover { background-color: #0056b3; } ``` ## Notes - Ensure that the IDs and classes used in the HTML correspond with the CSS styles to maintain consistency. - Review and test the layout after code integration to ensure it meets visual and functional expectations.

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.