Giter VIP home page Giter VIP logo

blog-preview's Introduction

๐ŸŒŸ Frontend Mentor - Blog preview card solution ๐ŸŒŸ

This is my solution to the Blog preview card challenge on Frontend Mentor. Frontend Mentor challenges help me improve my coding skills by building realistic projects.

๐Ÿ“‘ Table of contents

Overview

๐Ÿ“‹ The challenge

Users should be able to:

  • See hover and focus states for all interactive elements on the page

๐Ÿ“ธ Screenshot

Desktop Blog preview card

Desktop Blog preview card

Mobile Blog preview card

Mobile Blog preview card

๐Ÿ”— Links

๐Ÿ”ง My process

๐Ÿ› ๏ธ Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

๐Ÿ“š What I learned

Working on this project helped me reinforce my understanding of HTML and CSS fundamentals. Here are a few things I learned:

  • Implementing responsive design using Flexbox.
  • Adding box shadows and borders to elements to enhance their visual appeal.
  • Using media queries to ensure the layout adapts to different screen sizes.

Here are some code snippets I'm proud of:

<div class="blog-card">
  <img src="./assets/images/blog-image.jpg" alt="Blog preview image" class="blog-image">
  <div class="blog-content">
    <div class="blog-meta">
      <p class="blog-category">Learning</p>
      <p class="blog-date">Published 21 Dec 2023</p>
    </div>
    <h1 class="blog-title">HTML & CSS foundations</h1>
    <p class="blog-description">These languages are the backbone of every website, defining structure, content, and presentation.</p>
    <div class="blog-author">
      <img src="./assets/images/image-avatar.webp" alt="Greg Hooper">
      <p>Greg Hooper</p>
    </div>
  </div>
</div>
.blog-card {
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
  border: 2px solid hsl(0, 0%, 7%);
  box-shadow: 5px 5px 1px rgba(0, 0, 0, 1.25);
  max-width: 375px;
  overflow: hidden;
  margin-bottom: 2rem;
}

๐Ÿ”„ Continued development

In future projects, I want to focus on improving my JavaScript skills and learning more about advanced CSS techniques such as CSS Grid and animations. Additionally, I plan to explore more about accessibility to ensure my projects are usable by everyone.

๐Ÿ”— Useful resources

  • CSS-Tricks - A great resource for learning various CSS techniques and best practices.
  • MDN Web Docs - Comprehensive documentation and tutorials for HTML, CSS, and JavaScript.

๐Ÿง‘โ€๐Ÿ’ป Author

๐Ÿ™Œ Acknowledgments

Thanks to the Frontend Mentor community for their support and feedback.

blog-preview's People

Contributors

ayyubiy90 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.