/article-preview-component

Frontend mentor challenge | Article preview component

Primary LanguageCSSMIT LicenseMIT

Frontend Mentor - Article preview component solution

This is a solution to the Article preview component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the component depending on their device's screen size
  • See the social media share links when they click the share icon

Screenshots

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • A little JavaScript (DOM manipulation)
  • Google fonts - Font library
  • Pexels - Image library

What I learned

How to cut images with the clip-path property:

.article-preview__image {
  clip-path: inset(0 0 50px 0);
}

Continued development

  • Manage frustration
  • Design more orderly by breaking down large problems into smaller problems and trying to finish each part before moving on to the next
  • Learn and practice more about DOM manipulation

Useful resources

Author