Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

catherineisonline/article-preview-component-frontendmentor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Article preview component

Solution for a challenge from frontendmentor.io.



About The Project

Practice your layout skills with this article preview component. There's lots of fun to be had playing around with animations for the sharing icons as well. The main challenge is to build out this article preview component and get it looking as close to the design as possible. The only JavaScript needed for this challenge is to initiate the share options when someone clicks the share icon. You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.



Users should be able to:
1. View the optimal layout depending on their device's screen size.
2. See the social media share links when they click the share icon.

I do not have access to the Figma sketch so the design is not pixel perfect.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • JavaScript
  • Flex
  • Grid
  • Mobile-first workflow

What I learned

A very simple project to practice click events and class toggle. I learned a different way of handling event by using event target. Some time ago, functions were something I could hardly understand and had no idea how I could use them in practice Super glad to see that such small things are no big deal anymore.

Useful resources

  1. Figma - Paste your design image to check the size of containers, width, etc.
  2. Perfect Pixel - Awesome Chrome extension that helps you to match the pixels of the provided design.

Acknowledgments

A big thank you to anyone providing feedback on my solution. It definitely helps to find new ways to code and find easier solutions!