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.
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
- Semantic HTML5 markup
- CSS custom properties
- Vanilla Javascript
- Flexbox
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.
If I were to continue working on this app, I'd want to include an option to mark a read notification as unread.
- Website - HeyTylerMartin.com
- Frontend Mentor - @HeyTylerMartin
- Twitter - @HeyTylerMartin