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.
Note: Delete this note and update the table of contents based on what sections you keep.
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
- Solution URL: on Frontend Mentor
- Live Site URL: https://ms097530.github.io/Frontend-Mentor-notifications-page/
I broke this page down in the following ways:
- Analyze the design and requirements and styling documentation
- Build out HTML structure such that items that align will use common containers (i.e. time since post and the content of the notification)
- Use CSS to form the mobile layout
- Adjust desktop layout as necessary (unnecessary for this project)
- Add default styling for content (i.e. fonts, colors, spacing)
- Add styling for active states
- Add unread notification styling and ability to remove unread status
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
This project gave me a better feel for how to structure HTML to enable easier CSS styling while still having meaningful semantics.
I would like to try to integrate this sort of item into a Next.js project while working with real data, rather than having unread notifications already decided.
- Website - Michael Schultz
- Frontend Mentor - @ms097530