Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Blog Preview Card

VANI MITTAL•160
@vanimittal1304
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

For the blog card preview project, you might be proud of how you effectively implemented the design using HTML and CSS to create visually appealing blog card previews. You may have successfully utilized flexbox or grid layout techniques to structure the content and make it responsive across different screen sizes. Additionally, you might have achieved consistency in styling, such as font choices, colors, and spacing, to enhance the overall aesthetic of the blog cards.

Looking ahead, you could consider exploring more advanced CSS features or frameworks to further enhance the design and functionality of the blog cards. For example, you might experiment with animations or transitions to add more interactivity to the cards. Additionally, you could focus on optimizing the code for better performance and readability, such as by organizing CSS rules more efficiently or using preprocessors like Sass.

Overall, reflecting on your achievements and considering areas for improvement can help you continue to grow as a developer and refine your skills in future projects.

What challenges did you encounter, and how did you overcome them?

During the blog card preview project, you may have encountered various challenges, such as:

Layout Design: Designing the layout of the blog cards to meet the desired specifications could have been challenging, especially ensuring responsiveness across different screen sizes. Styling Consistency: Maintaining consistency in styling elements like fonts, colors, and spacing across the blog cards might have required attention to detail and careful implementation. Cross-browser Compatibility: Ensuring that the blog cards display correctly across different web browsers could have posed a challenge, as browsers may interpret CSS rules differently. To overcome these challenges, you might have:

Utilized CSS Frameworks: Leveraging CSS frameworks like Bootstrap or Tailwind CSS could have simplified the layout design process and helped ensure responsiveness. Used Flexbox and Grid: Employing Flexbox and Grid layout techniques in CSS could have facilitated the creation of flexible and responsive layouts for the blog cards. Tested Across Browsers: Conducting thorough testing across multiple web browsers and devices to identify and address any compatibility issues could have helped ensure a consistent user experience. Refactored Code: Regularly refactoring and optimizing your CSS and HTML codebase could have improved maintainability and performance, making it easier to manage and update the blog card project in the future. By tackling these challenges and employing effective strategies to address them, you were able to successfully complete the blog card preview project and gain valuable experience in web development.

What specific areas of your project would you like help with?

To provide specific assistance, it would be helpful to know more about the areas of your project where you're facing challenges or seeking guidance. Here are some common areas where developers often seek help:

Layout and Design: If you're struggling with creating or refining the layout and design of your project, including responsiveness across different devices, we can focus on providing guidance on CSS layout techniques, such as Flexbox and Grid. Styling and CSS: If you need help with styling elements like fonts, colors, spacing, or achieving specific design effects, we can provide tips and best practices for CSS styling. JavaScript Functionality: If your project involves JavaScript interactivity, such as handling user input, DOM manipulation, or implementing specific features, we can assist with JavaScript code snippets, debugging, or recommending libraries and frameworks. Performance Optimization: If you're concerned about the performance of your project, including page load times or rendering efficiency, we can offer advice on optimizing your code, reducing unnecessary requests, or implementing lazy loading techniques. Debugging and Troubleshooting: If you've encountered errors or unexpected behavior in your project and need help debugging or troubleshooting, we can provide guidance on identifying and resolving issues in your code. Deployment and Hosting: If you're unsure about deploying your project to a web server or hosting platform, we can offer assistance with deployment strategies, setting up hosting environments, or configuring domain settings. Please let me know which specific area you'd like help with, or if there's any other aspect of your project you'd like to focus on!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Saul Gabriel Aranguren•330
    @saularanguren
    Posted about 1 year ago

    Greetings, your solution is really impressive, however, we can improve it as follows: in the img tag you must add the ./ in the src attribute, so that the image can be displayed correctly

    Add this solution to your code, so that the image can be seen correctly in your project

    <img src="./assets/images/illustration-article.svg" class="header">
    <img src="./assets/images/image-avatar.webp" class="profile">
    

    Also, I recommend using semantic html, instead of using: <div class="container"></div> use this instead: <main class="container"></main> and change this line of code inside the css rule (css code block), in body you have: height: 100vh; better change that line of code for this one: min-height: 100vh;

    This is how the modification should look in your html sheet:

    <main class="container">
    
        <header class="headerImage">
          <img src="./assets/images/illustration-article.svg" class="header">
        </header>
    
    
        <div class="basicDetails">
          <h4>Learning</h4>
          <p>Published 21 Dec 2023</p>
        </div>
    
    
        <div class="cardDetails">
          <h1>HTML & CSS foundations</h1>
          <p>These languages are the backbone of every website, defining structure, content, and presentation.</p>
        </div>
    
    
        <div class="creater">
          <img src="./assets/images/image-avatar.webp" class="profile">
          <p class="user">Greg Hooper</p>
        </div>
    </main>  
    

    This is how the modification should look in your style sheet:

    body{
        background-color: rgb(250, 208, 70);
        display: flex;
        justify-content: center;
        min-height: 100vh;
        align-items: center;
    }
    
    Marked as helpful
  • shivam kumar•670
    @578shivam
    Posted about 1 year ago

    [hello css job challenge] [ it here img code -<img src="assets/images/image-avatar.webp" alt="profile"> ] you vani- <img src="/assets/images/image-avatar.webp" class="profile"> and symbol "/"assets wrong slash"/" remove

    Marked as helpful

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub