Skip to content

HeyTylerMartin/notifications-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Notifications page solution

This is a solution to the Notifications page 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:

  • Distinguish between "unread" and "read" notifications
  • Select "Mark all as read" to toggle the visual state of the unread notifications and set the number of unread messages to zero
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page

Screenshots

] ]

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Vanilla Javascript
  • Flexbox

What I learned

I got to play around with Javascript, which I always enjoy. Something fun to learn about CSS was the :after pseudo class. I've used it before, but not often.

The biggest thing I learned was how to hide the scrollbar, since I couldn't get all of my content to fit in the card in the same way they show in the screenshot. Instead, I had to make the content of the card scroll. But I wanted to keep the Notifications header and "Mark all as read" button visible even while the rest of the content scrolled, so I had to play around with overflow properties on different divs.

Continued development

If I were to continue working on this app, I'd want to include an option to mark a read notification as unread.

Author