Skip to content

Frontend Mentor's JavaScript starter: a responsive website component for a single article

Notifications You must be signed in to change notification settings

vanhog/frontend-mentor-article-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Note: Delete this note and update the table of contents based on what sections you keep.

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

Screenshot

Links

My process

Built with

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

What I learned

  • To call a snackbar a "snackbar" (or even a "toast") ;-)
  • to use the classList Method
function showSomePopup() {
  	var thisIcon = document.getElementById('shareline');
  	
  	thisIcon.classList.toggle('hidden');
}
  • using Tailwindcss and custom css classes together

Continued development

Useful resources

Author

About

Frontend Mentor's JavaScript starter: a responsive website component for a single article

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published