Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 2 years ago

Notifications page using tailwind css

accessibility, semantic-ui, tailwind-css, node
Cristian Sacta•110
@cristianoso19
A solution to the Notifications page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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
    • Screenshot
    • Links
  • My process
    • Built with
    • What I learned
  • Author
  • Acknowledgments

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

Screenshot

🖥️ Desktop view

📱Mobile view

Links

  • Solution URL: GitHub
  • Live Site URL: See on vercel.com

My process

Built with

  • Semantic HTML5 markup
  • TailwindCss
  • Flexbox
  • Mobile-first workflow

What I learned

I practice js concepts, tailwindcss, npm, purgecss, and practice some flexbox concepts. I learn animations such as ping class, that is part of tailwind css

Cards implementation

  <div id="notification-card-1" class="mt-3 bg-verylightgb rounded-md flex justify-between p-3 ">
    <img src="./assets/images/avatar-mark-webber.webp" alt="notification user avatar" class="w-12 h-12 ">
    <div id="notification-card-details" class="ml-2 text-sm flex-auto">
      <a href="#" class="font-bold hover:text-blue">Mark Webber</a>
      <span class="text-darkgb">reacted to your recent post</span>
      <a href="#" class="font-bold text-darkgb cursor-pointer hover:text-blue">My first tournament today!</a>
      <span id="notification-ping">
        <span class="absolute inline-block rounded-full mt-2 ml-1 p-1 bg-red"> </span>
        <span class="relative inline-block animate-ping rounded-full ml-1 p-1 bg-red"> </span>
      </span>
      <p class="text-gb mt-1">1m ago</p>
    </div>
  </div>

Author

  • Website - cristianoso19.com
  • Frontend Mentor - @cristianoso19
  • Twitter - @cristianoso19

Acknowledgments

Thanks to my wife Jenny, i 💖 you.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Cristian Sacta's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub